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


Please Help Members By Posting Answers For Below Questions

What is the difference between array and list?

491


What are the advantages of linked list over an array?

554


Which is faster array or arraylist?

476


Describe tree rotation in avl tree.

579


How does the bubble sort work?

504






Explain binary searching and Fibinocci search?

565


Define a complete binary tree?

543


What is a singletonlist?

492


How many types of data structures are used?

524


How is bubble sort done?

464


What is difference between hashmap and map?

455


Why is data structure important?

537


What is a B tree?

595


Mention the data structures which are used in graph implementation.

472


Write program for Quick sort ?

602