Quick-sort with Hungarian (Küküllőmenti legényes) folk dance

Поділитися
Вставка
  • Опубліковано 1 тра 2011
  • Created at Sapientia University, Tirgu Mures (Marosvásárhely), Romania.
    Directed by Kátai Zoltán and Tóth László.
    In cooperation with "Maros Művészegyüttes", Tirgu Mures (Marosvásárhely), Romania.
    Choreographer: Füzesi Albert.
    Video: Lőrinc Lajos, Körmöcki Zoltán.
    Supported by "Szülőföld Alap", MITIS (NGO) and evoline company.
    Click the link below to watch this visualization included in the AlgoRythmics Universe:
    www.algo-rythmics.com/Algorithms

КОМЕНТАРІ • 1,6 тис.

  • @oliverportee1867
    @oliverportee1867 5 років тому +2242

    Interviewer: ”Please, dance a quick-sort.“

  • @mountainhobo
    @mountainhobo 5 років тому +3989

    I just realized that my 30 years in computer science has been solely so I could laugh today watching this.

    • @giorgio9971
      @giorgio9971 5 років тому +77

      I've been in cs for 6 months and I can laugh too

    • @Spartakus1919
      @Spartakus1919 5 років тому +14

      no one cares

    • @Keys879
      @Keys879 5 років тому +167

      ​@@Spartakus1919 Hey Jack, Fuck yourself you salty git.

    • @lightcity8933
      @lightcity8933 5 років тому +2

      Ok that's a mood

    • @guyincognito5663
      @guyincognito5663 4 роки тому +23

      Jack Hancotte yeah what the fuck, Jack! Not cool, man, not cool!

  • @pegleg759
    @pegleg759 5 років тому +843

    This is what actually goes down every time your computer sorts

    • @starpetalarts6668
      @starpetalarts6668 4 роки тому +14

      Bu Computers do it with no music nor dancing, which is why I don't like computers doing it.

    • @JS19190
      @JS19190 4 роки тому

      I laughed way to hard at this comment haha

    • @CallinWire
      @CallinWire 3 роки тому +1

      Well, no, but actually, yes.

    • @garychap8384
      @garychap8384 3 роки тому +1

      We're gonna need a bigger heatsink

  • @Sph1003
    @Sph1003 5 років тому +633

    Guy: - What architecture do you use? -
    Me: - *Hungarian folk dancers* -

  • @tetrabromobisphenol
    @tetrabromobisphenol 5 років тому +677

    That ALU is so slow. Comparison operations are taking at least 8 boot twists and hand claps.

  • @dna7767
    @dna7767 7 років тому +3787

    TrippedOverShoelaceException

    • @zoltancsikos5604
      @zoltancsikos5604 7 років тому +6

      What?

    • @oribt1
      @oribt1 7 років тому +104

      It's a computer science joke :)

    • @tordurhansen333
      @tordurhansen333 7 років тому +21

      Made me laugh XD

    • @GewelReal
      @GewelReal 5 років тому +117

      Missing file boot.dat

    • @rhysperry111
      @rhysperry111 5 років тому +20

      Lol I laughed so hard I woke everyone in my dorm up

  • @yagot2323
    @yagot2323 7 років тому +1432

    You can overclock it by changing the video speed xD

  • @anonimenkolbas1305
    @anonimenkolbas1305 5 років тому +2069

    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.

    • @busteraycan
      @busteraycan 5 років тому +88

      I'm just taking a shit with my phone.

    • @drawsgaming7094
      @drawsgaming7094 5 років тому +35

      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

    • @qqqsfdf1232
      @qqqsfdf1232 5 років тому +29

      That's a very tight Venn diagram

    • @stormSDKFZ
      @stormSDKFZ 4 роки тому +20

      I feel directly attacked

    • @Zwodo
      @Zwodo 4 роки тому +36

      @@drawsgaming7094 I am a little bit concerned you didn't cross out "don't wanna live anymore"

  • @falconJB
    @falconJB 8 років тому +6445

    Wow, even slower than bubble sort, Hungarian folk dancers just just aren't a good architecture for running sorting algorithms.

    • @mathieucuny8872
      @mathieucuny8872 8 років тому +64

      +Jeremiah B You made me chuckle. Well done. :)

    • @alqacer
      @alqacer 8 років тому +64

      +Jeremiah B U wot m8? Didn't you see select sort? Those guys optimized it by modifying space-time.

    • @nellbert
      @nellbert 8 років тому +14

      +alqacer alqacer you probably dont understand the joke..

    • @obineg5752
      @obineg5752 8 років тому +114

      +Jeremiah B
      i have 2.0 now, which features female dancers.
      it processes not really faster, but it is more entertaining while you wait.

    • @saltyman7888
      @saltyman7888 7 років тому +5

      andras grof is angry.

  • @secdeal
    @secdeal 10 років тому +877

    What the dancers shout: "divide and conquer" :3

  • @VR_Wizard
    @VR_Wizard 7 років тому +2225

    And all that in O(Hungarian * log(Hungarian) ) time.

    • @tuxedobob2
      @tuxedobob2 5 років тому +151

      Is this Hungarian notation?

    • @ankit7343
      @ankit7343 5 років тому +3

      hungarians

    • @esper4605
      @esper4605 5 років тому +8

      I think you mean Hungarian Hungarian log * O

    • @SZ-wt3nk
      @SZ-wt3nk 5 років тому +37

      By the speed of this, more like O(Hungarian^2)

    • @julkkis666
      @julkkis666 5 років тому +5

      @@SZ-wt3nk or even O(Hungarian^Hungarian ) :O

  • @-Nine9-
    @-Nine9- 9 років тому +2789

    This is... by a wide margin... the nerdiest thing... I've ever seen... in my whole life.

    • @lilegend4382
      @lilegend4382 8 років тому +85

      +Ambit10n9 I was deeply touched by these videos.

    • @juliusg.farkas2188
      @juliusg.farkas2188 6 років тому +26

      You might want to step out of the trailer park every now and again...

    • @alejandrocanalesgonzalez2851
      @alejandrocanalesgonzalez2851 5 років тому +10

      @@juliusg.farkas2188 don't be so rude!

    • @juliusg.farkas2188
      @juliusg.farkas2188 5 років тому +4

      @@alejandrocanalesgonzalez2851 I was being nice

    • @betkakad
      @betkakad 4 роки тому +3

      Then you haven't seen ua-cam.com/video/2rjbtsX7twc/v-deo.html

  • @corleonevito8020
    @corleonevito8020 7 років тому +711

    This is so much better than hours of lecture in my university

    • @yannikmullis7136
      @yannikmullis7136 5 років тому +9

      Are you really sure about this?

    • @radkye_
      @radkye_ 5 років тому +17

      Well. My programming professor showed us series of those dances at the lecture :D

    • @longlostwraith5106
      @longlostwraith5106 4 роки тому +5

      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...

  • @christopherg2347
    @christopherg2347 4 роки тому +113

    So quicksort:
    Once you got both hats, you know you are in the right position.

  • @jale9600
    @jale9600 10 років тому +1807

    *spoiler*
    correct order is 0,1,2,3,4,5,6,7,8,9

    • @bonbonpony
      @bonbonpony 5 років тому +62

      Not on my keyboard :q

    • @Kallyn
      @Kallyn 5 років тому +74

      COME ON DUDE REALLY

    • @coolmanjack1995
      @coolmanjack1995 5 років тому +15

      Dude are you serious right now, you're just gonna come out and say that?

    • @illumnigd8649
      @illumnigd8649 5 років тому +12

      everybody dislike this

    • @viscence
      @viscence 4 роки тому +25

      That's amazing, I've got the same combination on my luggage!

  • @SzaboB33
    @SzaboB33 9 років тому +428

    it is funny, that the quick-sort video takes ~7 minutes however the bubble-sort video only takes ~5 minutes :D

    • @dmitriymiroshnichenko418
      @dmitriymiroshnichenko418 5 років тому +64

      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).

    • @loam
      @loam 5 років тому +1

      @@dmitriymiroshnichenko418 Was about to comment the same ;)

    • @slenderpaul
      @slenderpaul 5 років тому +49

      Well, the bubble sort was run on a machine with higher Hungarians per second. It also had a pretty lucky starting permutation.

  • @Saltssaumure
    @Saltssaumure 8 років тому +2467

    No multi-threading? Come on, optimise your dancers already!

    • @SudiptoChandraDipu
      @SudiptoChandraDipu 5 років тому +89

      i was wondering the same thing. it would be cooler with multithreads

    • @OrangeC7
      @OrangeC7 5 років тому +10

      @@SudiptoChandraDipu Perhaps in a part 2?

    • @devincory9695
      @devincory9695 5 років тому +117

      You mean multi-treading?

    • @wenqiweiabcd
      @wenqiweiabcd 4 роки тому +6

      @@martian17
      You don't need that to demonstrate algorithm, if you pull in ABI and stack frames it will start to look silly

    • @eyebee-sea4444
      @eyebee-sea4444 4 роки тому +19

      For multi threading the men have to be replaced by women.

  • @LordEvrey
    @LordEvrey 8 років тому +416

    I should re-consider hungarian notation.

    • @flobbie87
      @flobbie87 4 роки тому +7

      finally somone wrote it down

  • @vikurtz
    @vikurtz 8 років тому +494

    I wish the Hungarians were multithreaded :(

    • @zoltancsikos5604
      @zoltancsikos5604 7 років тому

      What?

    • @Museko
      @Museko 7 років тому +18

      +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.

    • @BloCKBu5teR
      @BloCKBu5teR 7 років тому +16

      they would be faster if, after they split up, both groups could continue simulteneously.

    • @ErikKrietsch
      @ErikKrietsch 7 років тому +19

      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.

    • @vikurtz
      @vikurtz 7 років тому +46

      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.

  • @Chainerlt
    @Chainerlt 4 роки тому +110

    I'm a software engineer and this makes me weirdly comfortable.

  • @imchillyb
    @imchillyb 9 років тому +325

    I will now picture all of my data as Hungarian Folk Dancers.
    All your data belong to dance!

    • @aonodensetsu
      @aonodensetsu 5 років тому +7

      all your Hungarians are belong to dance

    • @termy3934
      @termy3934 4 роки тому +1

      I wish the numbers were all 1s and 0s

    • @willowFFMPEG
      @willowFFMPEG 4 роки тому

      Now I'm imagining object-oriented programming as a bunch of Hungarians all tied together with rope, dancing in tied-up groups

    • @sriharshacv7760
      @sriharshacv7760 3 роки тому

      Probably the best way to remember. I keep on forgetting quick sort and shell sort. Interviewers ask these questions at every level unfortunately.

  • @MrLeovainio
    @MrLeovainio 10 років тому +71

    I love it when things are explained through Hungarian folk dances. Just love it.

  • @timohips3411
    @timohips3411 4 роки тому +152

    The UA-cam algoritm made a good guess this time

  • @LeonardoHerrera
    @LeonardoHerrera 10 років тому +92

    I cannot believe I actually watched this whole thing.
    And now I can't swipe this stupid grin off my face.

  • @djbanizza
    @djbanizza 8 років тому +142

    I AM NOT A NUMBER I AM A FREE MAN !

  • @zoltanposfai3451
    @zoltanposfai3451 4 роки тому +26

    "Dear Candidate, could you do me a quick-sort in situ?"
    "We will need a larger meeting room for that..."

  • @adamgold1
    @adamgold1 9 років тому +115

    Wow, this helped me understand how quicksort works way better than the tutorial video I just watched

  • @daiyrbekartelov6518
    @daiyrbekartelov6518 8 років тому +100

    Visualization always helps...

  • @SS-yt4yd
    @SS-yt4yd 8 років тому +198

    So tired of being a pivot LOL

  •  10 років тому +229

    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!

    • @Merthalophor
      @Merthalophor 5 років тому +2

      how, it doesn't explain shit

    • @aonodensetsu
      @aonodensetsu 5 років тому +31

      @@Merthalophor it does if you know generally what you're looking at

    • @gulgunsatr4589
      @gulgunsatr4589 5 років тому

      Şimdi aynısını zeybekle yaptıklarını hayal et

    • @snap-off5383
      @snap-off5383 4 роки тому

      @@Merthalophor Why did it give up on the first sort method and start grouping?

    • @Undercoverfire
      @Undercoverfire 4 роки тому +7

      @@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.

  • @rocknlouie
    @rocknlouie 4 роки тому +25

    The two parts of my life that I never thought could possibly overlap. But, youtube has never been more right - I doubly enjoyed this.

  • @JimDoughty
    @JimDoughty 10 років тому +115

    Well I sort of like this.

    • @arminemmert8250
      @arminemmert8250 4 роки тому +7

      You might live in a bubble, so don't make up your mind that quick.

    • @SahilP2648
      @SahilP2648 4 роки тому +1

      It seems you like kinda sorta like quicksort like sorting techniques

  • @manogame
    @manogame 10 років тому +147

    most awesome quick-sort explanation ever :)

  • @Asocial-Canine
    @Asocial-Canine 4 роки тому +14

    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:

  • @MozartJunior22
    @MozartJunior22 10 років тому +155

    Now do Bogo Sort

    • @bonbonpony
      @bonbonpony 5 років тому +37

      Or spaghetti sort with real Italians :)

    • @nuclear_wizard
      @nuclear_wizard 5 років тому +17

      BOGO Sort with Mosh Pit Dancers

  • @TheWorldNeedsLyrics
    @TheWorldNeedsLyrics Місяць тому +6

    My professor really gave us this video and said "homework is to implement this in python". I love it!

    • @sci6769
      @sci6769 Місяць тому

      lmao yea

  • @myj313
    @myj313 5 років тому +33

    Looks like a class project for Algorithm and Dance graduate course.

    • @OzzyTheGiant
      @OzzyTheGiant 3 роки тому +1

      Looks like a CS student was minoring in Dance and had to do homework for two courses at the same time

  • @KiSmooth88
    @KiSmooth88 9 років тому +19

    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! >)

  • @pkgamma
    @pkgamma 6 років тому +86

    Why am I watching this I have an exam in 2 hours...

  • @debrajdas4527
    @debrajdas4527 5 років тому +13

    Man! This is exactly why I love youtube!!!!

  • @shivakumarcd
    @shivakumarcd 5 років тому +18

    Had their height/something matched their numbers I would have cried... ;-)

  • @IvanSolodovnikov1986
    @IvanSolodovnikov1986 8 років тому +60

    After 1:48 the sorting process can be paralleled.

    • @jvfontenele
      @jvfontenele 6 років тому +4

      but that's does no happen in the basic algorithm, it needs to finish one half to do another

    • @oshotz
      @oshotz 5 років тому +5

      Joao Vitor Lustosa Not if you multithread

    • @kwii22789
      @kwii22789 5 років тому +9

      @@oshotz "BASIC ALGORITHM"

  • @bakytkamchybekovichstndv1440
    @bakytkamchybekovichstndv1440 4 роки тому +1

    The BEST EVER explanation of how quick sort algorithm works

  • @aadityasj1917
    @aadityasj1917 2 роки тому +2

    maa kasam nailed it, in my 3 years no lecturer tought the quick sort this way, this is a better explination

  • @MaestroPanda
    @MaestroPanda 4 роки тому +3

    this is one of the best things I've ever seen in youtube

  • @_Acala
    @_Acala 4 роки тому +6

    6:18 How your solitaire cards feel when you finish a game

  • @kingtermite1
    @kingtermite1 4 роки тому +2

    Game over. This wins the internet.

  • @Navhkrin
    @Navhkrin 8 років тому +76

    Now do bogo sort

    • @EchoHeo
      @EchoHeo 6 років тому

      Jan Jappie lmfao

  • @SoSlipknot
    @SoSlipknot 9 років тому +19

    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.hamara
      @illoh.hamara 2 роки тому +4

      There's a youtube channel called folk otthon, you can find several tutorials there /but only in hungarian :(

  • @commentor93
    @commentor93 5 років тому +55

    Commentary of my professor about Heapsort: Its runtime is optimal but the Hungarians can't dance it (=It's not intuitive) XD

    • @framegrace1
      @framegrace1 4 роки тому +3

      You are underestimating the power of hungarian dance my friend. ua-cam.com/video/Xw2D9aJRBY4/v-deo.html

    • @framegrace1
      @framegrace1 4 роки тому

      You are underestimating the power of hungarian dance my friend. ua-cam.com/video/Xw2D9aJRBY4/v-deo.html

  • @dna7767
    @dna7767 7 років тому +18

    this never gets old

  • @naroslife
    @naroslife 8 років тому +13

    bojler eladó!

  • @bucklbr4
    @bucklbr4 8 років тому +19

    This is sooo great - Art meets Science. Yeah Baby!

    • @kaiufkdlsmf
      @kaiufkdlsmf 8 років тому

      I'm not sure if you meant it to be so, but I read the 'Yeah Baby!' part in an Austin Powers voice haha

  • @HimanshuMendhe
    @HimanshuMendhe 10 років тому +7

    This is awesome. Must watch for people interested in algorithms.

  • @dekkuder
    @dekkuder 4 роки тому +1

    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.

  • @TheFinalFrontiersman
    @TheFinalFrontiersman 3 роки тому +1

    I don't know what's worse, that people put the effort in to make this, or that I've watched it enough that I understand quicksort now

  • @tridacnabr
    @tridacnabr 4 роки тому +7

    2011 UA-cam:
    2019 UA-cam: hey check this out m8, you’ll love it
    What a masterpiece lol

  • @jesuisfudgeman874
    @jesuisfudgeman874 5 років тому +8

    No one:
    Not a single person:
    Literally nobody:
    Hungarians: oLAf, lET uS dÖ qüÌCk SOrt tØGËthèr

  • @makii1715
    @makii1715 4 роки тому +1

    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_

  • @padawanguy360
    @padawanguy360 3 роки тому +1

    it really took me seeing a video of a hungarian folk dance quick-sort to realize that everythings gonna be ok

  • @steartfires3039
    @steartfires3039 5 років тому +3

    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.

  • @benparker1031
    @benparker1031 8 років тому +3

    Thank you, you wonderful and multi-talented nerds, for helping me get through my exams!

  • @emmasanchez9746
    @emmasanchez9746 2 роки тому

    i come back to this regularly and i absolutely adore it thank you so much

  • @RainingArtillery
    @RainingArtillery 4 роки тому +1

    I did not know I needed this until now.

  • @althedude7730
    @althedude7730 4 роки тому +4

    I wouldve loved if they were a reverse ordered list and just see them dancing for hours

  • @ObjectsInMotion
    @ObjectsInMotion 4 роки тому +5

    My last 10 brain cells on my sorting algorithms test:

  • @usernamehandle
    @usernamehandle 5 років тому +1

    I knew there was a reason UA-cam has been recommending me, a lowly art school drop out, sorting algorithm videos for the past 2 years

  • @ethanshenassa8932
    @ethanshenassa8932 3 роки тому

    This video taught me quick sort better than three years of CS classes.

  • @nicolaetuns
    @nicolaetuns 4 роки тому +9

    When can we expect to see Turing machines explained on a hungarian csardas?

  • @infatum222
    @infatum222 8 років тому +6

    How QuickSort Algorithm works, explained with Hungarian national dance =)
    So much fun! Enjoy :)
    #quicksort #algorithm

  • @bikoshitagogoi3099
    @bikoshitagogoi3099 4 роки тому +2

    Probably the best ways of teaching algos.. You guys are amazing.. Keep up your good works❤️.. Want more videos like this

  • @MrJekyllDrHyde1
    @MrJekyllDrHyde1 10 років тому +1

    This is awesome ! Whoever thought of this,was a genius !

  • @yetanotheraccount2954
    @yetanotheraccount2954 4 роки тому +3

    That's the slowest quicksort implementation I've ever seen.

  • @andrewsimon6058
    @andrewsimon6058 4 роки тому +16

    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)

  • @frnakiehoo123
    @frnakiehoo123 9 років тому

    Literally, the best thing ever. thanks so much Romania. You've done the world a favor.

  • @xxXCutiieeXxx
    @xxXCutiieeXxx 7 років тому

    I love to watch these guys dance ! It's so much more comforting than looking at powerpoint slides. xD It's amazing how good their choreography is and their dancing in general. Very nice!

  • @aycaaltay9929
    @aycaaltay9929 10 років тому +9

    This is more than perfect, but how many times did you have to shoot it. It is a very long one take video.

  • @JinBaigujing
    @JinBaigujing 5 років тому +3

    *clicks on video* oh no this is gonna take forever... *sits through it all*

  • @Pants4096
    @Pants4096 5 років тому

    Thank you to the UA-cam algorithm for deciding to show me this video! I studied mathematics for a month in Budapest in 1998. This is beyond words so fantastic.

  • @clarathulin4294
    @clarathulin4294 3 роки тому

    look at all those funky numbers doing a little dance! i love them lots and lots!!

  • @CHEsnproductions
    @CHEsnproductions 4 роки тому +3

    *watches 5 sorting algorithm videos*
    UA-cam 9 months later: ok watch this now

  • @jairnapoleao3931
    @jairnapoleao3931 8 років тому +5

    Fantastic. Congratulations. : )

  • @srinivaschakrapani4395
    @srinivaschakrapani4395 9 років тому

    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 !!!!!

  • @keithdesouza8859
    @keithdesouza8859 5 років тому +2

    Wow I finally figured out why this tune starts playing on my computer when I sort columns in Excel !

  • @jarnea.7988
    @jarnea.7988 8 років тому +46

    play it 2.0 times the speed :p

  • @Drapekk
    @Drapekk 9 років тому +8

    Please do folk dance with Bogo Sort :D

  • @akashsharma9264
    @akashsharma9264 4 роки тому

    They are Gems... Never Imagined someone could come up with such creativity

  • @OhLunaMein
    @OhLunaMein 6 років тому

    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!

  • @ZenoDovahkiin
    @ZenoDovahkiin 4 роки тому +4

    When the teacher says to order by last name.

  • @ScottKirkwood
    @ScottKirkwood 10 років тому +37

    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!

    • @robertlozyniak3661
      @robertlozyniak3661 5 років тому +7

      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_certified
      @thedocta_certified 5 років тому

      Robert Lozyniak Yes they need to pick the rightmost or leftmost as pivot for an in place quicksort implementation.

  • @wfan2844
    @wfan2844 5 років тому +1

    I can no longer forget quick-sort. Damn it.

  • @barszczu_2561
    @barszczu_2561 4 роки тому

    Just one day searching sorting algorhitms and now I have full main page of stuff like this

  • @OrangeC7
    @OrangeC7 5 років тому +6

    How
    Why
    But most importantly
    Of course

  • @emerickgrimm
    @emerickgrimm 4 роки тому +14

    Nobody:
    UA-cam: Hey, m8 I sure u want to watch sorting algorithm in Hungarian folk dance video back from 2011

  • @helengrives5447
    @helengrives5447 10 років тому

    Szórakoztató. Egy nagyszerü módja annak. Nagyon köszönöm!

  • @jeremiahben9185
    @jeremiahben9185 4 роки тому

    So when all your elements start dancing at once you know they are sorted and happy.

  • @CoryMck
    @CoryMck 5 років тому +3

    *When you're a computer nerd AND a dance nerd*

  • @NickShvelidze
    @NickShvelidze 10 років тому +30

    Doesn't seem so quick

    • @Midaspl
      @Midaspl 10 років тому +14

      Average O(nlogn) comparisons. The quickest we can get right now on single core ;) .

    • @vonkruel
      @vonkruel 10 років тому +26

      In a production implementation the music is much higher tempo & the dancing is quite frenzied.

    • @spirituallyinsane
      @spirituallyinsane 7 років тому

      To electronic music, naturally.

  • @bmkorkut
    @bmkorkut 4 роки тому

    I can feel their bliss when each got both of the hats, found his place and can rest peacefully. (15 years of CS here)

  • @nackabags
    @nackabags 5 років тому

    It's 5 minutes to midnight. I have to wake up in 6 hours. And God I can't stop watching...