Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is a complexity of linear search,binery search?

Answers were Sorted based on User's Feedback



what is a complexity of linear search,binery search?..

Answer / geetika sharma

No, Above answer is wrong. The complexity of Linear search
is O(n) and
Binary search is O(log n) at the base 2

Is This Answer Correct ?    212 Yes 9 No

what is a complexity of linear search,binery search?..

Answer / saurabh teotia

the complexity of linear search is o(n) n that of binary search is o(logn)

Is This Answer Correct ?    66 Yes 5 No

what is a complexity of linear search,binery search?..

Answer / ankita dey

Linear Search-O(n)
Binary Search-O(log n)

Is This Answer Correct ?    48 Yes 5 No

what is a complexity of linear search,binery search?..

Answer / guest

in linear search each element in the array should be checked
until the required element got searched whereas in binary
search array is divided into two and required element is
searched

Is This Answer Correct ?    28 Yes 1 No

what is a complexity of linear search,binery search?..

Answer / lokesh bhatt

o(n)= linear
o(log n)(base 2)= binary
bcz in linear v search one be one while in binary v divide array in two part every time

Is This Answer Correct ?    15 Yes 4 No

what is a complexity of linear search,binery search?..

Answer / pratik wavhal

For Linear Search Complexity Is :- O(n).
For Binary Search Complexity Is :- O(log(at base 2)n).

Is This Answer Correct ?    8 Yes 4 No

what is a complexity of linear search,binery search?..

Answer / anju

linerasearch-o(n)
binarysearcho(logn)

Is This Answer Correct ?    3 Yes 0 No

what is a complexity of linear search,binery search?..

Answer / shailja thakur

oops........u all guys are duffers ....u have to clear your all concepts..but u can't....bt better luck for next time...go back to your study and work hard .and right answer is 0..:P

Is This Answer Correct ?    5 Yes 6 No

what is a complexity of linear search,binery search?..

Answer / naresh kumar

complexity of linear search 0
n binary search 0log(n)

Is This Answer Correct ?    14 Yes 31 No

what is a complexity of linear search,binery search?..

Answer / hemant belwal

linear search=n/2
binary search=iog2n,2 in the base of log.

Is This Answer Correct ?    36 Yes 91 No

Post New Answer

More Data Structures Interview Questions

Describe the height term in a tree.

0 Answers  


Is map a collection?

0 Answers  


Differentiate among cycle, path, and circuit?

0 Answers  


What is pointer in data structure?

0 Answers  


What is collections singletonlist?

0 Answers  


Does arraylist maintain insertion order?

0 Answers  


How to fill element (initialize at once) in an array?

0 Answers  


What is the Difference between treemap and hashmap?

0 Answers  


Why is sorting important?

0 Answers  


What are the average and worst time complexity in a sorted binary tree is

0 Answers   TCS,


In tree construction which is the suitable efficient data structure?

0 Answers  


Define disjoint set adt?

0 Answers  


Categories