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 / bharathi

Binary search

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to show internal storage representation of data structure in RDBM?

541


How would you reverse characters of an array without using indexing in the array.

504


Define a Deque?

608


How to find if linked list has loop?

662


what is the difference between dynamic as well as non - dynamic data structures.

525






Why is hashmap used?

520


What is a pass in bubble sort?

492


Define leaves?

576


Model a data structure for a DFA that takes an event as parameter and performs a desired action.

702


Is data structures and algorithms important?

496


Is hashmap fail safe?

509


Explain different methods in which you can traverse a tree?

530


Explain pre-order and in-order tree traversal.

540


What are the different types of sorting? Explain the difference between them.

614


What does map stand for?

479