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

binarysearch is paster then sequentiolsearch

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can value be null in treemap?

510


How does a dynamic array work?

455


What is array sort?

510


How do you make a bubble chart with 3 variables?

469


Difference between arrays and linked list?

548






What is stack and queue in data structure?

478


Differentiate between arraylist and vector.

855


What are the disadvantages of linear list?

507


Can we add duplicate keys in a hashmap? What will happen if we attempt to add duplicate values?

476


What is binary search in data structure?

455


Differentiate between iterator and listiterator.

633


What differences exist between hashmap and hashtable?

509


List the applications of stacks?

547


What is data and data types?

509


Briefly explain recursive algorithm 50 how do you search for a target key in a linked list?

574