A Sorting Algorithm Demo

Note: MergeSort looks a little strange. The graphics package does not understand how to draw both the temporary array and the main array, so what is displayed is a mix of the two.

Also note that on some browsers, spurious lines appear in the display, or the display is not updated properly after two elements are swapped. It is unclear why this happens.

The ``Start'' button starts each sort. You can have as many as you like running at the same time. The FF, F, S, and SS buttons make the algorithm run much faster, a little faster, a little slower, or a bunch slower.

If you see this, then your browser does not support Java applets, or you have disabled their use, and you will not be able to view this demo. InsertionSort MergeSort QuickSort Another QuickSort ShellSort HeapSort
Penny Ellard