Тёмный

Solved Recurrence - Iterative Substitution (Plug-and-chug) Method 

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

This is an example of the Iterative Substitution Method for solving recurrences. Also known sometimes as backward substitution method or the iterative method.
An example of solving the same recurrence using the Tree method can be found here: • Solved Recurrence Tree...
Note that there is another method of solving recurrences that is unfortunately called the substitution method by the CLRS Algorithms Book that many R1 instructors use to teach algorithms. This other method is not a little bit like the iterative substitution method used here. It is more accurately called the "guess-and-check" method, since you make a guess about what the runtime is and then prove it by induction.
In a quick survey of the Algorithms textbooks near at hand, CLRS and Klienberg & Tardos call the "guess-and-check" method "substitution" while the books by Neapolitan and by Levin, call what I did the substitution method. Leafing through Rosen it appears to only show the substitution method, but it doesn't name it. Epp's book calls this method the iterated method and does not teach the other method.
The bottom line is that in mathematics it is often the case that a single name is used to refer to multiple things and sometimes a single thing may have multiple names. Even in the same subfield. It's important to remember this and that it's not the name that matters.

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

 

13 окт 2016

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 259   
@Bonzo632
@Bonzo632 4 месяца назад
You are the hero in the night. The dancing of the flowers in the wind. The moonlight dipping into the sand. Thank you John. On all my next exams, I will write “This one’s for John.” before all recurrence relations.
@Shefetoful
@Shefetoful 5 лет назад
Learned more in 10 minutes, than in the 2 lectures covering this, thanks.
@thetomatoes7075
@thetomatoes7075 4 года назад
They did 2 lectures to cover just this ??
@charulatha.p2782
@charulatha.p2782 3 года назад
Exactly 😂
@danielgilder8672
@danielgilder8672 2 года назад
Literally same here, only had 2 lectures
@WarmHugSeeker
@WarmHugSeeker Год назад
True LOL. Glad I found this treasure.
@allissahertz1769
@allissahertz1769 8 месяцев назад
I came here to say exactly this. Two full lectures covering this and I still was confused, and this one video and I finally get it.
@alanbiju1765
@alanbiju1765 Год назад
It's been 6 years and this still remains one of the best videos on this topic.
@bigboykazmi
@bigboykazmi 18 дней назад
In case you were wondering, this is still super helpful to people (at least, me!) 7 years later. Thanks.
@electricwatches1
@electricwatches1 5 лет назад
I learned something in 9 minutes that I couldn't learn in 3 hours while in class. Thank god people like you exist!
@gerritgerritsen2113
@gerritgerritsen2113 7 лет назад
This was really helpful. For some reason the most intuitive substitution method video I've seen. Thanks a ton.
@johnbowers5447
@johnbowers5447 7 лет назад
Thanks! Glad you got something out of it.
@AiSeii
@AiSeii 2 года назад
Out of all the videos I have watched trying to help me solve recurrences, yours has been the most helpful one and has finally helped me figure out what everything means. Thank you for explaining every step and where you got everything. Thank you so so much.
@luizlencioni6340
@luizlencioni6340 4 года назад
The best video I've ever seen about solving recurrences. Thank you.
@jesusalejandrorodriguezgar2735
@jesusalejandrorodriguezgar2735 10 месяцев назад
What my teacher could not explain in 8 hours, you did under 10 min. Thank you so much
@halfnorth
@halfnorth 2 месяца назад
I know you uploaded this seven years ago but from all the different videos on explaining this method, you're the one that did it in a clear way that I can actually understand. Thank you.
@fuudonanma1411
@fuudonanma1411 7 лет назад
I was absent my algo class of recursive algorithm / solving recurrence, and your video helped me from suffering the pain of solving recurrence problems, perfectly. Thank you for you detailed explanation and step to step tutorial.
@hydrophobicwalrus749
@hydrophobicwalrus749 4 года назад
Much more straightforward than my professor makes it out to be.
@MorganAriel
@MorganAriel 7 лет назад
This is probably the BEST recurrence relation video I've seen, thank you so much!
@johnbowers5447
@johnbowers5447 6 лет назад
Thanks, and you're welcome.
@CaptainJellyBS
@CaptainJellyBS 7 лет назад
Can I just have you as my algorithms professor?
@johnbowers5447
@johnbowers5447 7 лет назад
Yes, you can! Come to James Madison University =D, we've got lots of great CS Profs!
@ToasTeR1094
@ToasTeR1094 Год назад
You're a savior, This is so clear and concise, wish my professor had explained it like this. Thank you!
@sherazbutt6012
@sherazbutt6012 2 месяца назад
I have watched many videos about this topic but your explanation is outstanding
@GreeeenT
@GreeeenT 6 лет назад
I'm so glad I found your videos before my quiz tomorrow. Thank you !
@mundapakistani
@mundapakistani 6 лет назад
How I was struggling with this concept but you made it so simple. I Salute you Sire.
@dilaragoral2259
@dilaragoral2259 5 лет назад
I was looking for this solution for hours in the other sites. You have the best (and the most detailed) style of explanation. I really don't know how can I thank you. Shared with friends. And THANKS A LOT!!
@kedarnadkarny4718
@kedarnadkarny4718 7 лет назад
Very clear. Good job John!
@thetomatoes7075
@thetomatoes7075 4 года назад
You teach better than the Algo teacher at ETH. Great job!
@MrAbbasalrassam
@MrAbbasalrassam 5 лет назад
You are amazing ! I was stuck more than 3 days ! now got it . thank you
@Jindujun
@Jindujun 3 года назад
Best explanation on RU-vid, you just saved my day, Sir.
@johnbowers5447
@johnbowers5447 3 года назад
Glad to hear that!
@bh_umbc
@bh_umbc 7 лет назад
Very well done. Going through the 3rd step was a good call as well. Basically, the other videos on this topic are a bit too theoretical or obscure. This iterative way of performing the method is much easier to follow. Thank you!
@contrafoz
@contrafoz 5 лет назад
This video was great and was the one that helped it all finally click for me. It was essential that this example had an n outside of the T(n/2) so I could see how that was handled. Now I'm struggling to solve a recurrence that is divided into different sized sub-problems (ie: T(n)=T(n/2)+T(n/4)+T(n/8)+n, where T(1)=1) using substitution and am wishing I had another video of yours as reference.
@TheChug00
@TheChug00 6 лет назад
Best video. Super clear explanation! Great job
@bh3302
@bh3302 4 месяца назад
Dude, you are awesome. Thank you so much for how you explain each step.
@moisascholar
@moisascholar 6 лет назад
Great explanation and algorithm to go about solving these pesky recurrence relations! Many thanks.
@phillip3m
@phillip3m 5 лет назад
Very well done. Thank you John!
@FarazKhan-xd4bd
@FarazKhan-xd4bd 7 лет назад
Thankyou man. Best explanation till now i've seen.
@ashwanivarshney9406
@ashwanivarshney9406 7 лет назад
It is really helpful Thanks john I have exam day after tomorrow but I even don't know the methods of solving recurrence it is really helpful ,simple to understand and remember
@MrGeorgerocker
@MrGeorgerocker 5 лет назад
Omg the first explanation ive understood thank you so much!
@davekaushik4863
@davekaushik4863 2 года назад
Thank you for the helpful video! I appreciate the step by step process especially since math isn't the strongest subject I have. Thank you sir!
@SuperRashadWilliams
@SuperRashadWilliams 4 года назад
This so much better our teacher makes us guess big o then from there we work through to find the asymptomatic notation
@sirxavior1583
@sirxavior1583 3 года назад
This has got to be one of the best explanations. The only step that's missing which is beyond the scope of this video is the induction proof at the end to show that T(n) = O(n log n) for all n>1.
@hakancemgercek
@hakancemgercek 3 года назад
Thanks to you I have learned what I need to learn, finally.
@gunaygultekin
@gunaygultekin 7 лет назад
perfect explanation, clear to understand
@karamveeryadav8824
@karamveeryadav8824 10 месяцев назад
thanks a lot brother for this amazing 9 minutes tutorial
@redacted6673
@redacted6673 7 месяцев назад
ohh my gawddd this video ........i was searching for a video that broke this process down and finally i got it thank you good sir
@olivia0909
@olivia0909 4 месяца назад
With this video, solving recurrence by substitution is tick. Thanks for the video although its like more that 5 years since the upload, it is still helpful.
@tahamagdy4932
@tahamagdy4932 7 лет назад
Best 9 mins of Substituting
@chrisogonas
@chrisogonas 3 года назад
That was elegant and very clear. Thanks
@fahdfayed1825
@fahdfayed1825 3 года назад
First comment of my 10 years on youtube. Thank god for your existence.
@bryanarmijos5159
@bryanarmijos5159 5 лет назад
BEST VIDEO HANDS DOWN. Subbed!
@geogaddi84
@geogaddi84 2 года назад
very well done. This is what youtube is all about for me.
@sareenabaig8751
@sareenabaig8751 4 месяца назад
7 years later... thank you!!!
@rahulkher8207
@rahulkher8207 4 года назад
I'll be honest, I was NOT expecting the O(n log n) bomb at the end.
@Amy-tw3zh
@Amy-tw3zh 4 года назад
Just use limits to verify. Limit as n goes to infinity for (4n+4nlog_2 n) / (n log_2 n) , which = 4 , which means it is O(n log_2 n indeed)
@Twannnn01
@Twannnn01 4 года назад
@@Amy-tw3zh Hi, can you further clarify how you can relate 4 to O(n*log_2(n))? I understood everything up until 4n+4n*log_2(n).
@lasseskaalum6258
@lasseskaalum6258 4 года назад
@@Twannnn01 You need to compare all the joints of the expression asymptotically. It's a little hard to explain, if you don't know what it means already. But basically, it means what @Mandey just said: To compare the values, when n is infinitely high. Take a look at the graph on this page to see if you can get the picture: www.bigocheatsheet.com/
@johnbowers5447
@johnbowers5447 3 года назад
That O(n log n) thing is sneaky. Can't turn your back for a second or it'll get you.
@alvinkatojr
@alvinkatojr 4 года назад
So simply, fluid and clear. John Bowers for president!
@user-mo1gh2kg9q
@user-mo1gh2kg9q 5 лет назад
This helped me big time for preparing the mid term. Thanks!
@mse312
@mse312 5 лет назад
same , I have my midterm next week
@salmaabobakr1406
@salmaabobakr1406 5 лет назад
Excellent.. it's the best one in recursion videos
@jakobhansen9688
@jakobhansen9688 4 года назад
Thank you very much, you are great at explaining
@luisbremer9351
@luisbremer9351 11 месяцев назад
this video is a gem!
@mod_123_
@mod_123_ 4 года назад
you just saved my life, thank you
@darshilshah3941
@darshilshah3941 7 лет назад
Great work man, keep it up. THanks a ton!!
@dinklemuffin8132
@dinklemuffin8132 11 месяцев назад
This video was very helpful. Thank you
@zoe7886
@zoe7886 3 года назад
you, my friend, are a SAINT thank you
@Stevofolife
@Stevofolife 4 года назад
best example so far!
@deanbeebe74
@deanbeebe74 3 года назад
Seriously helpful - thank you so much!
@johnbowers5447
@johnbowers5447 3 года назад
Glad it was helpful!
@qR7pK9sJ2t
@qR7pK9sJ2t 5 лет назад
Extraordinary....Thank u Sir..Love from India #WeIndiaWeWin
@knanzeynalov7133
@knanzeynalov7133 11 месяцев назад
It's been 7 years and it still the best video on the RU-vid. Thanks for help!
@yazidhanniche1064
@yazidhanniche1064 3 года назад
thank you , you saved my life
@jeroen3648
@jeroen3648 3 года назад
Thank you for this video , it helped me to solve recurrence relations
@tejaskashyap1392
@tejaskashyap1392 6 лет назад
Great video! Saved me on my final!
@Utopus11
@Utopus11 5 лет назад
Thank you, helped me a lot!
@hgd2394
@hgd2394 4 года назад
thanks for this super helpful video! my professor was nowhere close to being this thorough!
@adolfocarrillo248
@adolfocarrillo248 7 месяцев назад
Thanks for sharing your knowledge, I got it.🎉
@derekliu8867
@derekliu8867 3 года назад
yep, this is the best vid on repeated sub hands down
@johnbowers5447
@johnbowers5447 2 года назад
Thanks!
@tanvirwaseer16
@tanvirwaseer16 3 месяца назад
The most intuitive way I think this one is.
@turi104
@turi104 4 года назад
good explanation. made this method very clear.thankyou
@superwendel
@superwendel 5 лет назад
Thanks a lot ! Very simple and useful !!
@asadmehmood408
@asadmehmood408 6 лет назад
This was helpful please upload more examples to solved recurance...
@kanelindsay4995
@kanelindsay4995 3 года назад
Very good practical example compared to the bad slideshow video lecture version offered at my university.
@TinieblaOscura
@TinieblaOscura 4 года назад
You are the real MVP
@clovisgu57
@clovisgu57 6 лет назад
crystal clear! thank you!
@fuckieyou2
@fuckieyou2 2 года назад
great explanation ! thanks a lot
@deveshsingh1479
@deveshsingh1479 7 месяцев назад
beautifully done
@noamansaleem3755
@noamansaleem3755 6 лет назад
Awesome Bestest Video on Sbstitution Method
@hemihobo
@hemihobo 6 лет назад
Great walk through thank you
@datim8540
@datim8540 Год назад
Insane video🙏🏻
@AuraRazor
@AuraRazor 3 года назад
this was very helpful, thanks
@robertsedgewick1266
@robertsedgewick1266 3 года назад
This video is a gem. This is how to teach!
@johnbowers5447
@johnbowers5447 3 года назад
Thanks, glad it helped.
@krishnarathod6389
@krishnarathod6389 6 лет назад
Thank you..It is helpful...keep uploading
@daminatownes124
@daminatownes124 7 лет назад
Thanks this was really helpful!
@MrAlbashiri
@MrAlbashiri 6 лет назад
you are the best. thank you very much for the amazing video
@aditi3586
@aditi3586 Год назад
omg thanks for this explanation!!
@PapaDragon750
@PapaDragon750 Год назад
Loved it. Thanks
@sahrishaltafkhan5041
@sahrishaltafkhan5041 5 лет назад
Thank You so much this is really helpful
@samanthafuquay6010
@samanthafuquay6010 4 года назад
Thank you for this video !!!
@Oh_ahhh_hangee
@Oh_ahhh_hangee 5 лет назад
Thank you so much, it helps me a lot! ^^
@muhammadumairkhan8435
@muhammadumairkhan8435 6 лет назад
Thank you very for making it so easy for me.
@RosieSuh
@RosieSuh 2 месяца назад
You are the best, ever
@Azanali-kq5uy
@Azanali-kq5uy 7 лет назад
Really I understand very well
@VladTheLycan
@VladTheLycan 5 лет назад
Thanks a lot mate !
@aditric
@aditric 10 дней назад
You're awesome!
@sabazubair9971
@sabazubair9971 6 лет назад
thnx . this is the best video for recurrence
@korany07
@korany07 5 лет назад
wow explanation is GOOD AF
@aigerimzhanabayeva9909
@aigerimzhanabayeva9909 10 месяцев назад
very very helpful!
@u4awesome
@u4awesome 7 лет назад
Life Saver!! Thank u much!
@elie3423
@elie3423 5 лет назад
I liked. I subscribed. I pressed on the bell. I shared the video.
@Fr33xII
@Fr33xII 4 года назад
Thank you so much
Далее
Solved Recurrence Tree Method
6:30
Просмотров 440 тыс.
Моя первая СТИЛЬНАЯ ТАЧКА!
44:58
Просмотров 608 тыс.
My little bro is funny😁  @artur-boy
00:18
Просмотров 8 млн
🎙️ПЕСНИ ВЖИВУЮ от КВАШЕНОЙ💖
3:23:13
Recursion Tree Method
32:41
Просмотров 150 тыс.
Recurrence Relation Proof By Induction
7:42
Просмотров 72 тыс.
2.1.1 Recurrence Relation (T(n)= T(n-1) + 1) #1
13:48
In 2003 We Discovered a New Way to Generate Primes
22:17
Моя первая СТИЛЬНАЯ ТАЧКА!
44:58
Просмотров 608 тыс.