ScratchData LogoScratchData
Back to Java_Programmer's profile

Insertion Sort Test

JAJava_Programmer•Created August 27, 2017
Insertion Sort Test
4
3
115 views
View on Scratch

Instructions

TURN ON TURBO MODE. Choose how the lists are set up and the number of elements, then watch and see! :) Random - Good example, binary search is faster. Sorted Backwards - Perfect example, binary search is much faster. Nearly Sorted - Counter example, binary search is slower.

Description

I realized you could combine binary search with insertion sort, so here's a quick test to show how it works out! Sometimes with nearly sorted, binary search doesn't sort the first few elements... The coding was a bit rushed, so I'll have to look into that.

Project Details

Project ID172339396
CreatedAugust 27, 2017
Last ModifiedAugust 28, 2017
SharedAugust 27, 2017
Visibilityvisible
CommentsAllowed