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 are the advantages of bubble sort?
Is array size dynamic or fixed?
Why do we use trees in data structures?
Which collection allows null values?
Write code for reversing a linked list.
What is data and data types?
Explain multiply linked list in short.
Difference between hashset and treeset?
Is hashmap a collection?
What is the space complexity of quicksort?
Mention the data structures which are used in graph implementation.
Have you ever used HashTable and Directory?
What is mean by abstract data type?
Define data type and what are the types of data type?
Define disjoint set adt?