Press space, and just watch as the data sorts itself from lowest to highest data values following the Bubble Sorting algorithm. When all visible data is sorted, the lines will turn green. The red line represents where the sorter currently is in the data. The data is randomised when the green flag is clicked. You can use TurboWarp's custom FPS to speed up this process. I've also added an adjustable 'speed' variable which skips visible frames to make the data sort faster (max. 1000). You can also change the number of data values using its slideable variable (max. 1000). Note that nothing above 200 is reccomended, as this can lag pretty hard on Scratch - although it's fine for TurboWarp. How the algorithm works (in a nutshell): - Checks if the 1st data value is larger than the 2nd - If true, the values are swapped so that the lowest value is 1st - Repeats the process for the next 2 values, and the ones after that
Updates coming soon to add customisation options. Who has the fastest computer (and luckiest data)? The person who sorts 1000 data values the fastest will have their time updated in the 'fastest time for 1000' cloud variable. My lowest is 15.216 seconds (with Turbo Mode) The term “Bubble Sort ” was first used by Iverson in 1962, and this is me simply testing it with Scratch for fun.