ScratchData LogoScratchData
Back to _youtubeN1's profile

Insertion Sort Comparisons

_Y_youtubeN1•Created May 17, 2015
Insertion Sort Comparisons
1
0
23 views
View on Scratch

Instructions

Click each picture to get the times for two different insertion sorts.

Description

Before, I was using insertion sort with swaps. However, I found out from @Zro716 's insertion sort that it uses a temp variable and a bunch of independent replacement blocks. Here is the comparison. It may seem fairly obvious that the tmp-replace is faster, since less actions are happening inside the repeat until() loop.

Project Details

Project ID62741564
CreatedMay 17, 2015
Last ModifiedMay 18, 2015
SharedMay 18, 2015
Visibilityvisible
CommentsAllowed