Overview
Exponential Search is useful for sorted arrays when the target may be near the front or the size is not known up front.
Finds a search range by doubling the bound, then uses binary search inside it.
Compact metadata for implementation and discovery.
Exponential Search is useful for sorted arrays when the target may be near the front or the size is not known up front.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(log i)
Worst
O(log n)
Space
O(1)
Show the search window doubling before a binary search begins.
Exponential Search operates in O(log i) time and O(1) space within the Range Expansion Search family. Often compared with Binary Search and Fibonacci Search.
What each reference supports for this entry.
Searching reference for Exponential Search's probe strategy, comparison model, and expected or worst-case behavior.
Good next jumps from the relationship graph, ranked for useful discovery.
Exponential search first brackets the target range and then applies binary search within it.