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

Binnary search tree complexity is log n where as linear search terr complexity is 'n'so it is quite clear from complexity that Binnary tree is faster than sequential search or linear search........complexity means rate of execution time.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write an algorithm to show the reverse of link list?

914


Explain about the different lists available in the collection?

918


What is the difference between arrays sort and collections sort?

835


What is bubble sort algorithm?

1013


What is height balanced tree?

988


What do you mean by secondary clustering?

995


Name few classes that implement collection interface?

973


Can arraylist have null values?

906


What is an example of an array?

1124


Which programming language is best for data structures?

941


Explain what is linear search?

1006


What are the advantages of linked list over an array?

985


What is the slowest sorting algorithm?

958


How memory is reserved using a declaration statement in data structure?

1188


Define depth and height of a tree?

1175