ScratchData LogoScratchData
Back to ChromeCat_test's profile

Depth sort test

CHChromeCat_test•Created June 30, 2021
Depth sort test
30
17
356 views
View on Scratch

Instructions

Use arrow keys to change the number of partition lines These lines show where the space was partitioned during the QuickSort algorithm. Move the point P, around the outside of the shape to see how the line depth (indicated by colour: red = far, green = close) changes. You can also move the points by clicking and dragging.

Description

This makes use of my depth comparison algorithm: https://scratch.mit.edu/projects/548009733/ It uses quicksort with my depth sort algorithm to essentially perform a kind of Binary Space partitioning algorithm. This took me almost 2 months as it making it was far from trivial and there were alot of bugs to fix. It's still not perfect and I will be trying to squash the few remaining bugs but it's good enough to demo.

Project Details

Project ID549653181
CreatedJune 30, 2021
Last ModifiedJune 13, 2022
SharedJuly 8, 2021
Visibilityvisible
CommentsAllowed