r/java • • Sep 22 '20

I Created a Visualization of 20 Sorting Algorithms with Java. Which one do you like most?

https://www.youtube.com/watch?v=AVt0lAklAtM
236 Upvotes

15 comments sorted by

12

u/[deleted] Sep 22 '20

I also really enjoyed this. Do you mind sharing the code?

2

u/compilerstuck Sep 23 '20

The code is not public yet

2

u/Wafflelisk Oct 11 '20

plllpmlll0llllllpllllklllllll9po 6ip

2

u/[deleted] Sep 23 '20

Nice job ! Which libraries did you use for :

  • render graphics ?

  • sounds effect ?

Thank you for your creativity

2

u/compilerstuck Sep 23 '20

Graphics: http://processing.org

Sound: javax.sound.midi

10

u/-informer- Sep 22 '20

I love sorting visualizations. Never heard of a few of these either, favorite name is definitely Tim sort. Favorite algorithm is probably the double selection sort. And the one I liked watching the most was the gravity sort.

3

u/TimGreller Sep 23 '20

Favorite name is Tim sort as well... guess why :D

7

u/mr_poopybuthole69 Sep 22 '20

How do you get those sound effects ?

5

u/ramdaskm Sep 22 '20

very cool. brilliant sound effects

4

u/lukaseder Sep 22 '20

I like how the sort percentage matches my experience with windows progress bars

3

u/matzschmansk Sep 22 '20

Thanks i enjoyed that

2

u/goldaffe58 Sep 22 '20

Can you explain what I watched?

2

u/alexhdr Sep 23 '20

There are several sort algos that sort (x, y) points by Y, x - axis is index, y - axis is value

2

u/mopeyjoe Sep 23 '20

can you rotate bubble sort... the bubbles are not rising

0

u/turkoid Sep 23 '20

Nice. I actually prefer your visualization over this one implemented in C++ https://www.youtube.com/watch?v=kPRA0W1kECg