1.

Interpolation search is a variation of?(a) Linear search(b) Binary search(c) Jump search(d) Exponential searchThis question was posed to me during an online interview.My doubt stems from Searching topic in division Searching of Data Structures & Algorithms II

Answer»

The correct option is (B) Binary search

The best I can EXPLAIN: Interpolation search is a variation of binary search which gives the best RESULT when the array has uniformly distributed values. Interpolation search goes to DIFFERENT POSITIONS depending on the value being searched whereas binary search always goes to the middle element.



Discussion

No Comment Found

Related InterviewSolutions