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

A Binary search of an ordered set of elemaents in an array

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the simplest file structure? (a) Sequential (b) Indexed (c) Random (a) Sequential

939


When is a binary search best applied?

717


Define collision in hashing?

717


Define a linear and non linear data structure.

720


Write an algorithm that counts number of nodes in the circular linked list

714


An array having 100 elements have numbers from 1 to 99 randomly out of which any number is repeated. Find the repeated number in minimum time and space complexity.

972


In depth questions regarding the data structures and the Databases used in the Projects developed.

760


What differences exist between hashmap and hashtable?

717


How do you find the length of an arraylist?

695


Give a good data structure for having n queues ( n not fixed) in a finite memory segment. You can have some data-structure separate for each queue. Try to use at least 90% of the memory space.

783


How much time does it take to learn data structures?

712


What is Jagged Arrays?

780


What is difference between an Array and ArrayList?

759


What is arraylist load factor?

769


Check if duplicates exist in an array of N which has range 1 to N.

761