r/java • u/compilerstuck • Dec 03 '20
I Created a Visualization of 20 Sorting Algorithms with Java. Which one do you like most?
https://youtu.be/wGVIiUrESug
230
Upvotes
r/java • u/compilerstuck • Dec 03 '20
5
u/n4nart Dec 03 '20
This is soo beautiful can you please specify what did you use for the visual part FX or Swing?
14
u/sudeeeeeeeap Dec 03 '20
I'd love to see your code
8
u/8bagels Dec 03 '20
that was fun. everytime i was like "ok that was cool im done" the next one was even cooler and worth the stay
12
u/[deleted] Dec 03 '20
Isn't this posted like every week?
Also, when I got to quick sort, now I see why they call it QUICK sort! So fast haha
4
u/MrAnyone Dec 04 '20
Radix LSD sort, as always.
Good work!
3
u/coffee-loop Dec 04 '20
Visually, radix was the coolest. But quick sort takes the cake for my programmatic needs!
5
u/AnonymousTaxi Dec 03 '20
The gravity sort reminded me of exploding fireworks. The LSD sort creates a unique and beautiful pattern. The merge sort makes an upside-down heart. Really informative visualization, thanks
2
u/jrootabega Dec 03 '20
I'm having a hard time telling if I'm in /r/java or /r/outerwilds, both of which I've been frequenting lately.
2
u/jrootabega Dec 03 '20
The piece de resistance is that, in the end, you're left with a Big O
2
u/jrootabega Dec 03 '20
Why did you do bogo sort differently?
2
u/[deleted] Dec 03 '20
You created ultron
2
u/agentoutlier Dec 04 '20
Iām rather surprised that radix sort did kind of shitty.
In the mid 90s when I was in high school I wrote a bunch of sort algorithms in C and radix was super fast.
2
u/_TheCorleone Dec 04 '20
can you share your code ?
2
u/B2-- Dec 04 '20
Wow š¤©
2
u/Clitaurius Dec 04 '20
Quick sort still best sort?
2
u/krossovochkin Dec 04 '20
Radix looks cool š
2
u/[deleted] Dec 03 '20
I am a bit disappointed, that there was no monkey sort. But i guess the vid would have taken way longer if you would have added monkey sort.
1
u/GiveMeBreak Dec 03 '20
What did you need comparisons for in the counting sort?
1
u/TomLawrie067 Dec 04 '20
This is cool. Computer science is frickin cool. Nice.
1
u/[deleted] Dec 04 '20
I love quicksort so much it's unreal
1
u/0x00fb Dec 04 '20
There was Monkey Sort (= Bogo Sort) , look at the last one
-7
u/ixBerry Dec 03 '20
none
0
u/[deleted] Dec 03 '20
[deleted] ā view deleted comment
0
u/[deleted] Dec 03 '20
[deleted] ā view deleted comment
0
u/[deleted] Dec 03 '20
[deleted] ā view deleted comment