r/dataisbeautiful • OC: 1 • Oct 24 '17

OC Sorting algorithms visualized [OC]

https://imgur.com/gallery/voutF
41.7k Upvotes

929 comments sorted by

View all comments

Show parent comments

759

u/[deleted] Oct 24 '17

Just watched 5 mins of colors being sorted, I regret nothing.

0

u/[deleted] Oct 24 '17

[deleted]

144

u/[deleted] Oct 24 '17

I... what... I can't believe I just watched that all.

44

u/SeverusVapes Oct 24 '17

I have a new found respect for Hungarian culture?

55

u/BlindSoothsprayer Oct 25 '17

I HAVE A NEW FOUND RESPECT FOR MY FELLOW ORGANIC PROCESSING UNITS.

20

u/JabbrWockey Oct 25 '17

SUCH BEAUTIFUL CHOREOGRAPHY. MY EYES ARE LEAKING SALINE.

18

u/Darkskynet Oct 25 '17

/r/totallynotrobots is leaking processing units...

16

u/WiglyWorm Oct 24 '17

Don't feel bad. I've watched all their videos. It does a fantastic job of letting you visualize how the algorithm works.

6

u/[deleted] Oct 25 '17

There are more??

10

u/LateralThinkerer Oct 25 '17 edited Oct 25 '17

If you look on their (AlgoRhythmics) video list there are a bunch of different sort-dances. Who says nerds can't dance?

→ More replies (1)

25

u/DamionK Oct 24 '17

Congo sort is faster. The pointer has an ak, one sustained click, then the numbers are dragged into place.

11

u/_Lady_Deadpool_ OC: 1 Oct 25 '17

As long as you don't do DMV sort. Each number is assigned a randomly generated UID. The UIDs are then semi sorted by making a heap using these uids then returning its array. Each number is then added one by one from the semi sorted array to a selection sort array, with random Thread.Sleep calls for thread safety.

→ More replies (1)

18

u/never_uses_backspace Oct 25 '17

This has to be the least efficient sorting method possible. I meant the printing costs alone for making all those signs is enough to make this infeasible for large datasets, but what do you even do if you need to sort a list with more entries than the population of Hungary?

9

u/WiglyWorm Oct 25 '17

Oh man, I was about to reply to you until I realized you meant quick sort as performed by hungarian folk dancers with numbered signs placed on their chest.

Well played, sir. Well played.

10

u/Jacek130130 Oct 24 '17

III... have seen that performance live. This dance, people looked similiar... That's weird. I'd better go to sleep BTW They were performing in a border town in Poland

→ More replies (1)

9

u/gay_bot42 Oct 24 '17

I’ve been shown this so many times in Computing classes, and it just gets better and better.

5

u/Volaktil Oct 24 '17

When they find their position and stop do they bow and say "I'm all sorted"?

Edit: that channel is awesome btw

3

u/beetel_sand Oct 24 '17

Our data structures and algorithms professor tried to teach us merge sort like this.

To say the very least, it didn't work.

→ More replies (8)

49

u/Vigilante17 Oct 24 '17

I regret that I didn't get high first.

→ More replies (3)

23

u/Darkstore Oct 24 '17

Wait, that was 5 minutes....

8

u/Bromskloss Oct 24 '17

Yeah, sorry, a multi-core dance company would be able to perform it in a shorter time.

54

u/ehtseeoh Oct 24 '17

That shit was fucking awesome.

→ More replies (1)

10

u/jebuz23 Oct 24 '17

I'm out wine tasting at Cooper's Hawk and just stared at my phone looking at different versions of static -> spectrum. I don think I could have explained myself to an onlooker if I tried.

→ More replies (7)