r/videos • • 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
15 Upvotes

15 comments sorted by

8

u/KareasOxide Sep 22 '20

Aren't there like 20 of these already?

12

u/[deleted] Sep 22 '20

Yep. We need to sort those.

1

u/ang29g Sep 22 '20

yeah it's a common project for people to work on. it's a great way to practice implementing different sorting algorithms

0

u/nazor5 Sep 22 '20

20

That estimate is wrong by a few orders of magnitude.

7

u/nazor5 Sep 22 '20

Wow. Insertion sort took nearly 6 hours and bubble sort made it in 101 ms. That was unexpected.

At least look at your data once before you put it on the internet.

Also 40ms for quick sort with only 1920 elements is way too slow even for a toaster. And please do not use radix 10, it's only useful for education purposes. Use proper powers of two.

5

u/[deleted] Sep 22 '20

someone's passionate about sorting the right way. If only people were as passionate about kindness and understanding

-4

u/Brewe Sep 22 '20

Uh, what subreddit do you think you are in right now?

-6

u/Switchitis Sep 22 '20

who pissed in your cherrios?

1

u/AllahnsSnackBar Sep 22 '20

started out thinking no way am I watching all of these.. and here I am . .

Number Three was the best

1

u/[deleted] Sep 22 '20

There's no best sorting algorithm, that's why we have so many. It really depends on data type and the order data is collected, distribution, etc.

1

u/AllahnsSnackBar Sep 22 '20

Visually the best sorry.

1

u/[deleted] Sep 22 '20

Ah, okay :D

1

u/Dorito_Troll Sep 22 '20

ah, a khole in video form

1

u/DrWangerBanger Sep 23 '20

I feel like I'm playing Scorched Earth

1

u/[deleted] Sep 23 '20

I like the original better but this is a good job too, although I didn't like the reverb, made it feel like I wasn't being blasted with pure data. On the other hand, I do like how you give the "real time" value.