ScratchData LogoScratchData
Back to Knight506's profile

BubbleSort visual

KNKnight506•Created November 27, 2016
BubbleSort visual
0
0
25 views
View on Scratch

Instructions

Welcome to BubbleSort! BubbleSort is one of the many different algorithms for organizing elements, or values, or strings, or anything in an array or list. How it Works: lets look at a sample of numbers 7 3 5 9 1 BubbleSort starts by comparing the first to values, and checks to see if the first value is bigger than the second. if it is, bubbleSort switches them 7 3 5 9 1 ^ ^ 3 7 5 9 1 ^ ^ 3 5 7 9 1 ^ ^ 3 5 7 9 1 ^ ^ 3 5 7 1 9 every time the algorithm sweeps through the list/array, it moves the largest unsorted element to it's spot in the list/array. eventually, all the elements are sorted.

Description

I HIGHLY RECOMMEND TURBO MODE (Hold Shift and click the green flag) red is the unsorted elements green is elements in their correct spots in the array/list 100% Pen

Project Details

Project ID132867763
CreatedNovember 27, 2016
Last ModifiedJune 1, 2017
SharedNovember 27, 2016
Visibilityvisible
CommentsAllowed