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
Can we put null value in hashmap?
How many null values are allowed in hashmap?
What are hash tables good for?
What happens in insertion sort?
What is array sort?
You want to insert a new item in a binary search tree. How would you do it?
How does a hashtable work?
Which is faster hashmap or treemap?
What do you mean by spanning tree?
Write a Program for Reverse a linked list.
What is time and space complexity of bubble sort?
Explain the steps to insert data into a singly linked list?
Differentiate file structure from storage structure?
Define data type and what are the types of data type?
What is sorting problem?