Computer science projects

Sorting Algorithm Visualizer

Step through an algorithm, pause to inspect it, and compare other algorithms on the same starting array.

Current operationUnsettledSettled region

Compare on this array

AlgorithmComparisonsArray writes
Inspect array values

Starting array:

Current array:

What the counters mean

Comparisons count comparisons between data values, including the final unsuccessful comparison in insertion sort. Array writes count assignments to array positions: a swap uses two writes; an insertion shift uses one. Loop tests and temporary variables are not counted. Reset keeps the input and comparison results; shuffle or a size change starts a new comparison. Animation delay is not a runtime benchmark.