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

Which one is faster?
A binary search of an orderd set of elements in an array
or
a sequential search of the elements.

Answer Posted / srikanth

binary search if of order log n where as sequential search
is of order n
binary search is faster..

Is This Answer Correct ?    36 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does treeset remove duplicates?

964


Differentiate between iterator and enumeration.

963


Define graph traversals?

1091


How does a selection sort work for an array?

967


Explain the expression trees?

1049


What is the difference between null and void?

991


Which is faster hashmap or hashset?

994


Different Types of pattern?

1013


Mention for which header list, you will found the last node contains the null pointer?

892


Describe queue operation.

1029


What does each entry in the link list called?

950


What are linked lists used for?

1010


What is difference between while and do while?

929


What is a data structure? What are the types of data structures? Briefly explain them

1008


How does hashset maintain order?

999