What is the average-case time complexity of interpolation search?
- A O(log n)
- B O(n)
- C O(log log n)
- D O(1)
Explanation
On uniformly distributed sorted data, interpolation search estimates the position of the key and averages O(log log n) comparisons.
What is the average-case time complexity of interpolation search?
On uniformly distributed sorted data, interpolation search estimates the position of the key and averages O(log log n) comparisons.