ScratchData LogoScratchData
Back to MasterOfArithmetic's profile

Visualizing the Quicksort Algorithm

MAMasterOfArithmetic•Created February 26, 2015
Visualizing the Quicksort Algorithm
6
5
363 views
View on Scratch

Instructions

Press space to start the project. The gray bars are bars that nothing is happening to. The red bars are items that were just swapped. The blue shows it as it is looping through, finding which items to swap.

Description

This adds 75 random numbers to a list. Then, it uses the quicksort algorithm to sort it. As it sorts it, it draws the list with each item as a bar. This allows you to watch it sort! https://en.wikipedia.org/wiki/Quicksort

Project Details

Project ID49768656
CreatedFebruary 26, 2015
Last ModifiedMarch 30, 2017
SharedFebruary 26, 2015
Visibilityvisible
CommentsAllowed