Unvisited Eliminated Probing Found

Search Algorithm Growth Curves: Linear vs Binary vs Jump vs Interpolation

This simulator measures four classic search algorithms — Linear, Binary, Jump and Interpolation search — instead of just animating one run: for a sweep of array sizes it generates fresh sorted arrays, runs every algorithm against real present-or-absent targets, tallies the actual number of comparisons, and plots the averages as growth curves on a log-scaled chart, so O(n), O(log n), O(√n) and O(log log n) show up as measured data rather than a claim. A second panel plots one array as a number line positioned by real value rather than by index, and steps a single chosen algorithm's probes live across it — which makes it visually obvious why interpolation search's straight-line guess only works when values are roughly evenly spaced, and why a genuinely adversarial "skewed" distribution (keys spaced by a constant ratio rather than a constant difference) breaks that guess and pushes its comparison count toward linear search's, while binary search — which never looks at the values, only their order — stays completely unaffected.