Two Animated Sorts - in Java
This Java applet shows a Selection Sort algorithm on the left and a
Bubble Sort algorithm on the left.
Each sort runs in its own thread, and can be separately started and stopped.
The pushbuttons under each will start and stop each algorithm; however,
they may not work during the first sort, and they may not work instantly
on subsequent sorts.
The two sorts take about the same time to finish because of
implementation details.
View Source Code
Jim Henry henry@cs.niu.edu
March 11, 1996