ScratchData LogoScratchData
Back to TeeMee123's profile

Bubble Sort

TETeeMee123•Created January 15, 2015
Bubble Sort
1
1
26 views
View on Scratch

Instructions

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.

Description

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

Project Details

Project ID43300106
CreatedJanuary 15, 2015
Last ModifiedDecember 5, 2015
SharedJanuary 15, 2015
Visibilityvisible
CommentsAllowed