ScratchData LogoScratchData
Back to SapoTheCreator's profile

SapoTheCreator's "First-Scanner-Swap" Bogo Sort

SASapoTheCreator•Created March 18, 2024
SapoTheCreator's "First-Scanner-Swap" Bogo Sort
0
0
2 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. (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 check if the elements are in order, and if it finds a SINGLE element out of order, it shuffles the WHOLE ARRAY. However, in a different way other than the Bogo Sort's way of swapping.

Project Details

Project ID984401144
CreatedMarch 18, 2024
Last ModifiedMarch 24, 2024
SharedMarch 18, 2024
Visibilityvisible
CommentsAllowed