Overview
Jump Search skips through a sorted array by fixed block sizes, then linearly scans the block that may contain the target.
Searches sorted data by jumping ahead in blocks before scanning a small block.
Compact metadata for implementation and discovery.
Jump Search skips through a sorted array by fixed block sizes, then linearly scans the block that may contain the target.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(sqrt n)
Worst
O(sqrt n)
Space
O(1)
step = floor(sqrt(n))Uses a jump size near the square root of the input length to balance jumping and linear scanning.
Show large jumps followed by a short linear scan.
Jump Search operates in O(sqrt n) time and O(1) space within the Block Search family. Key governing relation: step = floor(sqrt(n)). Often compared with Binary Search and Linear Search.
What each reference supports for this entry.
Searching reference for Jump Search's probe strategy, comparison model, and expected or worst-case behavior.
Good next jumps from the relationship graph, ranked for useful discovery.
Jump search and binary search both exploit sorted order but use different probing patterns.