ScratchData LogoScratchData
Back to SapoTheCreator's profile

SapoTheCreator's Random Bubble Sort

SASapoTheCreator•Created March 21, 2024
SapoTheCreator's Random Bubble Sort
0
0
1 views
View on Scratch

Instructions

Press Space to generate the array. Press S to sort it. You can set how many elements you want in the array before pressing Space. Turn sound on or off by pressing A. If that doesn't work, try double-pressing A. (NOTE: Turning audio on might slow down the algorithm a little bit. Also, use Turbo Mode on this project by holding Shift and clicking the flag.)

Description

This sorting algorithm scans the array to make sure all elements are sorted. If not, it actually picks two adjacent pairs of elements and if the first is greater than the next, it only swaps them then. This sort is also an impractical sort, so it will take a short while (Probably up to 539 seconds). When you press Space, Type 1 for Shuffled (100%), 2 for Reversed Input, and 3 for Shuffled (25%)

Project Details

Project ID987075013
CreatedMarch 21, 2024
Last ModifiedMarch 21, 2024
SharedMarch 21, 2024
Visibilityvisible
CommentsAllowed