ScratchData LogoScratchData
Back to _youtubeN1's profile

Heapsort Optimization

_Y_youtubeN1•Created September 16, 2015
Heapsort Optimization
1
1
70 views
View on Scratch

Instructions

Click the sort button. To sort again press the green flag again.

Description

What I did here was to try to make as little substitutions of variables when they are already set to a number we know of (no other variables, no parameters), and it ended up making the script longer but improving by around 0.1 seconds for 10000 objects, min=0, max=10000, and iteration=1.

Project Details

Project ID77006910
CreatedSeptember 16, 2015
Last ModifiedMarch 30, 2016
SharedSeptember 18, 2015
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root