Loading practice questions
Which of the following is the most desirable condition for interpolation search?
Correct Answer: D — array should be sorted and the values should be uniformly distributed
Explanation:
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.