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

binarysearch is paster then sequentiolsearch

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort a collection in descending order?

537


List the basic operations carried out in a linked list?

652


How do you separate zeros from non-zeros in an array?

521


Can we declare array size as a negative number?

601


What is the meaning of arraylist?

486






What is array traversing?

460


Why is null not allowed in concurrenthashmap?

455


Can we use ordered set for performing binary search?

539


What is entryset method in map?

469


Explain the term recursive case?

535


Can we null keys in treemap?

563


Write code for reversing a linked list.

514


What is bitonic search?

545


Why is arraylist used?

476


Does set allow null values?

458