Это видео недоступно.
Сожалеем об этом.

Quick Sort Algorithm

Поделиться
HTML-код
  • Опубликовано: 1 мар 2021
  • ​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.community
    Manim Animation
    link.curiouswalk.com/manim
    Thanks for watching.
    🔗 www.curiouswalk.com
    ✉️ hello@curiouswalk.com

Комментарии • 133

  • @tobotis2658
    @tobotis2658 3 года назад +261

    Wow it takes so much afford to animate this.... respect

    • @apdayn
      @apdayn Год назад +17

      This is so easy if you know python programming and it is used a package called manim

  • @gairick9
    @gairick9 Год назад +109

    this was so insanely good. deserves 10mil+ views honestly

    • @EliAxel
      @EliAxel Год назад +3

      indeed, at least 8 billion views

    • @ImBobtheHampter
      @ImBobtheHampter Год назад +2

      @@EliAxel More, like 9 Nontilion views

  • @maxpo801
    @maxpo801 Год назад +76

    Really helpful! Contrast to those ultrafast animations, this helps to feel out how does algorithm work. Well done!

  • @avnpl13
    @avnpl13 11 месяцев назад +9

    Thank you. Visually seeing it happen finally helped me understand the different operations happen and their order

  • @slivkask8329
    @slivkask8329 3 месяца назад +18

    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 2 месяца назад +3

      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 20 дней назад

      @@smartrabbitvideos9384 at the start of the video, the green and orange dots were said to represent element at index not index

  • @sreeharsharaveendra289
    @sreeharsharaveendra289 Год назад +8

    The most beautiful UI, UX design to explain quicksort algorithm. Sounds, visual cues, animation is too good.

  • @gersonadr2
    @gersonadr2 8 месяцев назад +18

    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.

  • @NarayanadasuMeghana
    @NarayanadasuMeghana 3 дня назад +1

    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.

  • @santanu29
    @santanu29 11 месяцев назад +6

    Oh my god. I always forget the Quick sort. I will come back to this video whenever I need a refresher.

  • @ve2zzz
    @ve2zzz Год назад +10

    Thank you a lot !!!
    Simply using sound effects instead of music is by far more relaxing and helpful !

  • @ritamkumarsinha3904
    @ritamkumarsinha3904 3 месяца назад +2

    Woah!!!! This was amazing dude. Keep making such videos :)

  • @fridericusrex9812
    @fridericusrex9812 9 месяцев назад +6

    The best explanation on all of RUclips!

  • @levi8676
    @levi8676 Год назад +4

    Simple and straight to the point, good job

  • @lainbit4916
    @lainbit4916 3 месяца назад +1

    This video is so underrated, amazing explanation!

  • @kaoutaeaea649
    @kaoutaeaea649 Год назад +2

    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!

  • @YashRaj-zs1oo
    @YashRaj-zs1oo 2 месяца назад +1

    In one way or another now I totally get quicksort. thank you for the video.

  • @user-ft1ux2gx6w
    @user-ft1ux2gx6w Год назад +13

    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.

  • @dhruvkumar-br2lp
    @dhruvkumar-br2lp 4 месяца назад +2

    Most amazing animation to explain quick-sort

  • @santanusengupta262
    @santanusengupta262 Год назад +3

    Awesome work . Thank you so much

  • @DarongQi
    @DarongQi 10 месяцев назад +24

    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.

  • @arpitnagar5792
    @arpitnagar5792 Год назад +2

    great presentation pal! Thanks

  • @arlessonlima7811
    @arlessonlima7811 3 месяца назад +1

    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.

  • @piyushanayak
    @piyushanayak Год назад +1

    OMG this is beautiful!!! 💖😍

  • @pianono
    @pianono 4 месяца назад +1

    I love the sound effect thank you

  • @samatamehta
    @samatamehta 2 месяца назад +1

    Awesome video,🙌

  • @phythematics2188
    @phythematics2188 2 года назад +5

    If had millions of dollars, I would have given you one.

  • @parkie0517
    @parkie0517 2 месяца назад +1

    loovoly video mate thanks alot

  • @bhonepyaekyaw396
    @bhonepyaekyaw396 8 месяцев назад +1

    I think this one is the best one in terms of visualization.

  • @denisonesteves9501
    @denisonesteves9501 Год назад +2

    Amazing job!

  • @user-he9gv1el7m
    @user-he9gv1el7m 6 месяцев назад +1

    Short and easy :)
    Good Job!!

  • @prashantagarwal3339
    @prashantagarwal3339 5 месяцев назад +1

    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.

  • @icyflamingo4142
    @icyflamingo4142 6 месяцев назад +1

    Best 4k video of all time

  • @osamaps
    @osamaps Месяц назад +1

    great work

  • @bilalcangules195
    @bilalcangules195 9 месяцев назад +1

    the best video i`ve ever seen.

  • @viveknehra2427
    @viveknehra2427 4 дня назад +2

    wow mindblowing this is a masterpiece

  • @manuelpagliuca
    @manuelpagliuca 5 месяцев назад +1

    This was great!

  • @user-hv2cx3iw5z
    @user-hv2cx3iw5z Год назад +1

    the best visual explanation! I really liked it and it was beneficial! Also, it's my first comment) you really deserve it!!!

  • @gradientO
    @gradientO 2 года назад +4

    Beautiful ❤️

  • @newname8276
    @newname8276 3 месяца назад +2

    beautiful animation

  • @Mohajer-jt5tk
    @Mohajer-jt5tk Месяц назад +2

    great explanation thanks alot

  • @bergjoel93
    @bergjoel93 9 месяцев назад +1

    Yussss this is what i needed. sank you

  • @efecantepe3990
    @efecantepe3990 5 месяцев назад +1

    Fantastic animation

  • @explorerars4208
    @explorerars4208 6 месяцев назад +1

    Wow Wow such a nice animation thank you

  • @Ian-bb7vv
    @Ian-bb7vv 3 месяца назад

    Insanely good

  • @rajatnayak972
    @rajatnayak972 2 года назад +9

    it hurts to see this not getting enough credit😔

  • @Rejuyan-Ahmed
    @Rejuyan-Ahmed 4 месяца назад +1

    Thanks man.

  • @user-dy7wm3vb3r
    @user-dy7wm3vb3r 6 месяцев назад +1

    It's really amazing and the animation with the sound are really cute

  • @Dushyanth_0_0_7
    @Dushyanth_0_0_7 6 месяцев назад +2

    Nice easy to understand ❤❤

  • @TawfikShalash
    @TawfikShalash 7 месяцев назад +1

    really amazing

  •  Год назад +1

    Amazing!

  • @uwu-zx5hv
    @uwu-zx5hv 5 месяцев назад +1

    Really nice animation

  • @girishgarg2816
    @girishgarg2816 3 года назад +39

    Nice sound effects. How did you sync them so perfectly with the animations?

    • @anwarulbashirshuaib5673
      @anwarulbashirshuaib5673 2 года назад +19

      manim has built-in methods for that purpose. You can pair sound effects with the animations you want

  • @rabia-ku2os
    @rabia-ku2os 7 месяцев назад +1

    THAT S AMAZINGGG

  • @thientranphu4522
    @thientranphu4522 5 месяцев назад +1

    good job.

  • @minh-tamvo4608
    @minh-tamvo4608 5 месяцев назад +1

    most satisfying tutorial

  • @pierluigimontieri3852
    @pierluigimontieri3852 10 месяцев назад +1

    very good

  • @AdiCode_Hub
    @AdiCode_Hub 4 месяца назад +2

    finally found the gem.

  • @umairhusain4056
    @umairhusain4056 Месяц назад +1

    criminally underrated content

  • @thechosenone7465
    @thechosenone7465 10 месяцев назад +1

    thanks you so much😍

  • @user-qd4oo9wu7f
    @user-qd4oo9wu7f 10 месяцев назад +1

    Great animation ! just would like to ask about the source of the sound effects

  • @harshithnaidu8568
    @harshithnaidu8568 11 месяцев назад +1

    amazing

  • @gutzimmumdo4910
    @gutzimmumdo4910 Год назад

    perfectly explained

  • @victorm6430
    @victorm6430 Год назад +1

    Thank you! Best video on Quick Sort!

  • @shubhamdhiman7516
    @shubhamdhiman7516 Год назад +2

    Please make more videos on other sorting methods.

  • @venkataganeshalamanda3345
    @venkataganeshalamanda3345 8 месяцев назад +1

    Thanks

  • @coding.tutorial3713
    @coding.tutorial3713 Год назад +1

    Wow gargeous 😮 👌👌

  • @PromptStreamer
    @PromptStreamer Год назад +1

    Nice video aesthetic

  • @orzigelboim3013
    @orzigelboim3013 Год назад

    Amazing

  • @udaysrivastava_
    @udaysrivastava_ 7 месяцев назад +1

    Even a kindergarten kid can understand it seeing this video, DAMN!

  • @imanueljodi1201
    @imanueljodi1201 2 года назад +3

    This is the best explanation for me

  • @yuvalamir3226
    @yuvalamir3226 6 месяцев назад +4

    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.

  • @shaankhalid1578
    @shaankhalid1578 Год назад +2

    Can you share the code. For the learning prospects. Please

  • @eclipse9925
    @eclipse9925 Год назад +1

    Finelly!!!

  • @benajaero
    @benajaero Год назад +1

    this is crazy

  • @nandna8
    @nandna8 7 месяцев назад +3

    Can u plz provide the code

  • @efecantepe3990
    @efecantepe3990 5 месяцев назад +1

    This example uses Lomuto's partitioning algorithm.

  • @anonymous-go3cd
    @anonymous-go3cd 8 месяцев назад

    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 ?

  • @dharishnik995
    @dharishnik995 4 месяца назад +2

    How to make these kind of animations!

  • @parmaruday1905
    @parmaruday1905 Год назад +2

    can you please explain how to decide orange and green's position (index) according to pivot ?

    • @nuqb
      @nuqb 5 месяцев назад

      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.

  • @rashmikaabeyrathna9397
    @rashmikaabeyrathna9397 3 месяца назад

    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

  • @jsoshsis997
    @jsoshsis997 8 месяцев назад +1

    terimakasih, daya sudah mengerti quicksort 5 menit sebelum ujian

  • @AkashRoy-do2dg
    @AkashRoy-do2dg Год назад +3

    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  Год назад +3

      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.

  • @chaaaaaaaaaaan
    @chaaaaaaaaaaan 7 месяцев назад +1

    BESTT

  • @hugolatendresse7617
    @hugolatendresse7617 5 месяцев назад +1

    Isn't there an error? At the bottom-right, the condition for swapping should be [green < orange], not [green > orange]

  • @zayfex6944
    @zayfex6944 9 месяцев назад

    does this mean if "index" is greater than "swap marker" they will swap?

  • @Shadow-iw9wq
    @Shadow-iw9wq 4 месяца назад

    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

  • @rishabh6953
    @rishabh6953 2 месяца назад

    0:32 why 2 is not swapped after +1 it will become 3 which is less than pv?? It need to swap

  • @tedtieken3592
    @tedtieken3592 Год назад +1

    I almost understood it this time

  • @felica4474
    @felica4474 9 месяцев назад +1

    Orange > green

  • @mirzaahsan7406
    @mirzaahsan7406 7 месяцев назад +1

    I want a source code of this animations

  • @user-xm7xl1kf4q
    @user-xm7xl1kf4q 2 года назад +7

    Great job. can you give the source codes?

  • @R_SinghRajput
    @R_SinghRajput 2 месяца назад

    7 to 6 in the third level, it dint exchange the value ?? y

  • @Abon963
    @Abon963 Год назад +1

    W animation

  • @amazingcontent4213
    @amazingcontent4213 Год назад +2

    Super duper 🔥

  • @statologyMovement
    @statologyMovement Год назад

    0:53 Current index is not greater than swap index. Why does it still swap?

  • @joxa6119
    @joxa6119 9 месяцев назад

    Is this Hoare schemes? Why it looks different?

  • @mikailkocadag
    @mikailkocadag 7 месяцев назад

    green>orange isn't it wrong? actually orange >green, before swap

  • @hoanghuy6971
    @hoanghuy6971 3 месяца назад

    Does there seem to be a problem at green > orange => swap ???

    • @oleksandrkovalchuk5961
      @oleksandrkovalchuk5961 Месяц назад

      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.

  • @bibekbhandari7985
    @bibekbhandari7985 2 года назад

    Keep Walking.

  • @eh2061
    @eh2061 Год назад

    Isn't the last condition (grean > orange) false and should be orange > green?

    • @curiouswalk
      @curiouswalk  Год назад

      A detailed explanation at 0:15 would have been helpful.
      • (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.