Пікірлер
@thanhhuong3399
@thanhhuong3399 26 күн бұрын
WOW!!!
@smallppgangg
@smallppgangg Ай бұрын
Great explanation but the word "g*psy" needs to be removed from the title because it is a very rude and offensive slur aimed at Romani people.
@Natal0ne
@Natal0ne Ай бұрын
ty
@rpdemo
@rpdemo 3 ай бұрын
Quick question, I could make the algorithm. But wasn't able to make the objects to dance as in the video (just go straight to the point). Does anyone has any lib with allows me to do that?
@DebopriyoBasu
@DebopriyoBasu 4 ай бұрын
Here from a comment in leetcode editorials for today's daily problem :)
@evarey-kd6ez
@evarey-kd6ez 6 ай бұрын
love this, megaovermoc
@adityakumar-4349
@adityakumar-4349 6 ай бұрын
Nice😊
@alexchen6696
@alexchen6696 8 ай бұрын
funny, surprised, insightful, respectful
@XaxtonRevolution2
@XaxtonRevolution2 8 ай бұрын
I would actually like to reinstate my previous point that this is NOT insertion sort but rather a similar sort called, "Optimized Gnome Sort."
@SpacepopeSpeaking
@SpacepopeSpeaking 8 ай бұрын
When I have to proof the worth of the human species to some aliens, I'll show them these videos.
@KonradBogen
@KonradBogen 9 ай бұрын
i love it, but should't it be, that first the lowest candidate is searched, before they swap? here they swap immediately after a candidate lower then "insert" position is found... love the concept though <3
@mertugur8702
@mertugur8702 11 ай бұрын
güzelmiş
@solisglam
@solisglam Жыл бұрын
love how they sped it up cause selection sort just takes fucking ages xD
@lololol338
@lololol338 Жыл бұрын
polytech nantes idia3 2026
@berkayklc1613
@berkayklc1613 Жыл бұрын
Damn, it is wrong!
@raidoung4100
@raidoung4100 Жыл бұрын
i love how it starts from 3:36
@raidoung4100
@raidoung4100 Жыл бұрын
the amount of effort put into this is just plainly astounding :O
@ashisranjandey7541
@ashisranjandey7541 Жыл бұрын
Nice🎉one ❤
@Soyluyorum
@Soyluyorum Жыл бұрын
Now that was really quick
@GiantSquid13
@GiantSquid13 Жыл бұрын
I had no idea there were equal number of men and women until the sort was complete. Hilarious, entertaining and beautiful
@Fmajor7
@Fmajor7 Жыл бұрын
Musician here. makes sense. I guess 😅…
@NiputuTikaputri
@NiputuTikaputri Жыл бұрын
Tekkkkk
@dewamaderestia6853
@dewamaderestia6853 Жыл бұрын
Nyobrat gubluk
@komangtriartanadi8567
@komangtriartanadi8567 Жыл бұрын
Lonto di end
@dewamaderestia6853
@dewamaderestia6853 Жыл бұрын
Nyobrat
@dewamaderestia6853
@dewamaderestia6853 Жыл бұрын
Alit asu
@NiputuTikaputri
@NiputuTikaputri Жыл бұрын
Saya tidak mengerti
@marmont8005
@marmont8005 Жыл бұрын
This was seriously used as a reference in our training in an enterprise tutorial to look at the merge sort functionality.
@yeeesssssss
@yeeesssssss Жыл бұрын
I stopped watching explainers on the algos and just watch the dancing vids at this point
@kajalasocka6710
@kajalasocka6710 Жыл бұрын
i just want to be one of them😥
@asafbi77
@asafbi77 Жыл бұрын
תירה בי
@mahmoudanas6220
@mahmoudanas6220 Жыл бұрын
selection is too slow that the video speed had to be increased
@lator1941
@lator1941 Жыл бұрын
This algorithm feels so inefficient already.
@ompabaletserametse8643
@ompabaletserametse8643 Жыл бұрын
Selection sort algorithm. Perfect!
@ompabaletserametse8643
@ompabaletserametse8643 Жыл бұрын
😂😂😂😂 for some reason this makes me laugh
@sergesolkatt
@sergesolkatt Жыл бұрын
❤️
@SpRaT92
@SpRaT92 Жыл бұрын
My CS teacher sent me this... I didn't know what the video was about so I didn't get what was happening for the first two minutes, but god, this video is genious
@XaxtonRevolution2
@XaxtonRevolution2 Жыл бұрын
I hate to break it to you, but your teacher gave you slightly wrong information because this is not insertion sort, but rather optimized gnome sort. insertion sort is slightly different. i’ll explain later.
@BianCarlo
@BianCarlo Жыл бұрын
I learned in 5 minutes what I was breaking my head to learn in 1 whole day.
@XaxtonRevolution2
@XaxtonRevolution2 Жыл бұрын
(Edit: this is Optimized Gnome Sort not Gnome Sort.) I hope you weren't trying to learn Insertion Sort because the video title is misleading; the sorting algorithm in this is actually Optimized Gnome Sort, not Insertion Sort. Still a good video though.
@XaxtonRevolution2
@XaxtonRevolution2 Жыл бұрын
actually, this is optimized gnome sort
@mernus7512
@mernus7512 11 ай бұрын
if you couldn't understand this even just by reading and needed this to fully understand, maybe you should stop trying
@ЗалинаАхмедова-ы8м
@ЗалинаАхмедова-ы8м 9 ай бұрын
@@mernus7512 stop being so toxic
@AusticHardOfHearingSinger
@AusticHardOfHearingSinger Жыл бұрын
Nice!
@JohnCena-cs3in
@JohnCena-cs3in Жыл бұрын
Хуйня
@andrewmartin3671
@andrewmartin3671 Жыл бұрын
This is still faster than doing it in Python.
@zuzqqa7753
@zuzqqa7753 Жыл бұрын
No nie idzie to sprawnie😮
@NotMeInc
@NotMeInc Жыл бұрын
Ah, so that’s what my computer has been doing when I search something…
@ashwinsingh5805
@ashwinsingh5805 Жыл бұрын
A BIG APPLAUSE FOR THESE EFFORTS... If our professors made even 10% of their efforts then the world would be a better place with better programmers and logicians
@arismith59
@arismith59 Жыл бұрын
I was watching Wilbur videos and ended up here.... SOMEONE EXPLAIN ME 💀💀💀
@NorthSea_1981
@NorthSea_1981 Жыл бұрын
I have no idea what’s going on mathematically, but I love the idea of visualizing certain academic concepts with different media... My background is in linguistics and ethnography, so I stumbled across this more or less by accident. Amazing stuff!!
@MrMoto
@MrMoto Жыл бұрын
Here's an outline of what's going on. The goal is to get all the numbers in order. At the beginning, each dancer in turn (starting with a[5]) says "Hey dancer five places ahead of me, let's trade places if I'm smaller!" The reason we start with a[5] is because they're the first dancer who has someone five places ahead of them. So a[5] calls out to a[0] and trades places (thus putting their numbers in a better order); then a[6] calls out to a[1] but doesn't trade places because those two are already in the proper order; then a[7] calls out to a[2] but doesn't trade places, and so on. Why five places, exactly? This is actually an arbitrary value; it could have been different. The idea is that by looking five (or however many) places and swapping, you're very roughly putting things in order already. The small numbers get to travel way over to the left, and the bigger numbers get swapped over to the right. Some numbers are still going to be out of order, though, so now go back and do the same thing, but with a more fine-toothed comb: in the next pass (0:50), you'll see that they look exactly three places to the left every time. After swapping, they swap again if possible with their new three-places-over neighbour. Then, in the final pass (1:50), they simply look to their immediate neighbour every time, and this must put them all in order. (It might be easiest to understand the algorithm by watching this final pass first.) Again, the purpose of the first two passes was to do some rough work so that by the time the final pass starts, it's already in pretty good shape; the low numbers are near the beginning and the high the end. Note that they could have just started with the final pass (i.e., skipping the "look 5 ahead" and "look 3 ahead" phases), and this would still successfully sort the numbers. However, it would have likely involved more work since you would have to do more comparisons; you wouldn't have the benefit of an almost-sorted array. The final phase alone is called "Insertion sort" and has its own dance video.
@akyrvx
@akyrvx Жыл бұрын
Merci mon prof de nsi
@kunju.mp3799
@kunju.mp3799 Жыл бұрын
Nice
@absent4440
@absent4440 Жыл бұрын
Where am i
@XaxtonRevolution2
@XaxtonRevolution2 Жыл бұрын
Isn’t this gnome sort and not insertion sort?
@RyanLucroy
@RyanLucroy Жыл бұрын
Gnomesort and Insertionsort are closely related, but they differ in one step: Insertionsort saves the position of the next element to sort, while Gnomesort goes back up to that position. Since they don't compare the elements again after inserting at the right position, it's Insertionsort.
@XaxtonRevolution2
@XaxtonRevolution2 Жыл бұрын
@@RyanLucroy well if you search for insertion sort explained and watch the video with the robots, you will see that insertion sort keeps the current element in an auxiliary array, until all of the necessary swaps of the elements to the left of it are performed. So to go to it in more detail, if this was insertion sort, after the 7 was placed in its correct position, the rest would be different; the 2 would be moved from a[5] to an auxilliary array then compared with the 8 and then the 8 would be moved from a [4] to a[5] but the next step would not be to move the 2 to a[4] but rather to compare the 2 to the variable stored in a[3] which is the 7 and because the 7 is higher, the 7 gets moved from a[3] to a[4] and then the 2 gets compared with the the variabled stored in a[2] which is 3 and because 3 is higher, the 3 gets moved from a[2] to a[3] then the 2 is STILL in the auxiliary array and gets compared with the variable stored in a[1] which is 1 and because 1 is NOT higher than 2, the 2 finally gets moved from the auxiliary array to a[2]. So with insertion sort, NO ELEMENT CAN BE MOVED FROM THE MAIN ARRAY TO AN AUXILIARY ARRAY MORE THAN ONCE.
@XaxtonRevolution2
@XaxtonRevolution2 11 ай бұрын
@@RyanLucroy if gnome sort saved the position of the next element to be sorted, it would still be different from insertion sort; it would be optimized gnome sort.
@Kayra5138
@Kayra5138 2 жыл бұрын
I was expecting to write code as homework but this video was not bad either