MyGearHut

Which search checks fewer values?

Pick a target and step through two algorithms on the same sorted list of 32 even numbers. Try 2, then try 46. The winner can change.

Binary search

Jump search ยท 5 values per block

Binary search halves the range at each probe. Jump search checks the end of each block, then scans inside the candidate block. Counts here are array reads, including the block ends. This is a comparison on one small array.

Watch the eight-second MyGearHut race on YouTube