1.

Interpolation search has a better time complexity than exponential search for any given array.(a) True(b) FalseI had been asked this question at a job interview.I'm obligated to ask this question of Searching in division Searching of Data Structures & Algorithms II

Answer»

The correct choice is (B) False

For EXPLANATION: The worst CASE time complexity of interpolation search and exponential search are O(n) and O(log n) respectively. So exponential search is better when the worst case scenario is considered.



Discussion

No Comment Found

Related InterviewSolutions