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 / uma sankar reddy.p

Binarysearch is faster than sequential search

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a linear data structure.

723


Are lists mutable?

695


What is difference between data type and data structure?

589


What are the different types of data structures?

739


What are the different types of sorting? Explain the difference between them.

827


Give one example of right rotation.

689


How remove all from arraylist?

675


List some applications of queue data structure.

710


Write program for Quick sort ?

862


Is quicksort greedy algorithm?

699


What is difference between capacity and size of arraylist?

820


What is quick sort?

846


Which sorting is best in time complexity?

716


Does treemap preserve order?

638


Explain the uses of matrix with an example?

789