Overview
Interpolation Search uses the target value and the range endpoints to guess a likely position before narrowing the range.
Searches sorted numeric data by estimating where the target should be.
Compact metadata for implementation and discovery.
Interpolation Search uses the target value and the range endpoints to guess a likely position before narrowing the range.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(log log n)
Worst
O(n)
Space
O(1)
pos = low + ((target - values[low]) * (high - low)) / (values[high] - values[low])Estimates where the target should fall when values are roughly evenly distributed.
Show the probe jumping near the expected target position.
Interpolation Search operates in O(log log n) time and O(1) space within the Probe Search family. Key governing relation: pos = low + ((target - values[low]) * (high - low)) / (values[high] - values[low]). Often compared with Binary Search and Linear Search.
What each reference supports for this entry.
Searching reference for Interpolation Search's probe strategy, comparison model, and expected or worst-case behavior.
Specific reference for interpolation-position probing and expected log log n search under uniform keys.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Interpolation search probes a sorted range like binary search but estimates the split from key values.