+1 vote
in Data Structures & Algorithms II by (110k points)
Which of the following is the most desirable condition for interpolation search?

(a) array should be sorted

(b) array should not be sorted but the values should be uniformly distributed

(c) array should have a less than 64 elements

(d) array should be sorted and the values should be uniformly distributed

The question was asked in semester exam.

My question comes from Searching in division Searching of Data Structures & Algorithms II

1 Answer

+1 vote
by (614k points)
selected by
 
Best answer
Right answer is (d) array should be sorted and the values should be uniformly distributed

The best I can explain: Desirable condition for interpolation search is that the array should be sorted and the values should be uniformly distributed. The algorithm would fail to give the correct result if array is not sorted.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...