HomeAlgorithms & AISearch Algorithms: Linear vs Binary vs Jump vs Interpolation

Search Algorithms: Linear vs Binary vs Jump vs Interpolation

Interactive 3D race between Linear, Binary, Jump and Interpolation search on a sorted array: watch each algorithm narrow (or fail to narrow) the search space, with live comparison counts and search-space size.

Algorithms & AI3DEasy60 FPS📱 Mobile-adapted⇄ 2D version
search-algorithms ↗ Open standalone

This simulator lines up a sorted array as a 3D bar chart and runs four classic search algorithms over it one comparison at a time — Linear Search, Binary Search, Jump Search and Interpolation Search — so you can watch, step by step, how each one decides where to look next. Bars turn gold while being probed, grey once eliminated from the remaining search space, and green when the target is found; live counters track the number of comparisons made and how much of the array is still in play. Switching the array between a uniform and a heavily skewed distribution shows exactly where interpolation search's value-based guessing wins big or breaks down, while the size slider lets you confirm the O(log n), O(√n) and O(n) growth rates directly by comparing counts as the array grows.

⚙ Under the hood

Watch Linear, Binary, Jump and Interpolation search race across a sorted 3D bar array one comparison at a time, with live comparison counts and search-space size so you can see O(n), O(log n) and O(sqrt n) growth directly.

algorithmsbinary-searchcomputer-sciencesortingcomplexitydata-structures

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)