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

Binary search is faster

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can arraylist store objects?

644


Design a datastructure to represent the movement of a knight on a chess board

729


Is quicksort divide and conquer?

681


Explain what are the major data structures used in the hierarchical data model?

745


do records fall under linear or non linear data structures?

1484


What are the disadvantages of circular list?

697


How do you separate zeros from non-zeros in an array?

703


What are the operations that can be performed on a stack?

690


Define linked list data structure.

755


What is the application of queue?

671


What is the difference between length () and size () of arraylist?

643


State the different types of linked lists?

676


What do you mean by open addressing?

699


Why do we need linked lists?

699


Is hashmap ordered?

749