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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dynamic data structure?

1398


Is arraylist better than array?

942


How many null values are allowed in a set?

890


Why using cookie to store session info is a better idea than just using session info in the request?

933


What is concurrentlinkeddeque?

1010


What is the need of sorting?

907


Treemap orders the elements on which field?

910


What is the difference between hashmap and treemap?

888


Can we add elements to final list?

909


List all data structures you would use for a memory management module.

965


What do you mean by secondary clustering?

942


How to find 3rd element from end in a linked list in one pass?

881


Why do we need sorting?

848


Why is hashmap not thread safe?

929


State the advantages of using infix notations?

1195