WATCH, LISTEN AND PLAY TO LEARN
Sorting Algorithm Visualizer: see and compare 21 sorts
Sorting Cinema is a free learning app that lets you watch 21 sorting algorithms with sound and animation. It is made for programming beginners and for demonstrations in class. Step through a small array to follow every comparison, swap and placement.
Getting started with sorting
Sorting means rearranging data into a defined order. In this app, numbers are sorted from smallest to largest. The height of a bar is its value, and the horizontal position is its index in the array.
- Choose bubble sort, use a small number of elements and press Step. Watch neighbouring elements being swapped.
- Try insertion sort on “nearly sorted” and “reversed” input to see how the input order changes the movement.
- Compare several algorithms in the Race tab, then guess an algorithm from its movement in the Quiz tab.
The animation time and the operation count shown are not measurements of real program performance. Study them together with the complexity and stability comparison table.
Quick sort vs merge sortWhat to watch and practice exercisesFAQ on sound, operation counts and implementation
Operated by Karou