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 / amit patra

A sequential search of the elements.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are some of the best practices relating to the java collection framework?

672


Given an array of integers, devise a program to replace every element with the next greatest element on the right side in the array. Also, replace the last element with 5 as there no element on the right side of it.

728


What is difference between capacity and size of arraylist?

792


Mention a few applications of linked lists?

686


What is data structure in programming language?

668


Is a list an array?

605


Is bucket sort stable?

675


How will you represent a linked list in a graphical view?

811


How does max heap work?

669


What is time complexity of sorting algorithms?

694


What is map entry?

657


How do you find a string is anagram or not?

664


What are all the classes and interfaces that are available in the collections?

669


How to sort an Array?

709


which is the simplest file structure? (Sequential, indexed, random)

984