r/programming • u/compilerstuck • Dec 03 '20
I Created a Visualization of 20 Sorting Algorithms with Java. Which one do you like most?
https://youtu.be/wGVIiUrESug8
3
2
2
2
u/sylvanelite Dec 03 '20
I always like these visualisations of bucket sort, they are like: "hmm let me think about it, ok. done."
But why do the visuals of bucket sort run faster than counting sort? The real time measured shows counting sort being faster, but the visuals are the other way around, with bucket sort being faster.
2
u/holgerschurig Dec 04 '20
I like the one most that doesn't do slow visualizations and is the fastest for my data set.
:-)
2
u/skuzeee Dec 04 '20
i have a test in my data structures and algorithms class tomorrow. not a bad way to procrastinate i guess
2
u/luziferius1337 Dec 04 '20
Just FYI: Youtube’s chapter markers to skip to specific algorithms are only available on the YT site and not in the embedded player.
1
u/macdara233 Dec 04 '20
This sounds like how people in the 80s thought Aliens would communicating with us would sound like.
1
u/supernonsense Dec 05 '20
oh goodie, another one of the 5000 video's like this that already exist ...
5
u/compilerstuck Dec 03 '20
There are 1500 Elements in an Array, visualized in a circle (red to blue)
Every Element has its own colour.
When 2 Elements are swapped:
- They change their position in the circle
- They get closer to the mid of the circle if they are more far from their original position
So.. original position means furthest away from mid (sorted)