Тёмный

Quick Sort Algorithm 

CuriousWalk
Подписаться 3,7 тыс.
Просмотров 249 тыс.
50% 1

​Quick Sort is a sorting algorithm based on partitioning the array of data into sub-arrays to sort them recursively.
This video is produced with the animation engine Manim.
Manim - Mathematical Animation Framework. www.manim.comm...
Manim Animation
link.curiouswa...
Thanks for watching.
🔗 www.curiouswal...
✉️ hello@curiouswalk.com

Опубликовано:

 

23 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 149   
@tobotis2658
@tobotis2658 3 года назад
Wow it takes so much afford to animate this.... respect
@apdayn
@apdayn Год назад
This is so easy if you know python programming and it is used a package called manim
@СтепанИвегеш-в5ф
@СтепанИвегеш-в5ф 20 дней назад
effort bro
@gairick9
@gairick9 Год назад
this was so insanely good. deserves 10mil+ views honestly
@EliAxel
@EliAxel Год назад
indeed, at least 8 billion views
@ImBobtheHampter
@ImBobtheHampter Год назад
@@EliAxel More, like 9 Nontilion views
@sreeharsharaveendra289
@sreeharsharaveendra289 Год назад
The most beautiful UI, UX design to explain quicksort algorithm. Sounds, visual cues, animation is too good.
@maxpo801
@maxpo801 Год назад
Really helpful! Contrast to those ultrafast animations, this helps to feel out how does algorithm work. Well done!
@slivkask8329
@slivkask8329 5 месяцев назад
Actually there is an error in the drawn condition for swap green and orange, it should be inverted. At 0:45 it swaps 0 with 5, but according to condition 'green > orange' (0 > 5) it should not. So the correct condition is 'green < orange' (0 < 5). We are sorting ascending and not descending. ✌
@smartrabbitvideos9384
@smartrabbitvideos9384 4 месяца назад
It looks like this is not an issue. The green and red dots represent the indices in the array so 'green > blue' states that if green is at a higher index than blue then swap (not values!). Later once green is smaller than or equal to 4 (pivot) then the new incremented position of yellow is more than the pivot. If the new green element is less than the pivot then it is obviously less than the new incremented yellow value as well.
@eauploads3677
@eauploads3677 3 месяца назад
@@smartrabbitvideos9384 at the start of the video, the green and orange dots were said to represent element at index not index
@kokonut5498
@kokonut5498 Месяц назад
@@eauploads3677 only if there is a bracket around it, if not then it represents the indices
@mayankkleo
@mayankkleo Месяц назад
@@eauploads3677 i saw that error too but after @smartrabbitvideos9384 reply I realised that dot with square brackets [dot] represents value and only dots represents index
@abhilashgarapati8006
@abhilashgarapati8006 Месяц назад
what you said is correct
@santanu29
@santanu29 Год назад
Oh my god. I always forget the Quick sort. I will come back to this video whenever I need a refresher.
@avnpl13
@avnpl13 Год назад
Thank you. Visually seeing it happen finally helped me understand the different operations happen and their order
@gersonadr2
@gersonadr2 11 месяцев назад
This is amazing. I've learned more in this 2min video than any CS lecture or self study. Please do one for every key concept in CS.
@MrJbauer12
@MrJbauer12 11 дней назад
For future watchers/viewers • (dot) is the index position. [•] (dot in brackets) is the element at index • (dot) Comparing only the • dots means comparing the index positions of the • dots only and not the elements at • the dots. Thanks a lot, this video was the only one that helped me understand this algorithm. Much respect.
@NarayanadasuMeghana
@NarayanadasuMeghana 2 месяца назад
I have watched so many videos on quick sort.but i didn't understand all of them, but this video makes me sense. and i have understood it very perfectly.
@DarongQi
@DarongQi Год назад
There seems to be an error in the video. At the bottom the decision tree guide displays green > yellow, where it should be the other other way around.
@mounibish
@mounibish 10 месяцев назад
yup
@ashmit21
@ashmit21 Месяц назад
It refers to the index position, not the value of swap marker in the array
@Lavamar
@Lavamar Месяц назад
No, the video is correct. Like the other commenters said, the orange and green dots represent the indices in the list, not the elements themselves.
@MrJbauer12
@MrJbauer12 11 дней назад
I got confused, too. I read a comment from the channel's owner, who commented under someone else's comment. We need to look at the indices, not the element inside the array. Below is his comment: "Thanks for your interest. • (dot) is the index position. [•] (dot in brackets) is the element at index • (dot) Comparing only the • dots means comparing the index positions of the • dots only and not the elements at • the dots. A detailed explanation at 0:15 would have been helpful."
@ve2zzz
@ve2zzz Год назад
Thank you a lot !!! Simply using sound effects instead of music is by far more relaxing and helpful !
@dhruvkumar-br2lp
@dhruvkumar-br2lp 7 месяцев назад
Most amazing animation to explain quick-sort
@yuvalamir3226
@yuvalamir3226 9 месяцев назад
This was very helpful, but I had a hard time understanding the intent behind the seemingly simple operations for the partitioning. A slide at the start with some text would have been helpful. Here's the idea if anyone else struggled understanding it. You have a moving pivot (orange) and a swapper (green). The moving pivot (which starts at -1) maintains a territory to it's left (and where he currently is) of numbers which are smaller or equal to the pivot. The swapper looks for the numbers which are smaler than or equal to the pivot and moves them into the moving pivot's territory.
@HeenaTabassum-y4z
@HeenaTabassum-y4z Год назад
Your videos are really do easy to understand. I understood all sorting techniques through your videos. Can you please make videos on linked list concepts please. It would help us in better understanding. U guys are doing a great job, hope u continue it and go ahead.
@fridericusrex9812
@fridericusrex9812 Год назад
The best explanation on all of RU-vid!
@willm772
@willm772 2 дня назад
Wonderfully made thank you so much, exam in 9 hours.
@Nissan-d5d
@Nissan-d5d 25 дней назад
WOW!! The animation explains the sorting algorighm in easiest way!! Just wondering could you share the colab notebook code of that animation?
@prashantagarwal3339
@prashantagarwal3339 7 месяцев назад
This is one of the best channel to learn computer science concepts in general.Please keep creating and posting more videos as these animations are highly useful in understanding the underlying concepts.Can you please share the manim code you used to create this animation.
@levi8676
@levi8676 Год назад
Simple and straight to the point, good job
@girishgarg2816
@girishgarg2816 3 года назад
Nice sound effects. How did you sync them so perfectly with the animations?
@anwarulbashirshuaib5673
@anwarulbashirshuaib5673 2 года назад
manim has built-in methods for that purpose. You can pair sound effects with the animations you want
@IshraqTanvir
@IshraqTanvir 2 месяца назад
you boy makes this really easy........this 3 minutes are fascinating!
@hugolatendresse7617
@hugolatendresse7617 8 месяцев назад
Isn't there an error? At the bottom-right, the condition for swapping should be [green < orange], not [green > orange]
@arlessonlima7811
@arlessonlima7811 5 месяцев назад
Congratulations on this animation. I had never understood what the swap rule was like between current position value and swap position value. With this animation I understood that after increasing the exchange position by 1, its value must be exchanged if the value of the current position is less than that of the exchange position, this way the exchange position will always contain a value less than or equal to the value of pivot.
@lainbit4916
@lainbit4916 6 месяцев назад
This video is so underrated, amazing explanation!
@YashRaj-zs1oo
@YashRaj-zs1oo 5 месяцев назад
In one way or another now I totally get quicksort. thank you for the video.
@bhonepyaekyaw396
@bhonepyaekyaw396 11 месяцев назад
I think this one is the best one in terms of visualization.
@kaoutaeaea649
@kaoutaeaea649 Год назад
Only after watching 1M videos, I landed on the best one. I can now write the code myself after understanding the depth. Thanks a lot!
@ritamkumarsinha3904
@ritamkumarsinha3904 5 месяцев назад
Woah!!!! This was amazing dude. Keep making such videos :)
@hashinifernando2756
@hashinifernando2756 4 дня назад
Thanks!
@rashmikaabeyrathna9397
@rashmikaabeyrathna9397 6 месяцев назад
green dot is iterator.. like i in for loop. orange dot keep track of elements what are smaller than the pivet. steps: 1. select the pivet. (last element) 2. traverse through the array and compare each element with the pivet. if it finds element less than the pivet, move orange dot one place. then swap places.(this action move elements that are less than pivet, close to each other.) 3. if green dot goes to the pivet, then again move green dot one place and swap it with the pivet. now we have the pivet in place where it placed correct place it should be. do this recursively
@andrefelipechannel
@andrefelipechannel Месяц назад
Alright! So how to merge them all in the end? I should maintain a map to hold each value at each index?
@viveknehra2427
@viveknehra2427 2 месяца назад
wow mindblowing this is a masterpiece
@santanusengupta262
@santanusengupta262 Год назад
Awesome work . Thank you so much
@newname8276
@newname8276 5 месяцев назад
beautiful animation
@pianono
@pianono 6 месяцев назад
I love the sound effect thank you
@GaïaCheikho
@GaïaCheikho 9 месяцев назад
It's really amazing and the animation with the sound are really cute
@theGardenhead
@theGardenhead 9 месяцев назад
i love the sounds too!
@Mohajer-jt5tk
@Mohajer-jt5tk 4 месяца назад
great explanation thanks alot
@rajatnayak972
@rajatnayak972 2 года назад
it hurts to see this not getting enough credit😔
@AdiCode_Hub
@AdiCode_Hub 6 месяцев назад
finally found the gem.
@anonymous-go3cd
@anonymous-go3cd 10 месяцев назад
I have a confusion in some video I saw when we choose pivot in left side greater element is search from left to right and smaller is right to left and you are doing both from the same side is it same ?
@icyflamingo4142
@icyflamingo4142 8 месяцев назад
Best 4k video of all time
@ABOUDIBRAHIM-h4j
@ABOUDIBRAHIM-h4j Год назад
Great animation ! just would like to ask about the source of the sound effects
@phythematics2188
@phythematics2188 2 года назад
If had millions of dollars, I would have given you one.
@AkashRoy-do2dg
@AkashRoy-do2dg Год назад
thanks for the animation but there's a slight mistake in ---> [green] [orange+1] ----> [ green] > [ orange] ===> it should be [orange] >[green] then swap If I'm not wrong. wouldn't have figured the algo without your animation( I've figured the error cuz of that) again thanks!!!!!!
@curiouswalk
@curiouswalk Год назад
Thanks for your interest. • (dot) is the index position. [•] (dot in brackets) is the element at index • (dot) Comparing only the • dots means comparing the index positions of the • dots only and not the elements at • the dots. A detailed explanation at 0:15 would have been helpful.
@arpitnagar5792
@arpitnagar5792 Год назад
great presentation pal! Thanks
@efecantepe3990
@efecantepe3990 7 месяцев назад
This example uses Lomuto's partitioning algorithm.
@efecantepe3990
@efecantepe3990 7 месяцев назад
Fantastic animation
@minh-tamvo4608
@minh-tamvo4608 8 месяцев назад
most satisfying tutorial
@umairhusain4056
@umairhusain4056 3 месяца назад
criminally underrated content
@nandna8
@nandna8 9 месяцев назад
Can u plz provide the code
@HieuTran-ho3mx
@HieuTran-ho3mx Год назад
very good
@Dushyanth_0_0_7
@Dushyanth_0_0_7 9 месяцев назад
Nice easy to understand ❤❤
@osamaps
@osamaps 4 месяца назад
great work
@venkataganeshalamanda3345
@venkataganeshalamanda3345 10 месяцев назад
Thanks
@bilalcangules195
@bilalcangules195 11 месяцев назад
the best video i`ve ever seen.
@RISHAVKUMAR-c4h
@RISHAVKUMAR-c4h 8 месяцев назад
Short and easy :) Good Job!!
@explorerars4208
@explorerars4208 9 месяцев назад
Wow Wow such a nice animation thank you
@TawfikShalash
@TawfikShalash 10 месяцев назад
really amazing
@jsoshsis997
@jsoshsis997 11 месяцев назад
terimakasih, daya sudah mengerti quicksort 5 menit sebelum ujian
@uwu-zx5hv
@uwu-zx5hv 8 месяцев назад
Really nice animation
@shaankhalid1578
@shaankhalid1578 Год назад
Can you share the code. For the learning prospects. Please
@dharishnik995
@dharishnik995 7 месяцев назад
How to make these kind of animations!
@gradientO
@gradientO 3 года назад
Beautiful ❤️
@piyushanayak
@piyushanayak Год назад
OMG this is beautiful!!! 💖😍
@Rejuyan-Ahmed
@Rejuyan-Ahmed 7 месяцев назад
Thanks man.
@harshithnaidu8568
@harshithnaidu8568 Год назад
amazing
@ДмитроІльків-ж7и
the best visual explanation! I really liked it and it was beneficial! Also, it's my first comment) you really deserve it!!!
@justsomeguy8385
@justsomeguy8385 Месяц назад
This does not handle duplicates if you check when you swap if current value == pivot
@thientranphu4522
@thientranphu4522 7 месяцев назад
good job.
@parmaruday1905
@parmaruday1905 Год назад
can you please explain how to decide orange and green's position (index) according to pivot ?
@nuqb
@nuqb 8 месяцев назад
quick sort goes left to right. so green and orange will be on the left. you can choose any number as the pivot index but you will put it to the right of the list and then do this process in the video.
@manuelpagliuca
@manuelpagliuca 8 месяцев назад
This was great!
@rishabh6953
@rishabh6953 5 месяцев назад
0:32 why 2 is not swapped after +1 it will become 3 which is less than pv?? It need to swap
@udaysrivastava_
@udaysrivastava_ 9 месяцев назад
Even a kindergarten kid can understand it seeing this video, DAMN!
@denisonesteves9501
@denisonesteves9501 Год назад
Amazing job!
@thechosenone7465
@thechosenone7465 Год назад
thanks you so much😍
@mirzaahsan7406
@mirzaahsan7406 10 месяцев назад
I want a source code of this animations
@samatamehta
@samatamehta 4 месяца назад
Awesome video,🙌
@parkie0517
@parkie0517 5 месяцев назад
loovoly video mate thanks alot
@joxa6119
@joxa6119 11 месяцев назад
Is this Hoare schemes? Why it looks different?
@Shadow-iw9wq
@Shadow-iw9wq 7 месяцев назад
this doesn't work with multiple duplicate elements in an array, maybe someone can help me with 40420 I get stuck at 424 with pivot 4
@rabia-ku2os
@rabia-ku2os 9 месяцев назад
THAT S AMAZINGGG
@zayfex6944
@zayfex6944 11 месяцев назад
does this mean if "index" is greater than "swap marker" they will swap?
@shubhamdhiman7516
@shubhamdhiman7516 2 года назад
Please make more videos on other sorting methods.
@bergjoel93
@bergjoel93 Год назад
Yussss this is what i needed. sank you
@mikailkocadag
@mikailkocadag 10 месяцев назад
green>orange isn't it wrong? actually orange >green, before swap
@imanueljodi1201
@imanueljodi1201 2 года назад
This is the best explanation for me
@statologyMovement
@statologyMovement Год назад
0:53 Current index is not greater than swap index. Why does it still swap?
@Ian-bb7vv
@Ian-bb7vv 6 месяцев назад
Insanely good
@coding.tutorial3713
@coding.tutorial3713 Год назад
Wow gargeous 😮 👌👌
@hoanghuy6971
@hoanghuy6971 5 месяцев назад
Does there seem to be a problem at green > orange => swap ???
@oleksandrkovalchuk5961
@oleksandrkovalchuk5961 3 месяца назад
seems yes, I also noticed this and decided to read the comments if I am not missing something. this condition should be changed on opposite one.
@gutzimmumdo4910
@gutzimmumdo4910 Год назад
perfectly explained
Год назад
Amazing!
@R_SinghRajput
@R_SinghRajput 4 месяца назад
7 to 6 in the third level, it dint exchange the value ?? y
@benajaero
@benajaero Год назад
this is crazy
@PromptStreamer
@PromptStreamer Год назад
Nice video aesthetic
@fjpa654
@fjpa654 2 года назад
What a great videos! however, I think the "greater than" operator comparing green with orange should be less than, and you have greater than. when you compare 5 with 0, zero(green) is less than 5(orange), and you have swap if green is greater than orange. It should be backwards really great video tho.
@curiouswalk
@curiouswalk 2 года назад
Thank you for asking about this. So we are comparing each element (the green dot is the current index) to the pivot value (in our case, the last element of each array) and swapping the element at the green dot (the current index) with the element at the orange dot when required.
@anasriaz5199
@anasriaz5199 8 месяцев назад
@@curiouswalk he is saying u are comparing green with orange with a > symbol as shown but in actual u are comparing them using < operator i had the same confusion. i guess there is a typo or i didnt get it so i am rewatching it bcz it can be a mistake at my end .
@carlossolrac84
@carlossolrac84 11 месяцев назад
1:22 why swap if green is not bigger than orange?
@dampdigits
@dampdigits 11 месяцев назад
That's a mistake if orange is greater than green then swap
@eclipse9925
@eclipse9925 Год назад
Finelly!!!
@chaaaaaaaaaaan
@chaaaaaaaaaaan 10 месяцев назад
BESTT
Далее
2.8.1  QuickSort Algorithm
13:43
Просмотров 3,2 млн
Learn Quick Sort in 13 minutes ⚡
13:49
Просмотров 363 тыс.
impossible lungs test !! 🫁
01:00
Просмотров 6 млн
aespa 에스파 'Whiplash' MV
03:11
Просмотров 35 млн
Merge Sort Algorithm
5:53
Просмотров 59 тыс.
Hashing Algorithms and Security - Computerphile
8:12
Quicksort Algorithm: A Step-by-Step Visualization
9:32
I Made Sorting Algorithms Race Each Other
8:24
Просмотров 191 тыс.
10 FORBIDDEN Sorting Algorithms
9:41
Просмотров 898 тыс.
WHY IS THE HEAP SO SLOW?
17:53
Просмотров 253 тыс.
Dijkstra's Algorithm - Computerphile
10:43
Просмотров 1,3 млн
Quicksort: Partitioning an array
4:48
Просмотров 586 тыс.