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 / srikanth
binary search if of order log n where as sequential search
is of order n
binary search is faster..
| Is This Answer Correct ? | 36 Yes | 2 No |
Post New Answer View All Answers
What is garbage collection in data structure?
Explain recursive function & what is the data structures used to perform recursion?
Which is better selection or bubble sort?
What are the 3 control structures in programming?
What is a Breadth First Search? Give a few of its applications.
Can you declare an array without assigning the size of an array?
What is the difference between file structure and storage structure?
What is meant by deque?
What do you mean by union-by-weight?
Name few classes that implement collection interface?
How do you declare An array of three pointers to chars
What is the difference between a Stack and a Queue.
What is the complexity of bubble sort?
Differentiate between priorityqueue and treeset.
What are the tasks performed during postorder traversal?