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 do you mean by recursive definition?
What is collections singletonmap?
What are types of Collision Resolution Techniques and the methods used in each of the types?
Give a real time example of stack
What is stack explain with diagram?
Is hashmap keyset ordered?
What is indexing an array?
Is array a linked list?
What is heap tree in data structure?
What is data structure in programming language?
What is stack push?
Why is sorting necessary?
Define outdegree of a graph?
Define collision in hashing?
What data structure does a binary tree degenerate?