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 / naresh
binary search..if the elements are not in a sorted order
then sequential search or linear search would be better.
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is the difference between array and list?
What are the advantages of linked list over an array?
Which is faster array or arraylist?
Describe tree rotation in avl tree.
How does the bubble sort work?
Explain binary searching and Fibinocci search?
Define a complete binary tree?
What is a singletonlist?
How many types of data structures are used?
How is bubble sort done?
What is difference between hashmap and map?
Why is data structure important?
What is a B tree?
Mention the data structures which are used in graph implementation.
Write program for Quick sort ?