1.

What is the auxiliary space requirement of interpolation search?(a) O(n)(b) O(2^n)(c) O(1)(d) O(log n)I had been asked this question during an online exam.This intriguing question originated from Searching topic in division Searching of Data Structures & Algorithms II

Answer»

Right CHOICE is (c) O(1)

Explanation: Interpolation SEARCH does not REQUIRE any auxiliary SPACE for finding the element being searched. So it has a CONSTANT auxiliary space O(1).



Discussion

No Comment Found

Related InterviewSolutions