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

Write a recursive c function to calculate the height of a binary tree.

900


What is scalar example?

954


What is the space complexity of selection sort?

936


In depth questions regarding the data structures and the Databases used in the Projects developed.

936


How many links are there in a binary tree of N nodes?

1015


What is difference between while and do while?

865


Differentiate between iterator and enumeration.

901


Is hashmap ordered?

954


What is difference between arraylist and linkedlist?

1031


What is long data type?

967


Define a priority queue?

1106


What do you mean by sorting?

846


Why do we need searching algorithms?

1072


Can arraylist shrink?

888


What is the use of tree data structure?

867