8
0
15
1
23
2
31
3
42
4
49
5
56
6
63
7
71
8
79
9
86
10
94
11
AlgoPlus//structures / interpolation
Read the theory

Interpolation Search · Value Probe

Estimate the position from the values themselves, not just the middle.

Stability
In-Place
Space Complexity
Avg Time
Target
Legend
Element being checked
Eliminated (outside window)
Target found
AI Tutor Workspace
In a nutshell
Interpolation search improves on binary search when a sorted list's values are evenly spread. Rather than always checking the middle, it estimates where the target ought to be from its value — looking for 95 in a 1–100 list, it probes near the far end, just as you'd open a dictionary near the back for 'water'. On uniformly distributed data that guess is so good it runs in about O(log log n); on lopsided data the guesses go wrong and it can degrade to O(n).
Ready
Press play to begin the cinematic walkthrough.
Instead of always probing the middle, guess where the target should be by its value — like opening a phone book near 'S' for Smith.
Key terms
Go deeper in the lesson
Read the full theory, intuition & complexity for Interpolation Search · Value Probe.