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

binary search

Is This Answer Correct ?    36 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use insertion sort?

492


Is quicksort faster than merge sort?

494


What is an example of an array?

570


How to find the duplicate in an array?

553


Can we remove element from arraylist while iterating?

514






List the abstract operations in the set?

534


What method removes the value from the top of a stack?

562


What is a stable sorting algorithm?

585


List the data structures which are used in rdbms.

540


What is the difference between 1d and 2d array?

497


For addition and deletion. Which one is most preferred: array list or linked list?

523


What is time and space complexity of bubble sort?

455


What is the purpose of tochararray ()?

487


What is complete binary tree in data structure?

521


Tell me what should be done in the base case for this recursive problem?

494