Who the hell thought of pairing a sorting algorithm with Hungarian folk dance
@aymanehrouch5 жыл бұрын
A genius?
@jr-yn4lk5 жыл бұрын
Some computer science professor married to a dance teacher.
@bkreut5 жыл бұрын
@@jr-yn4lk Raise your hand if you imagined a female professor and a male dancer
@erikpoephoofd4 жыл бұрын
@@bkreut why does it matter what gender they are? Sexist.
@bkreut4 жыл бұрын
@@erikpoephoofd To practice mental flexibility
@ThioJoe4 жыл бұрын
It took so long to recommend because the KZbin algorithm uses these dancers for it's calculations
@cypherllc72974 жыл бұрын
marketing
@jaimevalero4 жыл бұрын
@AP - 12KR - T L Kennedy SS (2352) I confirm that It works. Thanks.
@SaidMetiche-qy9hb4 жыл бұрын
How do I download more ram? lol
@dibujodecroquis16844 жыл бұрын
*its.
@dibujodecroquis16844 жыл бұрын
AP - 12KR - T L Kennedy SS (2352) ? I just corrected ThioJoe's spelling.
@achilllllles12 жыл бұрын
i hate when elements of my array start dancing after being perfectly sorted!!
@madaxe88944 жыл бұрын
Haha
@빡구-h4w4 жыл бұрын
Sad
@komaljha62463 жыл бұрын
😅😅😅
@NetRolller3D Жыл бұрын
No need to worry so long as your desired order is invariant with respect to the dance.
@abhi8055.4 жыл бұрын
Interviewer : So what kind of sorting algorithm do u use? Me : It's complicated
@maxmustermann-theoutfluenc99710 жыл бұрын
Now I understand the clicking Noise in im Computer while sorting Numbers
@kazma99a5 жыл бұрын
@@GARY33146 ...
@AD-zh1cm3 жыл бұрын
lol
@JoeDev125 жыл бұрын
I imagine the dance in the worst case scenario taking like 20 minutes
@5thearth5 жыл бұрын
Well, bubble sort is a simple algorithm and known to be pretty slow. The exception is if you know the list to be sorted is already mostly in order, then it can be faster than other algorithms.
@sabrinayacklemore82354 жыл бұрын
o(n^2)
@Yotanido4 жыл бұрын
@@5thearth Bubble sort has a great best-case, which is O(n), but worst and average are O(n²), which is way worse than algorithms that are usually used. That said, Big-O notation doesn't tell the whole story. It only describes how an algorithm scales, it doesn't say anything about absolute performance. As it turns out, Bubble sort also has very good performance per operation. It fails at needing many operations, but the operations themselves are cheap. As such, it is also a good choice if the list you are sorting is small. This is, in fact, done in some programming languages. Java, for example, uses Bubble sort if the list length is less than 5 and quick sort otherwise. The chances are good that the list is already near sorted and on a small list, Bubble sort is actually pretty fast. Incidentally, Quick sort has a best case of O(n log n), which is worse than Bubble sort. Of course, its average and worst case are also O(n log n) - much better than Bubble sort. Sorting things is a problem that has long been solved, but it is quite complex. And while there are some sorting algorithms out there that exist just because they can (e.g. Shaker sort), there is a reason we have so many in general. Quick sort is used by far the most, but algorithms like Heap sort have their uses, too.
@RabidLeroy4 жыл бұрын
Joe Iaquinto or triple the amount of dancers performing
@GoodBoy-cy9tj4 жыл бұрын
It's time complexity is too high in worst case scenario
@corleonevito80208 жыл бұрын
Does this alogrithm only work with male and female integers?
@grammarnazi18688 жыл бұрын
Corleone Vito No.
@tcpjh8 жыл бұрын
I think you're good to go as long as they're not transgender.
@artmadepqproductions7 жыл бұрын
*triggered*
@bamberghh16915 жыл бұрын
Yes, because there are 2 genders
@jr-yn4lk5 жыл бұрын
You can try using attack helicopter variables as well, it might work
@xintongbian4 жыл бұрын
I always go back to these videos when I need a refresh of sorting algos, they are so much easier to understand and remember than textbooks. awesome idea
@TheGozeraye8 жыл бұрын
[4:00] What the hell guys, we just sorted you all and now you're mixing up again!
@wyokaiju9928 жыл бұрын
That's called a stack overflow!
@specialfalcon74274 жыл бұрын
lol, they are messing up again!
@Turissss3 жыл бұрын
lmao
@CandyHam10 жыл бұрын
fucking slow ass algorithm, 5 mins to sort 10 elements!
@musicgalore3010 жыл бұрын
Bubble sort is slow. Easy to implement, but very slow.
@obi8910 жыл бұрын
well its only used to introduce sorting algorithms.
@santolucaantonucci609 жыл бұрын
CandyHam Do you want to talk about Naive Sort? LoL
@oskarlinderoth9 жыл бұрын
obi89 Really, is this not actual software?
@obi899 жыл бұрын
Oskar Linderoth its a method to sort elements. But it does have the longest time to sort so it only is used to intoduce the sorting mechanisms.
@swemoph7 жыл бұрын
I'm in the weird part of KZbin again...
@markuskoivisto5 жыл бұрын
Swemoph the good weird though
@スヘア4 жыл бұрын
I'm late dude, see you soon
@everseeker4 жыл бұрын
Nah, that's over here: kzbin.info/www/bejne/jpLUg2Z9lLOJpdE
@Sponska8 жыл бұрын
We watched this in school in computer class XD
@xWINfinity8 жыл бұрын
same haha
@tondinh83648 жыл бұрын
wir watched it too lol xD
@shortsfatosdiarios8 жыл бұрын
everyone haha
@brunocampos38008 жыл бұрын
I watched that last week
@maryjane14598 жыл бұрын
we watched too i think its so funny 😂
@arkadiuszmalina48014 жыл бұрын
My right ear enjoyed the music
@shwethamurali4184 жыл бұрын
Why is this in my recommendations 8 years later?😭😂
@resu23814 жыл бұрын
Same XD
@angelomartino46674 жыл бұрын
Lol
@Saif.Basheer4 жыл бұрын
Same
@svvm.sudhakar4 жыл бұрын
@@resu2381 exactly..!!
@_ksuthar4 жыл бұрын
Same 😂😂
@alexandrsmirnov71388 жыл бұрын
Is there such a video with bogosort?
@dj_root7 жыл бұрын
For ten people it will spend only about 5 years of dancing )
@halfnwhole7516 жыл бұрын
They just blindly dance with their eyes closed
@crimsonstrykr5 жыл бұрын
Michael Jackson concert will do it
@chaconne22111 жыл бұрын
tbh I still don't get bubble sort, but now I want to listen to Hungarian fiddle music :)
@hooverla5510 жыл бұрын
i second that!
@annb18554 жыл бұрын
Bubble sort compares numbers in pairs, from front to back, if the number on the right is smaller than the number on the left it swaps them each time. If it isn't they stay as they are. It goes all the way to the end and then starts from the front again and does the same with the new pairs. Eventually they end up sorted.
@DoubleADwarf2 жыл бұрын
@@annb1855 The name "Bubble Sort" is because the larger value numbers "bubble up" to the top/end of the array/list.
@Wulf19858 жыл бұрын
a way to make the bubble-sort algorithm easy to understand. a great and very creative work!
@thomasunterrainer31532 ай бұрын
i like the visuals thanks sewas
@AnnyPyjamas4 жыл бұрын
Thanks Tom Scott, that's exactly what was missing from my recommendations
@shanemcinally70924 жыл бұрын
Me: I'm not going to watch anymore stupid youtube videos, pff! *sees title Me: wait a sec. wut?
@lampoilropebombs06404 жыл бұрын
Well this is far from stupid.
@AlgoRythmics13 жыл бұрын
Merge-sort with Transylvanian-saxon (German) folk dance, and quick-sort with Hungarian (“Küküllőmenti legényes”) folk dance will be uploaded in few days. We are developing a software tool that didactically exploits the six dance-performances. This software will also be available soon.
@スヘア4 жыл бұрын
Is it available now
@besio48817 жыл бұрын
So, Hungarian Dancers are the key of success!
@TheDivegeek10 жыл бұрын
Cool -- but buggy/impossibly-good -- rendition of the bubble sort algorithm. The problem is that at the end of each pass, too many dancers turn their backs. At the end of the first pass, for example, you know that the largest number in the list is in position at the end, so dancer 9 is no longer part of the sort and turns her back. But 8 turns with her. 8 is, in fact, in his final position, but the algorithm can't know that, not without making an extra scan of the list to see if there's another number that might be larger than 8. For a proper implementation, at the end of each pass only one more dancer should turn his/her back. However, it would be reasonable to stop after five passes, because after four the list is sorted, and many implementations keep a "didn't change anything on this pass" flag so they can stop working after the list is completely sorted.
@AlexejMuehlberg10 жыл бұрын
Nerdy++
@computerslicer2310 жыл бұрын
I've never seen anybody implement it as a special case, but it is logically sound. If you don't swap the last two positions available in a given round, you know those are the two maximums. I have seen the "no swaps, we're done" implemented. In fact, you could generalize both of those to "last place I swapped, is the beginning of the streak of sorted elements"... and that likely be worth it any time you were dealing with "nearly sorted" data. Just set the last place you swapped to 0 at the beginning of every iteration. The lack of a swap clearly establishes the partial ordering along the tail sequence. It'd make the implementation more complex, but nothing unsound about it. They are actually consistent, as 7 and 6 did swap so only 7 turns around. When 5 and 6 compare they don't swap and are the last two, so they both turn around. I've never seen the folk dances, but I do like this style of video to help see how sorts actually work in practice: kzbin.info/www/bejne/oYG1cmONZtB4eck The early arcade style sound effects are merely bonus.
@JohnGottschalk9 жыл бұрын
+Shawn Willden There's only 1 position where 8 wouldn't know to turn around at the same time as 9 and that's if it were the last number in the sequence. If the final 2 numbers to be checked don't swap you know they can both turn around safely. This is because the 2nd highest has to either pass or continue on from every number lower than it, but when it reaches the last number and can't pass it, you know that it should not be any lower and not any higher, so you can turn both it and the last number. If the final 2 numbers to be checked do swap position (for instance if 8 were in the final position and 9 swapped with it), you would indeed not know that the 8 was in it's correct position. This is why 8 & 9 turn around simultaneously, as well as 5 & 6, but 7 only turns around on its own.
@TheDivegeek9 жыл бұрын
***** without my confident nerdism I wouldn't have been educated by Kirby, which means I would know less than I do now. It pays to speak up around people who can point out your mistakes; that way you learn.
@TheDivegeek8 жыл бұрын
***** someone pee in your Wheaties?
@VeeHeeOfficialАй бұрын
It took Google algorithm 13 years to finally recommend this vid to me. So I guess they are using Bubble-sort.
@guls428410 жыл бұрын
better explaining than books
@FeisarMusique3 жыл бұрын
Algorithm and folk music. My 2 passions in one video. What a genius idea. Thanls you !
@TheTahlia19888 жыл бұрын
Very cool illustration.. :)
@tyyyyyyyyyyyyyyy2 жыл бұрын
очень харошая песня.лайк.танец сцпер.люблю.выросли усы и ноги пошли в пляс.
@tyyyyyyyyyyyyyyy2 жыл бұрын
@ilyasssssss2014 а мое владение благодаря этому танцу вошли все созвездию южной Сибири
@tyyyyyyyyyyyyyyy2 жыл бұрын
@ilyasssssss2014 а так же третий глаз получил возможность к трансформации к пузыри
@tyyyyyyyyyyyyyyy2 жыл бұрын
@ilyasssssss2014 мои усы стали более светлыми
@tyyyyyyyyyyyyyyy2 жыл бұрын
@ilyasssssss2014 а глаза получили орган осязания
@bennet33533 жыл бұрын
my teacher showed us this and now I have a perfectly working bubble-sort algorithm
@darshananvekar96002 жыл бұрын
so the time efficiency here is 315000 milliseconds, this is what happen when ur array elements are in mood
@InmuAyuayu4 жыл бұрын
2011: Not now 2012: Maybe later 2013: Nah 2014: Nein 2015: Still no 2016: Later 2017: Nah 2018: Nah 2019: Nah 2020: *Okey let’s recommend this*
@NieColall4 жыл бұрын
Original comment
@aminthemar4 жыл бұрын
Because youtube got invaded by nazis in 2014.
@oPunkko4 жыл бұрын
because you started looking up programming related things
@arvindokram29064 жыл бұрын
Me: Enters interview. Interviewer: Please, dance a bubble sort. Hungarian folk dancers: we got you.
@olufemijolugbo87047 жыл бұрын
this explanation is the best, Love it
@adminadminich7408 Жыл бұрын
Это шедевр! Спасибо большое за вашу работу!
@williamkiddo5 жыл бұрын
I don't know what is this and why KZbin algorithm brought me here in late 2019 2 A.M. But this is pretty cool dance.
@amitbisht58035 жыл бұрын
The word u used algorithm. Yup thts exactly what it is 🤣🤣
@mulagadagowripriya90205 жыл бұрын
Super idea💭... Now am easy understand and make more videos sir
@roy25795 жыл бұрын
Why am i watching this in 3am of the night...
@diguinhof964 жыл бұрын
Oh my god ... who had i never seen this before? This is just amazing and impressive.
@satadhi8 жыл бұрын
totally awesome
@ajit789105 жыл бұрын
I will never forget bubble sort! Great ❤️
@chrissmith11524 жыл бұрын
when people say computer science is boring it is indeed
@abdullahalsultan46524 жыл бұрын
This is the greatest thing ever created on youtube.
@twinklesuperpalm9 жыл бұрын
great i love it
@milanzaretsky1679 Жыл бұрын
It's geniously!
@lilegend43829 жыл бұрын
fantastic
@nathanaelyang15436 жыл бұрын
HOLY SHIT! THIS IS AWESOME! WHY I JUST SAW THIS TILL TODAY?
@TheSentientCloud10 жыл бұрын
*me gusta* I need to find me a group of nerds and perform a sort-dance sometime. This is AWESOME.
@Aman_Garcha4 жыл бұрын
Awesome, we need more people like you. Thank you and salute.
@MuradBeybalaev5 жыл бұрын
The cherry-picked a[9] = 9 made the end of the first pass not as demonstrative as it could be.
@GoodBoy-cy9tj4 жыл бұрын
I liked this concept, Cleared all doubts with entertainment
@bhavikmistry91534 жыл бұрын
Welcome to a new episode of : Why this is in my recommendation
@igfoobar5 жыл бұрын
This is better than nearly everything available on commercial television today.
@Nada-yc8uo4 жыл бұрын
Thank god I haven't saw this when I took the algorithm course......this song will be playing in my head during the exam
@hebakhalid4374 жыл бұрын
Took*
@Curiouscucumber7389 жыл бұрын
this is almost as good as it can get ,really appreciate this.
@juliaprusisz86323 жыл бұрын
polecam serdecznie, super tutorial, smacznej kawusi zycze pozdrawiam:)
@katarzynakolczarek92293 жыл бұрын
wszyscy wiemy co i wszyscy wiemy kogo
@lowas344006 жыл бұрын
Best video to learn bubble sorting ! Thank you Loïc :3
@meltdown68564 жыл бұрын
See u in 11 yrs when KZbin alg recommends this again
@DemstarAus3 жыл бұрын
Eurgh listening on headphones. My eyes enjoyed it. My left ear liked the stomping and my right ear liked the music.
@halfnwhole7516 жыл бұрын
Now thats what I call Interpretive dance!
@AstnPw3rs12 жыл бұрын
greatest thing EVAR. 5 mins and i'm ready for this topic on my final.
@MacleitonSoares11 жыл бұрын
Excelente. A dança é muito bonita e ajuda a compreensão do algoritmo de ordenação por troca.
@Monarchias13 жыл бұрын
Good work my sekler brothers and sisters! Greetings from Hungary.
@Elenduful5 жыл бұрын
Then the audience gets up and starts dancing... ... Segmentation fault
@astolat22623 жыл бұрын
Underrated
@BrendonJeje10 ай бұрын
Thank you so much, very creative
@Jochira_VTuber9 жыл бұрын
so yah, random vid that my teacher linked me tonow I know how to bubble sort the next time... XD
@brianbean11954 жыл бұрын
Best. Bubble-Sort. Ever!
@BorisVlasenko11 жыл бұрын
Вот, почему она такая медленная - они пляшут там, пока меняются...
@ntvisigoth11 жыл бұрын
Вот ведь, а то-то думал.... ) Спасибо, теперь будет что сказать дочурке когда подрастет )
@andreycherevat5 жыл бұрын
Выборкой там все шустрые. Не то что эти
@hafsadaoudim2348 Жыл бұрын
That's amazing and creative,THANK YOU for the effort 👏
@neuneu20008 жыл бұрын
Witcher's tavern fights sent me here.
@zoltancsikos56048 жыл бұрын
What...
@euzumaki82938 жыл бұрын
Saucisse Purée Minecraft thing?
@PrimeToolbox6 жыл бұрын
It's because there's a lot of folk alghoritms occurring while we play the witcher
@serageian18728 жыл бұрын
we need to watch this in school and now everyone dances in the classroom. GJ
@spektrum198310 жыл бұрын
I haven't seen Radix Sort yet, it's my favorite. But it would be too fast with just a one digit number ;)
@ProfQED2 жыл бұрын
awesome! I love this way of learning :)
@ВладиславБелоусов-с2е11 жыл бұрын
I need Huffman as Indian dance)))
@matrixRule1274 жыл бұрын
There should be a super duper like button...for such amazing videos!!!!!!!!😍😍
@markhughes79275 жыл бұрын
Hungary’s got talent - true - in their day-job they are all chess grandmasters...
@smile4self2 жыл бұрын
This is so cool... I got a grasp of what bubble sorting is all about with just a dance... wow...
@yd99394 жыл бұрын
It's actually an improved bubble-sort implementation.(To sort 10 numbers, original-bubble-sort will do 9 scans but here's only 4 in this video, like you marked the numbers at last that aren't swapped during last scan, which means they are well-sorted already.)
@DebabrotBhuyan927 жыл бұрын
Awesome dance, loved it
@davier29434 жыл бұрын
Array elements in my computer, when my algorithm sorting those
@alexritchie45864 жыл бұрын
I don't know why The Great and Mysterious Algorithm brought me here... but I'm glad it did!
@YoyoshiPiano5 жыл бұрын
I've seen this in programming class XD
@dandanme12 жыл бұрын
:') ooh how when i was searching to find out how to do these sorts i came across these... i was wetting myself >< they are amazing, hats of to you guys! (and gals)
@dowaynebreedt257610 жыл бұрын
Arrays.sort(hungarianDancers); 5 minutes faster than watching them dance lol
@cyndie266 жыл бұрын
Dowayne Breedt It would just be dual-pivot quicksort. I would personally like to see them do heapsort, probably because it's been drilled into me since sophomore year at university.
@so81435 жыл бұрын
@@cyndie26 kzbin.info/www/bejne/jqiVdWyXf7d1j5Y Sometimes wishes come true ;-)
@damou_13 жыл бұрын
thanks for this charming and lovely dance, this is a very clever way to understanding how to sort an array in computer science.
@neppie11 жыл бұрын
This is just wrong. I had to learn it the hard way.
@therealfakeweeb2 жыл бұрын
I don't know what drugs were used in the making of this but it's a masterpiece! Love from Hungary!
@zyxwvutsrqponmlkh8 жыл бұрын
In america the artsy people hate the computer people and vice versa, hard to imagine one of our universities doing something similar
@elninomoses124 жыл бұрын
okay! Beautiful piece of art to explain computer science, this is so EPIC! thanks!
@mohdfazreen72688 жыл бұрын
I watched this video coz i have exam data struc tommorow, wish me luck :)
@francescofrigo13556 жыл бұрын
Did you pass?
@HerczegNorbert13 жыл бұрын
köszönjük! sokat segít a tanulásban! :)
@fyasco98 жыл бұрын
my teacher sent me here. why does this have soo many views? lol
@uditchitnis7 жыл бұрын
Alex Johnson Even my teacher sent me here!!
@faysalahammedchowdhury2 жыл бұрын
OMG!! Great Explanation.
@andreiionut81007 жыл бұрын
procesoru meu merge cu 10 unguri pe secunda
@icantw810 жыл бұрын
Lol very nice video. I loved the dance more than the actual sorting.
@cagri58864 жыл бұрын
Man, it took so long that I got anxious waiting it to be sorted!
@MissLoveOP9 жыл бұрын
Hernandinou brought me there. This math teacher is a blessing.