Watch a bubble sort simulation of 10 random numbers from 1 to 100, being sorted from lowest to highest in value. You can change the speed but it doesn't do much. Use turbo mode for a better graph. The list item indexes flash yellow not only when two items are checked if they should be swapped, but also when the whole list is checked to see if it is completely in order after each pair check. The yellowish pointers show the pairs being looked at.
Made for a small AS computing project. The graph will always have a degree of error, in that by the time it has drawn the whole thing, roughly 3 of the 10 shown values are wrong. This is because it takes 0.1 seconds to draw the lines. The pointer may be in the wrong place for different operating systems / browsers im not really sure, but they were in the wrong place on my mac but in the right place on a windows desktop computer at school. Ⓑⓤⓑⓑⓛⓔs cats u wot m8