1.

What is the auxiliary space requirement of the exponential sort when used with recursive binary search?(a) O(n)(b) O(2^n)(c) O(1)(d) O(log n)I have been asked this question during a job interview.My question is from Searching topic in chapter Searching of Data Structures & Algorithms II

Answer»

The correct answer is (d) O(log n)

The BEST explanation: EXPONENTIAL search requires an auxiliary SPACE of log n when used with recursive binary search. This space is REQUIRED for the RECURSION call stack space.



Discussion

No Comment Found

Related InterviewSolutions