Sorting Visualizer

Animated demonstration of sorting algorithms, supporting bubble, selection, insertion, and quick sort.

Parameters

Current Array

Visualization

Comparisons
0
Swaps
0
Algorithm
Bubble Sort

Usage Instructions

Features

The Sorting Visualizer animates the execution of bubble, selection, insertion, and quick sort, displaying comparison and swap counts in real time to help you understand how sorting algorithms work.

Steps

Select a sorting algorithm → set array size and animation speed → click "Shuffle" to create an array → click "Start Sort" to watch the animation.

Notes

All computations run locally in the browser; array size ranges from 5 to 50; smaller speed values mean longer intervals; sorting cannot be restarted while in progress.