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

obviously binary search

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you use bsearch() function to search a name stored in array of pointers to string?

494


Define a full binary tree ?

530


What is data structure and its types?

488


Define primary data structures?

582


What is the best data structure and algorithm to implement cache?

524






What are the advantages of modularity?

507


What do you mean by separate chaining?

518


Explain implementation of deletion from a binary tree.

527


What are different techniques for making hash function?

496


Tell me what is quick sort?

548


What is the best complexity of bubble sort?

470


What is array define its types?

467


What are the difference between a stack and a queue?

524


Why do we need to use computers to help us sort lists?

573


Explain set interface?

573