r/coding • • Dec 23 '20

I created a Visualization of 20 Sorting Algorithms as a Christmas Tree with Java. Merry Xmas :)

https://youtu.be/p6rkVqgwVuI
241 Upvotes

13 comments sorted by

19

u/memepalm Dec 23 '20

Omg merge sort makes tiny trees

4

u/arachnivore Dec 24 '20

The beauty of radix sort is it can be done in parallel. I'd love to see a visual of 8-thread radix sort.

4

u/[deleted] Dec 24 '20

Should've used bells instead of bleeps

3

u/AntaresMX Dec 23 '20

How does this work, any sites or videos you could link me to?

3

u/Seitoh Dec 23 '20

Captivating :O Thanks for sharing!

2

u/iserendipitous Dec 23 '20

Interesting. How did you do it? Would you like to share anything.

2

u/binarybonannza Dec 23 '20

thanks man, merry xmas to you too :)

2

u/AncientSwordRage Dec 23 '20

Firstly, good bamboozle as I've seen a few of these before with only a handful of sorting algorithms.

Secondly, fantastic bamboozle with the bogosort.

Thirdly, it looks like a bunch of these visually make smaller versions of the array then need to combine them (looking at you, merge sort). Could that be weaponised abused to just stretch the image?

1

u/[deleted] Dec 24 '20

I was kind of expecting it to sort the tree into a triangle.

1

u/armanarzoo Dec 30 '20

Amazing job