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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an ordered map?

862


How do you do a mergesort?

849


Difference between hashset and treeset?

986


What is a directed graph?

901


What do you mean by sorting?

786


Is hashmap keyset ordered?

955


What is the difference between data types and data structures?

863


What is the minimum number of nodes in an avl tree of height h?

831


Are hash tables ordered?

857


What is the time complexity of arrays sort?

803


Describe linear probing with an example.

933


Two linked lists are given, find out the sum of them without altering the linked list?

919


What are different types of algorithms?

848


Define static data structures?

925


Can we increase the size of statically allocated array?

839