Interpolation Search
Probe where a straight line through the range ends would put the target. Log log n on even data.
Cost
- Best
- O(1)
- Average
- O(log log n)
- Worst
- O(n)
- Space
- O(1)
Average case assumes uniformly distributed keys.
Before this
Taught by the same lesson
Search Variants covers these too, in the same run.