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

What is mergesort and hashtable?

652


Can arraylist be empty?

467


Is linked list faster than array?

490


What are the difference between arraylist and linkedlist from the perspective of sorting?

556


How can we remove loops in a linked list? What are the functions of fast and slow pointers?

684






Can we override compareto method for enumerations?

580


Where is data structure used?

544


Why quicksort is better than merge sort?

482


How can I search for data in a linked list?

563


What are the different types of linked list?

473


Explain quick sort and merge sort algorithms.

579


Can we add duplicate keys in a hashmap?

509


What is difference between list and set?

473


What are all the classes and interfaces that are available in the collections?

508


Which is better bubble sort or selection sort?

475