Sorting Algorithms


We all know that Quicksort is one of the fastest algorithms for sorting. It's not often, however, that we get a chance to see exactly how fast Quicksort really is. The following applets, inspired by the algorithm animation work at Brown University, chart the progress of three common sorting algorthms while sorting the same set of data.

Click on each applet to see the algorithm run. Click on the algorithm name to see a larger demo and the code.

Bubble Sort
Bi-Directional Bubble Sort
Insertion Sort
Selection Sort
Merge Sort
Quick Sort

Original sorting algorithms by:

James Gosling, jag@firstperson.com