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

Why do we use stacks?

472


Does treeset allow null values?

523


What is the relationship between a queue and its underlying array?

711


Explain the Complete structure of hashmap along with the basic coding of the hashmap internal implementation.

597


What are the advantages of merge sort?

467






How do you find the time complexity of a bubble sort?

482


What are the different data structures?

511


How do you find the size of an arraylist?

407


What do you know about traversal in linked lists?

474


What are threaded binary trees?

553


How does arraylist size work?

469


How does a selection sort work?

483


How to find the missing element in integer array of 1 to 7?

526


How many types of arrays are there?

518


Can constructor be static?

466