ScratchData LogoScratchData
Back to JimmyC's profile

Pigeonhole Sort (example)

JIJimmyC•Created December 23, 2019
Pigeonhole Sort (example)
2
2
181 views
View on Scratch

Instructions

Add your own comma delimited data into the variable "Data03" - the last item in your data must be a $. The default data is "Data01" (see below). (Scratch 3.0 has a limit of 200000 items (I think) in an array so keep your numbers less than 200000.)

Description

Data sets in the code: Data01 - random integer list between 1-6, n=6 Data02 - random integer list between 1-9999, n=9999 Data03 - empty (comma delimited data you provide) More Info: https://en.wikipedia.org/wiki/Pigeonhole_sort https://xlinux.nist.gov/dads/HTML/pigeonholeSort.html

Project Details

Project ID355929900
CreatedDecember 23, 2019
Last ModifiedJanuary 1, 2020
SharedDecember 23, 2019
Visibilityvisible
CommentsAllowed