Merge Sort Visualization

Merge sort algorithm animation and implementation.

Controls
Use the recommended preset, then start or single-step to inspect the trace.
Leave blank to generate the selected preset automatically.
Preview the current dataset or start a run to inspect each step.
Compare Swap Write Active range Pivot
Sorting Workbench
Inspect the current dataset, then run the algorithm to trace every comparison and write.
Hero tool Start with random Debugger walkthrough
Preview
Current step
No run active yet.
Trace details
Phase
Preview
Range
N/A
Indices
N/A
Values
N/A
Pivot
N/A
Metrics
Recent trace
  • Run the current configuration to build a step trace.
Algorithm fit
Problem solved Inspect how the current algorithm transforms a dataset step by step.
Focus Debugger-style algorithm walkthrough.
Best with Short datasets where you want a clear step-by-step view.
Watch for Input shapes that turn the animation into a slow path.
    Compare next

    If you think technology can solve your security problems, then you don’t understand the problems and you don’t understand the technology.

    Bruce Schneier

    CodersTool Categories