ScratchData LogoScratchData
Back to esmartpants's profile

Bubble Sort

ESesmartpants•Created February 25, 2022
Bubble Sort
5
3
72 views
View on Scratch

Instructions

Stare/Watch. Every time it finishes sorting, it shuffles again after 3 seconds. Press space to change the delay during the sorting process. Shift + Green Flag for turbo mode. follow plz

Description

~~~~~~~~~~~~~~~~~NOTES~~~~~~~~~~~~~~~~~~~ NOT 100% pen! :D I could make it 100% pen though. This shuffles the numbers from 1~70, so there are 70! possible arrangements of the numbers. 70! is 11978571669969891796072783721689098736458 938142546425857555362864628009582789845319680000000000000000, which is quite a lot of arrangements! Bubble Sort is the simplest sorting algorithm, it repeatedly swaps adjacent elements if they are not in order. (70! stands for 70 factorial, and it is equal to 70 * 69 * 68 * 67 * ... * 3 * 2 * 1) ~~~~~~~~~~~~~~~~~CREDITS~~~~~~~~~~~~~~~~~~ TurboWarp for the for each () in range () block. It really helps simplify code! All code by me, the concept is not by me.

Project Details

Project ID650590873
CreatedFebruary 25, 2022
Last ModifiedJune 18, 2022
SharedFebruary 25, 2022
Visibilityvisible
CommentsAllowed