Master Theorem Visually Explained

Поділитися
Вставка
  • Опубліковано 17 вер 2022
  • Here we go over the intuition behind the master theorem / master method, which often times gets lost behind all the math required for the proof.
    Visualized with Manim Community.
    Sources and further links:
    - [Al Gore Clip, Simpsons episode 113](simpsons.fandom.com/wiki/Gram...)
    - [Animating Fluid Sediment Mixture in Particle-Laden Flows]( • [SIGGRAPH 2018] Animat... )
    - [Control Strategies for Physically Simulated Characters Performing Two-player Competitive Sports]( • Control Strategies for... )
    ---
    - [Bubble-sort with Hungarian ("Csángó") folk dance]( • Bubble-sort with Hunga... )
    - [Insert-sort with Romanian folk dance.flv]( • Insert-sort with Roman... )
    - [Merge-sort with Transylvanian-saxon (German) folk dance.flv]( • Merge-sort with Transy... )
    - [Quick-sort with Hungarian (Küküllomenti legényes) folk dance.flv]( • Quick-sort with Hungar... )
    - [Select-sort with Gypsy folk dance.flv]( • Select-sort with Gypsy... )
    - [Shell-sort with Hungarian (Székely) folk dance.flv]( • Shell-sort with Hungar... )
    ---
    - [Model Checking](en.wikipedia.org/wiki/Model_c...)
    - [Hoare Calculus](www.researchgate.net/figure/H...)
    - [Z3: An Efficient SMT Solver](doi.org/10.1007/978-3-540-788...)
    ---
    - [What Is Big O Notation?]( • What Is Big O Notation? )
    - [Khan Academy: Asymptotic notation](www.khanacademy.org/computing...)
    ---
    - [The Hammer Party - Divide And Conquer]( • Video )
    - [PINK GUY - HELP]( • PINK GUY - HELP )
    - [Look at this graph]( • Video )
    - [JO1 - Algorithm ]( • JO1|'Algorithm' PERFOR... )
    ---
    - [How Karatsuba's algorithm gave us new ways to multiply]( • How Karatsuba's algori... )
    - [2. Divide & Conquer: Convex Hull, Median Finding]( • 2. Divide & Conquer: C... )
    - [Geometry of football (Voronoi)]( • Geometry of football (... )
    - [3. Divide & Conquer: FFT]( • 3. Divide & Conquer: FFT )
    - [The Fast Fourier Transform (FFT): Most Ingenious Algorithm Ever?]( • The Fast Fourier Trans... )
    - [FFT Example: Unraveling the Recursion]( • FFT Example: Unravelin... )
    - [4. Divide & Conquer: van Emde Boas Trees]( • 4. Divide & Conquer: v... )
    - [Closest Pair of Points (Divide and Conquer) Explained]( • Closest Pair of Points... )
    - [Strassen algorithm](en.wikipedia.org/wiki/Strasse...)
  • Наука та технологія

КОМЕНТАРІ • 68

  • @stefano3618
    @stefano3618 Місяць тому +1

    In 5:26 I haven't understood why the index of the sum is from j=0 to log b (n-1) rather than j=0 ti log b (n) - 1

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

      Sorry for the late reply. Because the last/n-th term are the leaves, which are the term afterwards, i.e. Theta(n^(log_b(a)))

    • @stefano3618
      @stefano3618 19 днів тому

      It' s fine. I mean if we don't consider the last level in the summation we should do height minus 1, with height = log_b(n), so the minus 1 is outside the bracket. Correct me if I am wrong

    • @larsquentin8249
      @larsquentin8249  6 днів тому

      @@stefano3618 Didn't see it again haha. Yes, you are completely correct, it should be
      sum_{j=0}^{log_b(n)-1}
      I've pinned your comment for everyone else. Thank you so much!

  • @chinglemba9136
    @chinglemba9136 8 місяців тому +29

    it's a crime that your channel does not have millions of subscribers. THANK YOU for this

  • @abhirup619
    @abhirup619 10 місяців тому +14

    Everywhere I searched they just used the formula or showed how to use the formula! This is EXACTLY what I was looking for. Brilliant work

  • @LarryBordo
    @LarryBordo Рік тому +16

    I had a really hard time understanding the Master Theorem when I was studying Algorithms so long ago. You've made understanding this complex formula so much easier. Thank you.

  • @tauheedakbar3781
    @tauheedakbar3781 Рік тому +6

    absolutely beautiful work, really appreciate all the hard work you clearly put into this

  • @xLany
    @xLany 7 місяців тому +6

    Lars why are you so cool. This is one of the best algorithm teaching videos I've ever seen in my life. I’m relearning Master’s Theorem at 2am right now. Every couple mins I audibly say “what the f!!!” and pause the video to take agitated paces around the room because something you said just blew my mind again. Thank you for the clear explanation, the visualization, the scattered meme-ry, and the montage of cool applications at the end (I dropped so many "what the f"s going through that). Above all THANK YOU for all the time and care you put into this video, it is a cut above everything else I've seen!!!

  • @stark.aritra
    @stark.aritra 6 місяців тому +3

    I have never seen such an eloquent explanation of the master theorem in books or any videos, hats off.

  • @maxschikofski251
    @maxschikofski251 Рік тому +1

    Very well visualised. Good Job, Lars!

  • @stefano3618
    @stefano3618 19 днів тому

    thank you so much for the video. I really appreciate it: the topic is well and CLEARLY explained with fantastic animation.

  • @AyanKhan-dc3eu
    @AyanKhan-dc3eu Рік тому +2

    Best video on master's theorem ! Thank You so much for this.

  • @redj_dev
    @redj_dev 8 місяців тому +1

    confirmed best vid on YT about this. Saved my homework grade ty bb

  • @lukam.7575
    @lukam.7575 Рік тому

    great video, well explained and well made, making it very easy to visualize the concepts being apllied to the problems.

  • @yunoletmehaveaname
    @yunoletmehaveaname Рік тому

    Omg please post more videos. I love this!

  • @kingshukcs
    @kingshukcs 6 місяців тому

    Very good presentation and I loved your style of teaching!!

  • @user-kz1en1qj3g
    @user-kz1en1qj3g 9 місяців тому

    nice video man! Good explaination on the master theorem!

  • @emanabdelhaleem7561
    @emanabdelhaleem7561 6 місяців тому

    This is just amazing work!
    Thank you so much.

  • @samarthtandale9121
    @samarthtandale9121 7 місяців тому

    Really awesome explanation brother ... kudoes!!! You diserve so many subs!

  • @brunomoreira6416
    @brunomoreira6416 3 місяці тому

    please make more videos, engaging, easy to understand and funny, great job!

  • @tatox2167
    @tatox2167 5 місяців тому +1

    brrrruuuuh you need to create more videos this was awesome

  • @phillipsmith4220
    @phillipsmith4220 9 місяців тому

    What an incredible video. I would have saved so much time if I had found this video first! Thank you so much.

  • @ejsafara456
    @ejsafara456 Рік тому

    this is such a good explanation! :D thank you, i finally understand ^^

  • @Trohnald
    @Trohnald 4 місяці тому

    I LOVE YOU LARS THIS HAS BEEN SO HELPFUL

  • @arniedeb2305
    @arniedeb2305 Рік тому

    Holy fuck this is high quality, I'm surprised you don't have more subs

  • @Tiniku
    @Tiniku 10 місяців тому

    where have you been all my life. thank youu!

  • @powermax6391
    @powermax6391 3 місяці тому

    first time finally understanding it, thanks a lot

  • @johnwang41
    @johnwang41 Рік тому

    U are amazing, I hope u can continue to do this, it is wonderful viode.

  • @Ned_.
    @Ned_. 3 місяці тому

    great video, thanks bro

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

    This is so op wtf how do you only have 300 subs

  •  3 місяці тому

    What a great video!

  • @speedwagon1524
    @speedwagon1524 6 місяців тому

    You saved my Master's Degree! Thanks Lars, I love you!!!

  • @user-em1bq6sk7f
    @user-em1bq6sk7f 5 місяців тому

    brilliantly explained

  • @maxbill1921
    @maxbill1921 Рік тому

    This is Wonderfull.... Best explanation

  • @JS-dn9cr
    @JS-dn9cr 3 місяці тому

    make more vids pleaseeeeee this is god tier

  • @silentco2254
    @silentco2254 Рік тому +1

    can you provide your code for the animation in manim I am new to manim and I would really learn a lot from you

  • @wyatt3112
    @wyatt3112 4 місяці тому

    This is amazing. Thank you so much, Lars. Do you post videos anywhere else? I am studying "Introduction to Algorithms" by Cormen right now in school but I am much more a visual learner. Does anyone have any good playlists or outside resources to help with this material? I know a lot of folks really take to Abdul Bari's videos but I don't understand his explanations as easily as others seem to.

  • @kevalgandhi9162
    @kevalgandhi9162 10 місяців тому

    Best Video so far on MT

  • @notchicken
    @notchicken Рік тому

    This makes things so clear. Wow.

  • @sillaceestekay2069
    @sillaceestekay2069 Рік тому

    You sir are a legend!

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

    why do you only have one video??? i was so hoping to look at more :( but thanks anyway! great video

  • @lethalbacon3299
    @lethalbacon3299 Рік тому

    Please! PLEASE MAKE NEW VIDEOS ABOUT OTHER COMPUTER SCIENCE TOPICS! This video war really great and I understood the Theorem!

  • @haiphan8360
    @haiphan8360 5 місяців тому

    Time-efficient at its best!

  • @mostafayounes9490
    @mostafayounes9490 3 місяці тому

    Thank You❤

  • @user-em1bq6sk7f
    @user-em1bq6sk7f 4 місяці тому +1

    I think you are a kind person

  • @xash3000
    @xash3000 5 місяців тому

    Thank you

  • @gabriel-oc4pt
    @gabriel-oc4pt Рік тому

    bro I owe you one THANK YOU

  • @anik._.
    @anik._. 6 місяців тому

    brilliant

  • @a.m.4154
    @a.m.4154 4 місяці тому

    3:55 - "what is the depth of our tree?" - No such thing exists. You have the depth of a node, the height of a node, and the height of a tree.

    • @ilayohana3150
      @ilayohana3150 2 місяці тому

      🤓even professors would say the depth of the tree to refer to the deepest point of the tree

  • @wannabehuman.production
    @wannabehuman.production 19 днів тому

    May you live a long happy life

  • @adityagujaria2598
    @adityagujaria2598 Рік тому

    Hey nice video.!!!

  • @rea5782
    @rea5782 Рік тому

    Notification gang ☑ we lit 🔥

  • @bryanshaong2333
    @bryanshaong2333 5 місяців тому

    Where more video, hw due tmr , need help

  • @justavine487
    @justavine487 11 місяців тому

    Very strong video. You could have a bigger audience if you also uploaded your videos in german ;)

  • @wolfgangamadeusmozart3200
    @wolfgangamadeusmozart3200 8 місяців тому

    Why you have ONLY ONE video ???

  • @theali8oras274
    @theali8oras274 Рік тому

    thank you for this , my prof is garbage and im having a hard time with math

  • @JenniRocket
    @JenniRocket Рік тому +1

    Damn man I finally really get it 😂

  • @visionz831
    @visionz831 Рік тому +1

    3:16 What does he say here ? Subtitles please

    • @theali8oras274
      @theali8oras274 Рік тому

      automatic subs help.
      they get it right at 3:16

  • @gabut1839
    @gabut1839 3 місяці тому

    YOUR VIDEO IS AMAZING, BE CONSISTENT AND ULL BLOW UP SIR!

  • @ellenkoning3491
    @ellenkoning3491 Рік тому

    to few people have seen this!

  • @spooki9813
    @spooki9813 5 місяців тому

    dude thank you for this video i explained this to some autistic girl at a party and she went home w me :)

  • @jurycould4275
    @jurycould4275 9 місяців тому +1

    Bitte ende nicht als 0815-Entwickler. Das ist meine Domäne.

  • @mikhailwebb8377
    @mikhailwebb8377 9 місяців тому

    I see that you are trying to explain as best as you can, but I still don't understand. The other videos on UA-cam for Master Theorem are also garbage.