uses shadow jutsu to create the array element dancers
@coldblaze1005 жыл бұрын
Now we're prepared for that one
@andreatrezzi71865 жыл бұрын
You made my day 😂😂😂
@jiren89914 жыл бұрын
Lol from Pakistan
@dna77678 жыл бұрын
TrippedOverShoelaceException
@zoltancsikos56048 жыл бұрын
What?
@oribt17 жыл бұрын
It's a computer science joke :)
@tordurhansen3337 жыл бұрын
Made me laugh XD
@GewelReal5 жыл бұрын
Missing file boot.dat
@rhysperry1115 жыл бұрын
Lol I laughed so hard I woke everyone in my dorm up
@pegleg7595 жыл бұрын
This is what actually goes down every time your computer sorts
@starpetalarts66684 жыл бұрын
Bu Computers do it with no music nor dancing, which is why I don't like computers doing it.
@JS191904 жыл бұрын
I laughed way to hard at this comment haha
@CallinWire4 жыл бұрын
Well, no, but actually, yes.
@garychap83843 жыл бұрын
We're gonna need a bigger heatsink
@Sph10035 жыл бұрын
Guy: - What architecture do you use? - Me: - *Hungarian folk dancers* -
@tetrabromobisphenol5 жыл бұрын
That ALU is so slow. Comparison operations are taking at least 8 boot twists and hand claps.
@yagot23238 жыл бұрын
You can overclock it by changing the video speed xD
@TomsMucenieks7 жыл бұрын
Yago T underestimated comment.
@alejandrocanalesgonzalez28515 жыл бұрын
True! Awesome!!
@jan487125 жыл бұрын
Or by ordering the band to change tempo
@impostrous5 жыл бұрын
Nobel fucking prize in computer science
@aienbalosaienbalos41865 жыл бұрын
Toms Mucenieks lol didn’t expect to find you here. Exposed as a nerd!
@VR_Wizard8 жыл бұрын
And all that in O(Hungarian * log(Hungarian) ) time.
@tuxedobob26 жыл бұрын
Is this Hungarian notation?
@ankit73436 жыл бұрын
hungarians
@esper46055 жыл бұрын
I think you mean Hungarian Hungarian log * O
@SZ-wt3nk5 жыл бұрын
By the speed of this, more like O(Hungarian^2)
@julkkis6665 жыл бұрын
@@SZ-wt3nk or even O(Hungarian^Hungarian ) :O
@mountainhobo5 жыл бұрын
I just realized that my 30 years in computer science has been solely so I could laugh today watching this.
@giorgio99715 жыл бұрын
I've been in cs for 6 months and I can laugh too
@Spartakus19195 жыл бұрын
no one cares
@Keys8795 жыл бұрын
@@Spartakus1919 Hey Jack, Fuck yourself you salty git.
@lightcity89335 жыл бұрын
Ok that's a mood
@guyincognito56635 жыл бұрын
Jack Hancotte yeah what the fuck, Jack! Not cool, man, not cool!
@anonimenkolbas13055 жыл бұрын
A video that fulfills a specific niche i didn't think existed: comp sci students that • don't wanna live anymore • are awake at an ungodly hour • have no other options left • have their final on sorting algorithms tomorrow • have only two functioning brain cells left, and • like hungarian folk dance.
@busteraycan5 жыл бұрын
I'm just taking a shit with my phone.
@drawsgaming70945 жыл бұрын
I am not -a comp sci student -awake at an ungodly hour (at the moment) -out of options -getting any sort of 'final' for a couple of months -down to 2 brain cells - a fan of Hungarian folk dance TLDR; everything that you just said is incorrect in my case
@qqqsfdf12325 жыл бұрын
That's a very tight Venn diagram
@stormSDKFZ5 жыл бұрын
I feel directly attacked
@Zwodo5 жыл бұрын
@@drawsgaming7094 I am a little bit concerned you didn't cross out "don't wanna live anymore"
@falconJB9 жыл бұрын
Wow, even slower than bubble sort, Hungarian folk dancers just just aren't a good architecture for running sorting algorithms.
@mathieucuny88729 жыл бұрын
+Jeremiah B You made me chuckle. Well done. :)
@alqacer9 жыл бұрын
+Jeremiah B U wot m8? Didn't you see select sort? Those guys optimized it by modifying space-time.
@nellbert9 жыл бұрын
+alqacer alqacer you probably dont understand the joke..
@obineg57528 жыл бұрын
+Jeremiah B i have 2.0 now, which features female dancers. it processes not really faster, but it is more entertaining while you wait.
@saltyman78888 жыл бұрын
andras grof is angry.
@SzaboB3310 жыл бұрын
it is funny, that the quick-sort video takes ~7 minutes however the bubble-sort video only takes ~5 minutes :D
@dmitriymiroshnichenko4185 жыл бұрын
Quicksort is quite effective for big data arrays but it's not good for small arrays. That's why functions like std::sort use other sorts for small arrays (including the last calls of the quicksort).
@loam5 жыл бұрын
@@dmitriymiroshnichenko418 Was about to comment the same ;)
@slenderpaul5 жыл бұрын
Well, the bubble sort was run on a machine with higher Hungarians per second. It also had a pretty lucky starting permutation.
@secdeal10 жыл бұрын
What the dancers shout: "divide and conquer" :3
@teemupennanen83593 жыл бұрын
Thank you!
@Julia-dy8fc3 жыл бұрын
no way haha, that makes the video kinda perfect :D
@khoibut62063 жыл бұрын
That's awesome
@-Nine9-10 жыл бұрын
This is... by a wide margin... the nerdiest thing... I've ever seen... in my whole life.
@lilegend43828 жыл бұрын
+Ambit10n9 I was deeply touched by these videos.
@juliusg.farkas21887 жыл бұрын
You might want to step out of the trailer park every now and again...
@alejandrocanalesgonzalez28515 жыл бұрын
@@juliusg.farkas2188 don't be so rude!
@juliusg.farkas21885 жыл бұрын
@@alejandrocanalesgonzalez2851 I was being nice
@betkakad5 жыл бұрын
Then you haven't seen kzbin.info/www/bejne/aKPNk6epjZynrcU
@Saltssaumure8 жыл бұрын
No multi-threading? Come on, optimise your dancers already!
@SudiptoChandraDipu5 жыл бұрын
i was wondering the same thing. it would be cooler with multithreads
@OrangeC75 жыл бұрын
@@SudiptoChandraDipu Perhaps in a part 2?
@devincory96955 жыл бұрын
You mean multi-treading?
@wenqiweiabcd5 жыл бұрын
@@martian17 You don't need that to demonstrate algorithm, if you pull in ABI and stack frames it will start to look silly
@eyebee-sea44445 жыл бұрын
For multi threading the men have to be replaced by women.
@LordEvrey8 жыл бұрын
I should re-consider hungarian notation.
@flobbie875 жыл бұрын
finally somone wrote it down
@corleonevito80208 жыл бұрын
This is so much better than hours of lecture in my university
@yannikmullis71365 жыл бұрын
Are you really sure about this?
@radkye_5 жыл бұрын
Well. My programming professor showed us series of those dances at the lecture :D
@longlostwraith51064 жыл бұрын
Ideally, that's how teaching should be in general. Entertaining and informative. But few teachers have enough passion, time and are payed well enough to do so...
@vikurtz8 жыл бұрын
I wish the Hungarians were multithreaded :(
@zoltancsikos56048 жыл бұрын
What?
@Museko8 жыл бұрын
+Zoltan Csikos This is a bit late, but from Google: "In computer architecture, multithreading is the ability of a central processing unit (CPU) or a single core in a multi-core processor to execute multiple processes or threads concurrently, appropriately supported by the operating system." This means that Kody Kurtz was making a joke about how this process could go faster if instead of only one array being sorted at a time after the array is divided, all arrays continue the process at the same time. It would be harder to keep track of visually, but the process would be much faster. Edit: Google is not a sentient being... at least not yet.
@BloCKBu5teR8 жыл бұрын
they would be faster if, after they split up, both groups could continue simulteneously.
@ErikKrietsch8 жыл бұрын
Performing a sort method from multiple threads would be a disaster. That would be like all the dancers collapsing in a heap and the stage exploding.
@vikurtz8 жыл бұрын
Any well designed divide-and-conquer strategy (of which Quicksort is an example) can (relatively) easily and safely be parallelized. That's kind of one of the major advantages of divide-and-conquer methods.
@TheWorldNeedsLyrics7 ай бұрын
My professor really gave us this video and said "homework is to implement this in python". I love it!
@sci67697 ай бұрын
lmao yea
@christopherg23475 жыл бұрын
So quicksort: Once you got both hats, you know you are in the right position.
@MrLeovainio10 жыл бұрын
I love it when things are explained through Hungarian folk dances. Just love it.
@imchillyb10 жыл бұрын
I will now picture all of my data as Hungarian Folk Dancers. All your data belong to dance!
@aonodensetsu5 жыл бұрын
all your Hungarians are belong to dance
@termy39345 жыл бұрын
I wish the numbers were all 1s and 0s
@willowFFMPEG5 жыл бұрын
Now I'm imagining object-oriented programming as a bunch of Hungarians all tied together with rope, dancing in tied-up groups
@sriharshacv77603 жыл бұрын
Probably the best way to remember. I keep on forgetting quick sort and shell sort. Interviewers ask these questions at every level unfortunately.
@Chainerlt5 жыл бұрын
I'm a software engineer and this makes me weirdly comfortable.
@eqrakhattak22675 жыл бұрын
sem xD
@TheZoltan-425 жыл бұрын
"Dear Candidate, could you do me a quick-sort in situ?" "We will need a larger meeting room for that..."
@manogame11 жыл бұрын
most awesome quick-sort explanation ever :)
@daiyrbekartelov65188 жыл бұрын
Visualization always helps...
@LeonardoHerrera11 жыл бұрын
I cannot believe I actually watched this whole thing. And now I can't swipe this stupid grin off my face.
@SS-yt4yd8 жыл бұрын
So tired of being a pivot LOL
@timohips34115 жыл бұрын
The KZbin algoritm made a good guess this time
@ferminurzainqui68455 жыл бұрын
Totally agree
@LordBhorak5 жыл бұрын
Yep
@kingeternal_ap5 жыл бұрын
I was summoned
@michaelibrahim92755 жыл бұрын
That’s because the algorithm is run by 10 dancing Hungarians
@adamgold19 жыл бұрын
Wow, this helped me understand how quicksort works way better than the tutorial video I just watched
@djbanizza8 жыл бұрын
I AM NOT A NUMBER I AM A FREE MAN !
@MozartJunior2211 жыл бұрын
Now do Bogo Sort
@bonbonpony6 жыл бұрын
Or spaghetti sort with real Italians :)
@nuclear_wizard5 жыл бұрын
BOGO Sort with Mosh Pit Dancers
10 жыл бұрын
Although it looks a tad inefficient(thanks to the forever taking comparisons), this is probably the most amazing sort explanation I've ever seen. Also the best use of folk dance. Kudos!
@Merthalophor6 жыл бұрын
how, it doesn't explain shit
@aonodensetsu5 жыл бұрын
@@Merthalophor it does if you know generally what you're looking at
@gulgunsatr45895 жыл бұрын
Şimdi aynısını zeybekle yaptıklarını hayal et
@snap-off53835 жыл бұрын
@@Merthalophor Why did it give up on the first sort method and start grouping?
@Undercoverfire4 жыл бұрын
@@snap-off5383 the groups are guaranteed to be within a certain range after the initial sort. For instance in this video, after the 3 has been placed, we know for sure everything to the left of it is lower and everything to the right is higher. The point of using the groups, then, is to guarantee that we're not double-checking that 1 is less than 4 when we know that 1 is less than 3 and 4 is greater than 3 just because of where they are relative to the 3 after it's been placed.
@KiSmooth889 жыл бұрын
I saw this clip a year ago as I learned programming in java! Today my teacher gave me this challenge and I didn't know anything about this algorythm but I remembered about this video and it saved my ass! :D Awesome video, thanks! >)
@rocknlouie5 жыл бұрын
The two parts of my life that I never thought could possibly overlap. But, youtube has never been more right - I doubly enjoyed this.
@Asocial-Canine5 жыл бұрын
Classmates in Data Structures exam: "Ugh, I don't understand this, I should've gone to lectures, why am I even doing Computer Science?" My mind in my Data Structures exam:
@HanhTangE5 жыл бұрын
Looks like a class project for Algorithm and Dance graduate course.
@OzzyTheGiant3 жыл бұрын
Looks like a CS student was minoring in Dance and had to do homework for two courses at the same time
@debrajdas45275 жыл бұрын
Man! This is exactly why I love youtube!!!!
@abcdefghijklmnopqrstuvwxyz10625 жыл бұрын
Hype for Hungarian-bit processor?
@TheFinalFrontiersman3 жыл бұрын
I don't know what's funnier, that people put the effort in to make this, or that I've watched it enough that I understand quicksort now
@JimDoughty11 жыл бұрын
Well I sort of like this.
@arminemmert82505 жыл бұрын
You might live in a bubble, so don't make up your mind that quick.
@SahilP26485 жыл бұрын
It seems you like kinda sorta like quicksort like sorting techniques
@d-man99212 жыл бұрын
I can imagine whoever came up with this: 3 am, in the middle of his coding "Fucking hell I hate this so much..." Goes to kitchen, pours some pálinka in a glass, drinks it One more round Goes back to work Gets hallucinations from alcohol It's Hungarian folk dance and people dancing Drops head on desk and sleeps until 11 Wakes up "Yo this dream was fucking lit" Proceeds to make the vid
@IvanSolodovnikov19868 жыл бұрын
After 1:48 the sorting process can be paralleled.
@jvfontenele6 жыл бұрын
but that's does no happen in the basic algorithm, it needs to finish one half to do another
@oshotz5 жыл бұрын
Joao Vitor Lustosa Not if you multithread
@kwii227895 жыл бұрын
@@oshotz "BASIC ALGORITHM"
@bakytkamchybekovichstndv14405 жыл бұрын
The BEST EVER explanation of how quick sort algorithm works
@MaestroPanda5 жыл бұрын
this is one of the best things I've ever seen in youtube
@aadityasj19172 жыл бұрын
maa kasam nailed it, in my 3 years no lecturer tought the quick sort this way, this is a better explination
@_Acala5 жыл бұрын
6:18 How your solitaire cards feel when you finish a game
@clarathulin42944 жыл бұрын
look at all those funky numbers doing a little dance! i love them lots and lots!!
@pkgamma7 жыл бұрын
Why am I watching this I have an exam in 2 hours...
@mathsboy3146 жыл бұрын
I think you just answered your own question.
@KamiYugure5 жыл бұрын
Was it an exam on sorting algorithms?
@saddkandy5 жыл бұрын
God bless you!
@pardisranjbarnoiey63565 жыл бұрын
me too :))
@anonim50525 жыл бұрын
How was your exam?
@dekkuder5 жыл бұрын
Not a comp sci major, don’t even know a thing about computers, but I watch a lot of those mesmerizing sorting videos. This is by far the best suggested video I’ve ever received.
@SoSlipknot10 жыл бұрын
Okay seriously where do we sign up for lessons to dance like this? I've watched this clip like 15 times already it's THAT entertaining.
@illoh.hamara3 жыл бұрын
There's a youtube channel called folk otthon, you can find several tutorials there /but only in hungarian :(
@naroslife8 жыл бұрын
bojler eladó!
@shivakumarcd6 жыл бұрын
Had their height/something matched their numbers I would have cried... ;-)
@helengrives544711 жыл бұрын
Szórakoztató. Egy nagyszerü módja annak. Nagyon köszönöm!
@HimanshuMendhe11 жыл бұрын
This is awesome. Must watch for people interested in algorithms.
@srinivaschakrapani43959 жыл бұрын
I really couldnt resist hitting the like button and shouting that it is the best video that I ever came across to learn about quick sort :):):):) A big thankssssssss !!!!!
@commentor936 жыл бұрын
Commentary of my professor about Heapsort: Its runtime is optimal but the Hungarians can't dance it (=It's not intuitive) XD
@framegrace15 жыл бұрын
You are underestimating the power of hungarian dance my friend. kzbin.info/www/bejne/jqiVdWyXf7d1j5Y
@framegrace15 жыл бұрын
You are underestimating the power of hungarian dance my friend. kzbin.info/www/bejne/jqiVdWyXf7d1j5Y
@kierancole74978 ай бұрын
Wow amazing
@benparker10319 жыл бұрын
Thank you, you wonderful and multi-talented nerds, for helping me get through my exams!
@bikoshitagogoi30994 жыл бұрын
Probably the best ways of teaching algos.. You guys are amazing.. Keep up your good works❤️.. Want more videos like this
@bucklbr48 жыл бұрын
This is sooo great - Art meets Science. Yeah Baby!
@kaiufkdlsmf8 жыл бұрын
I'm not sure if you meant it to be so, but I read the 'Yeah Baby!' part in an Austin Powers voice haha
@frnakiehoo12310 жыл бұрын
Literally, the best thing ever. thanks so much Romania. You've done the world a favor.
@33333Jenny10 жыл бұрын
Yes, enjoy it !
@Navhkrin9 жыл бұрын
Now do bogo sort
@EchoHeo6 жыл бұрын
Jan Jappie lmfao
@vahan8995 Жыл бұрын
I don’t know how I would have understood the algorithms if there were no Hungarian dances.
@jesuisfudgeman8745 жыл бұрын
No one: Not a single person: Literally nobody: Hungarians: oLAf, lET uS dÖ qüÌCk SOrt tØGËthèr
@palvipwar1014 жыл бұрын
Who ever made these videos 🙌. I love you 😘.
@jairnapoleao39318 жыл бұрын
Fantastic. Congratulations. : )
@emmasanchez97462 жыл бұрын
i come back to this regularly and i absolutely adore it thank you so much
@tridacnabr5 жыл бұрын
2011 KZbin: 2019 KZbin: hey check this out m8, you’ll love it What a masterpiece lol
@makii17155 жыл бұрын
They literally played this in a lecture at uni and put it as a link on their website. This was the highlight of this term. _meaning I am doing research that was recommnended by my uni here. No excuses_
@nicolaetuns5 жыл бұрын
When can we expect to see Turing machines explained on a hungarian csardas?
@RainingArtillery5 жыл бұрын
I did not know I needed this until now.
@steartfires30396 жыл бұрын
This is exactly what's going on in my head when I'm sitting in class trying to pay attention to my professor explain Quick Sort.
@sakshichauhan87693 жыл бұрын
Excellent. Understood. Time to write a code now
@infatum2229 жыл бұрын
How QuickSort Algorithm works, explained with Hungarian national dance =) So much fun! Enjoy :) #quicksort #algorithm
@OhLunaMein6 жыл бұрын
I can't believe that it was a video with Hungarian dancers that made it click for me. Kudos to whoever came up with the idea!
@dna77678 жыл бұрын
this never gets old
@Victor-cg4hx2 жыл бұрын
That was the masterpiece of computer science 😂
@Drapekk9 жыл бұрын
Please do folk dance with Bogo Sort :D
@MrJekyllDrHyde111 жыл бұрын
This is awesome ! Whoever thought of this,was a genius !
@althedude77305 жыл бұрын
I wouldve loved if they were a reverse ordered list and just see them dancing for hours
@kellisuzuki88893 жыл бұрын
haha yes, the worst case!
@sohamc74024 жыл бұрын
Yes exactly what I wanted to see early in the morning!
@ObjectsInMotion5 жыл бұрын
My last 10 brain cells on my sorting algorithms test:
@danidiaz95105 жыл бұрын
This is objectively the best video I've ever seen.
@aycaaltay992911 жыл бұрын
This is more than perfect, but how many times did you have to shoot it. It is a very long one take video.
@Pants40965 жыл бұрын
Thank you to the KZbin algorithm for deciding to show me this video! I studied mathematics for a month in Budapest in 1998. This is beyond words so fantastic.
@CHEsnproductions5 жыл бұрын
*watches 5 sorting algorithm videos* KZbin 9 months later: ok watch this now
@kingtermite15 жыл бұрын
Game over. This wins the internet.
@jarnea.79888 жыл бұрын
play it 2.0 times the speed :p
@dom24288 жыл бұрын
quick quick sort
@saurabhmittal33167 жыл бұрын
I second this
@nackabags5 жыл бұрын
It's 5 minutes to midnight. I have to wake up in 6 hours. And God I can't stop watching...
@yetanotheraccount29545 жыл бұрын
That's the slowest quicksort implementation I've ever seen.
@Toxic_playzz2 жыл бұрын
God of quick sort vedio thanks 😂
@AlgoRythmics2 жыл бұрын
Hope you enjoyed it!
@andreashon5 жыл бұрын
Nobody: December 2019 youtube recomendation algorythms: Yeah, you must see that hungarian single-core sorting dancing machine from 2011. I wonder if they try division by zero dance)
@howdyhowdyhowdyhowdyhowdy5 жыл бұрын
This is the best sorting algorithm visualization I have ever seen
@JinBaigujing5 жыл бұрын
*clicks on video* oh no this is gonna take forever... *sits through it all*
@TomaszWota11 жыл бұрын
This is kinda sorta friggin' dancing awesomeness. Educational (the dance) and entertaining (quicksort is always fun)! Hats off!
@ScottKirkwood10 жыл бұрын
Not a very good implementation of quicksort. Looks like they picked the leftmost element as the pivot point. If the list was already sorted when they started the dance it would have taken even longer!
@robertlozyniak36616 жыл бұрын
Didn't they need to take the leftmost element as the pivot in order to free up a space in case an element gets compared "low"? Workaround for already sorted or almost-sorted lists: Do one round of BogoSort before beginning QuickSort.
@thedocta_certified5 жыл бұрын
Robert Lozyniak Yes they need to pick the rightmost or leftmost as pivot for an in place quicksort implementation.
@padawanguy3603 жыл бұрын
it really took me seeing a video of a hungarian folk dance quick-sort to realize that everythings gonna be ok
@NickShvelidze10 жыл бұрын
Doesn't seem so quick
@Midaspl10 жыл бұрын
Average O(nlogn) comparisons. The quickest we can get right now on single core ;) .
@vonkruel10 жыл бұрын
In a production implementation the music is much higher tempo & the dancing is quite frenzied.
@spirituallyinsane7 жыл бұрын
To electronic music, naturally.
@beijingwazzup23743 жыл бұрын
plot twist: whenever we run a quick sort program, the computer does this in the background.
@sonja3145 жыл бұрын
Can anyone tell me the song used in this video?
@welbert63 жыл бұрын
anyone???
@granskare11 жыл бұрын
this is brilliant! I know nothing of this sorting stuff so I enjoyed watching these guys dancing...!!