Тёмный

5 Simple Steps for Solving Any Recursive Problem 

Reducible
Подписаться 289 тыс.
Просмотров 1,3 млн
50% 1

In this video, we take a look at one of the more challenging computer science concepts: Recursion. We introduce 5 simple steps to help you solve challenging recursive problems and show you 3 specific examples, each progressively more difficult than the last.
Support: / reducible
This video wouldn't be possible without the open source manim library created by 3blue1brown: github.com/3b1...
Here is link to the repository that contains the code used to generate the animations in this video: github.com/nip...
Music:
October by Kai Engel freemusicarchi...
November by Kai Engel
freemusicarchi...
Cobweb Morning by Kai Engel
freemusicarchi...

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

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1,1 тыс.   
@Reducible
@Reducible 4 года назад
For those of you who enjoyed this video on recursion, here's a new video on the famous Towers of Hanoi problem I made related to the topic. This is a more advanced recursive problem and I try to approach it from a different perspective with some additional helpful tips. Check it out at ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rf6uf3jNjbo.html&t
@stv3qbhxjnmmqbw835
@stv3qbhxjnmmqbw835 4 года назад
I don't know about the others, but tower of Hanoi is one the the easiest recursive problem I've ever solved. Maybe that day was my day... It's simple logic. Like if you want put n+1 disks to leftmost, first put n disks to middle, then put largest plate on leftmost, then put n from middle to leftmost. As simple as that....
@kpw84u2
@kpw84u2 3 года назад
Your first statement that it is the hardest topic in computer classes to learn is categorically wrong. And I am proof.
@SimGunther
@SimGunther 3 года назад
@@kpw84u2 Because clearly the hardest topic of all time is reversing linked lists or binary trees LOL
@sammyskye9498
@sammyskye9498 3 года назад
Ah yes, the 3Blue1Brown of comuter science. Keep up the excellent work!
@miroslavdanilov902
@miroslavdanilov902 3 года назад
how can I understand and dont undrestand in the same time?
@victorscarpes
@victorscarpes 3 года назад
How to solve a recursion problem: solve the recursion problem.
@overloader7900
@overloader7900 3 года назад
My mathematical intuition tells me that this is not a recursion
@victorscarpes
@victorscarpes 3 года назад
@@overloader7900 recursion is defined as something that is defined in terms of itself. Like if i define the following function f(t) = f(t - 1) × f(t - 2). I could define another function in the following way, g(t) = g(t). This isn't helpful at all, but it's a function defined in terms of itself.
@overloader7900
@overloader7900 3 года назад
but func a(){a();} does literally nothing... Does it mean that it is impossible to solve recursion?
@victorscarpes
@victorscarpes 3 года назад
@@overloader7900 it's not that it does nothing, is just that we don't have enough information to know what it does. And just because this specific case of recursion isn't solvable, doesn't mean that every recursion problem isn't as well. It's like saying that the equation x = x + 1 doesn't have a solution and then concluding that no equation has solutions.
@ozargaman6148
@ozargaman6148 3 года назад
Thanks, but how do I solve the recursion problem?
@DesertRose124
@DesertRose124 3 года назад
I always tell my students in recursivity we break an important rule. It's one of the problems where we tell the computer what to do but not how to do it. You teach the computer how to solve the base cases and give it the formula of the general case.
@Reducible
@Reducible 3 года назад
Yeah that's a great perspective! Thanks for sharing!
@Green24152
@Green24152 3 года назад
"we tell the computer what to do but not how to do it." Sounds like a bad idea.
@DesertRose124
@DesertRose124 3 года назад
@@Green24152 really! Why?
@Green24152
@Green24152 3 года назад
@@DesertRose124 Wasn't saying you were bad, just that telling a computer/A.I. what to do, but not how, usually results in the entire universe becoming paperclips.
@Raging.Geekazoid
@Raging.Geekazoid 3 года назад
@@Green24152 Given that most of the people who write compilers know more about programming than the average application-level dev, I don't see any problem with it. Logic languages like Prolog go even further: All you have to do is specify the logical structure of the problem; the compiler will write all of the imperative-level code for you. Not to mention SQL, which does that for databases. They're called 4GLs (fourth-generation languages).
@premk191
@premk191 4 года назад
This is best video I found on youtube. Keeping making videos like this. Thank You.
@Reducible
@Reducible 4 года назад
Thank you, I appreciate the kind comment! New videos coming in the near future :)
@chandraprabhat3496
@chandraprabhat3496 4 года назад
@@Reducible sir please explain tower of hanoi(TOH) problem in same way i can not relate you idea to solve for TOH problem.
@Reducible
@Reducible 4 года назад
@@chandraprabhat3496 Next video is going to be on Towers of Hanoi! Your comment gave me the idea, so thank you! Stay tuned for that video!
@karanpaul5525
@karanpaul5525 3 года назад
Bhai mereko kuch samaj nahi aara...😭
@user-wc1sm8cj8s
@user-wc1sm8cj8s 3 года назад
Great Explanation. I didn't understand it at first, then, I took a rest, and for some other reason, I went back here again, and what a miracle. I just understood the concept in no time. How could that be?
@kevinthai6777
@kevinthai6777 3 года назад
mad lad
@Fakipo
@Fakipo 3 года назад
Sometimes a well rested mind leads to epiphany
@Arielkun14
@Arielkun14 3 года назад
There's actually an explanation for that. Your mind has a thread running on the background. When you stop thinking about a problem that thread takes it and processes it. If you want to know more, Coursera's Learning How to Learn explains that (it doesn't call it thread though).
@anonymous_4276
@anonymous_4276 3 года назад
As someone has mentioned, when we really think deeply about something yet still don't get it and take a rest, a part of our brain is still fixated on that topic. So when we return back, we may have the answer to it.
@pearz420
@pearz420 2 года назад
I guess your brain working is a miracle?
@yashsinghal8820
@yashsinghal8820 4 года назад
The animation, explanation, everything about this video is top notch. I am actually surprised this is on RU-vid. This deserves to be a part of a paid course. Much thanks man!
@hihm8169
@hihm8169 6 месяцев назад
Every other recursion tutorial only uses factorial or fibonacci as examples, but I love how you use more complex examples with amazing visual animation. Thank you so much for this video, I think I finally have a firm grasp on recursive problems!
@emreturker4175
@emreturker4175 3 года назад
*enlightening music playing in the background with crystal clear explanation of recursive functions* me : 👁️👄👁️
@Sarah-re7cg
@Sarah-re7cg 2 года назад
These visuals help a lot a lot for people with ADHD, thank you so much
@info662
@info662 2 года назад
I thought I was the only one who struggled with recursion
@christopherraris8667
@christopherraris8667 3 года назад
First time in my life I experience flow state during study. I was so immerge in learning even I forgot my snacks. Thank You so much man!!! Love you always! Be Happy.
@jacksonwang3974
@jacksonwang3974 4 года назад
I'm literally about to cry rn Thank God for guiding me to this video! This video is beyond magical
@SHY-sx8rm
@SHY-sx8rm 3 года назад
As a student studying programming.. This is the best lecture ever clearly described and explained recursion. Thank you Reducible!! Liked and subscribed!
@kartikpodugu
@kartikpodugu Год назад
Must watch for everybody who wants to solve any problem using recursion. It is not easy to make it easy for others, but you did it. Really appreciate your effort.
@TheBrotherHolmes
@TheBrotherHolmes 4 года назад
I'm taking an algorithm course on "LinkedIn Learning" and the teacher vaguely skims over this and only confused me. Then watching your video made things just click and felt refreshing like a nice glass of water! Thank you so much for taking the time to make this amazing video!
@Reducible
@Reducible 4 года назад
Thanks, I appreciate the kind comment!
@howchen8529
@howchen8529 4 года назад
Thank you! My university never really taught me what to think about when doing these recursion problems. Now I have a path I can follow. You are the best.
@drivethelightning
@drivethelightning 2 года назад
I completed the sololearn course and still had no idea what I was doing till you showed step 3 and 4. This is the kind of like "engineering" that I often lack. From now on if anyone has a recursion question I'm going to refer them to this. I was starting to think I had reached a mental wall and had exhausted my intelligence. Thank you.
@gigipour5740
@gigipour5740 20 дней назад
How cool is that 🙌🏻 going forward and then working it backwards 🙌🏻 visualzing patterns
@kpw84u2
@kpw84u2 3 года назад
I loved learning recursion and it wasnt the hardest subject to learn in computers. It actually made the most sense to me.
@patrickmayer9218
@patrickmayer9218 2 года назад
The 5 steps: 1. Find the simplest case (base case) 2. Play around with examples and visualize. 3. Relate the harder cases to the simpler cases. 4. Generalize pattern. 5. Combine recursive pattern with base case using code.
@recepcanakdemir1558
@recepcanakdemir1558 Год назад
Basically induction
@patrickmayer9218
@patrickmayer9218 Год назад
@@recepcanakdemir1558Yes!
@sebastianxu2631
@sebastianxu2631 14 дней назад
Absolutely the best tutorial video I've ever seen! Keep going on bro
@nikhil6842
@nikhil6842 4 года назад
Liked, subscribed and shared. Even my friends asked me to thank you for such a fabulous video. Had been struggling with recursion for quite some time. Most of the tutorials focus more on code rather than concepts. With Love from India
@kikijammer
@kikijammer 2 года назад
Traversing Trees and Graphs with recursion confused the hell out of me. Ty for the video
@neeyatiajmera869
@neeyatiajmera869 4 года назад
This was by far the BEST explanation on recursion I've ever seen. Thank you so much!!!!
@niemandisthier3227
@niemandisthier3227 Год назад
this is one of those videos you get from time to time, that marks the next step of your learning journey.
@pierce3992
@pierce3992 3 года назад
thank you for these videos. i cant believe you don't have more views/subscribers for the level of quality work you're putting into these visualizations. its like a combination of Zach Star and 3blue1brown. im still struggling with recursion but ill keep practicing and trying to apply these steps
@Reducible
@Reducible 3 года назад
That is some high praise! Thank you! And yeah, like with anything difficult but worthwhile, it takes some time. Enjoy the process!
@youtubehandlesux
@youtubehandlesux 2 года назад
Sometimes the only thing needed is just a little nudge. Was stuck with a problem that I don't know how to program recursively, watched the first 3 minutes of this video and suddenly figured it out. Very pog, awesome video
@youtubehandlesux
@youtubehandlesux 2 года назад
probably would stick with deque and for loop in the future though, recursion still costs too much brain juice for me and this time I was just lucky that the code's bug-free first try
@user-iu1xg6jv6e
@user-iu1xg6jv6e 3 года назад
10:26, More intuitive is to start moving one step then continue recursively, you can move either right or down, moving right will leave us with a m-1 * n grid, moving down will leave us with m * n-1 grid...
@brahamaggarwal1800
@brahamaggarwal1800 2 года назад
I never really share videos but this is an exception
@manjunadhkandavalli1017
@manjunadhkandavalli1017 3 года назад
Great Video buddy!Your video helped me realise the strong correlation between maths and CS.I am trying to figure out a solution for my problem for the last three years and your video gave me the exact direction to proceed.Please continue to make videos like these
@yasamindev
@yasamindev 6 месяцев назад
The hardest part yet is finding the pattern and generalizing, but these examples were helpful in stablishing the mindset. Thank you for this video❤
@gachle
@gachle Год назад
As of now, the only thing I can do to pay you back for this amazing and beautiful video explanation is to like it and share it with my Intro. to Programming classmates. Thank you!
@irockrock44
@irockrock44 4 года назад
you're genius! one of the best tutorial on recursion!
@triprjt7857
@triprjt7857 2 года назад
one of the super extra special video which actually taught me something which I can take out with me
@VirajChokhany
@VirajChokhany 4 года назад
Amazingly explained Sir. Please do make a complete playlist for recursive implementation of problems. It will help all of us immensely.
@Reducible
@Reducible 4 года назад
Thanks for the comment, I have a couple more recursion related ideas on future videos so stay tuned! :)
@Krish-or5kh
@Krish-or5kh Год назад
Wow 😳 amazing visualisation with simplest path thanks lot ❤️
@sandipchanda6522
@sandipchanda6522 4 года назад
Thank you. Amazing video. This is one of the best explanations I have ever seen in youtube. Keep making more such videos.
@supersakib62
@supersakib62 7 месяцев назад
How easy and intuitive this video is! Those steps really helped me to understand recursion better and to apply in Dynamic Programming top down approach. For me, step 2 & 3 takes time, to find the pattern and how one case relates to another. Overall, the smooth animation and explanation really made this video one of my favourite.
@justingolden21
@justingolden21 3 года назад
19:00 it's like a chirstmas tree
@__silver__1465
@__silver__1465 2 года назад
finally understood what recursion is about after months of trying and quitting everytime out of frustration after 10 mins thanks
@jayantverma6196
@jayantverma6196 4 года назад
This was such a hard topic for me and the way you taught this really hard topic was amazing. I just subscribed to your channel. Please upload more videos.
@Reducible
@Reducible 4 года назад
That's the goal! I'm happy to hear that this video was helpful and thank you for subscribing! More videos are coming in the near future!
@zubleo8590
@zubleo8590 2 года назад
One of the best video out there for solving recursive problem
@R7CKB
@R7CKB Год назад
As a foreigner, I'm glad someone can make recursion so clear, thank you, your video is really great
@alejrandom6592
@alejrandom6592 Год назад
It's interesting to see the relation of the second problem to Pascal's triangle. If you rotate your rectangle so your starting point is at the top, then every path is a series of decisions of going either left or right (always downwards). You can see that, just as in pascal'´s triangle, every case can be calculated by adding the two cases above it. The mathematical solution is just choose(n+m-2, n-1)
@taylorwade1537
@taylorwade1537 2 года назад
This video is so visually pleasing
@sonashubhamvats6317
@sonashubhamvats6317 4 года назад
wait, this is not recursion, this is magic!!!
@t-distributedkid3825
@t-distributedkid3825 Год назад
This is liberating stuff! It's like some mental blocks are being cleared off in my head. This is crazy good! Love you, bro!!!
@linyerin
@linyerin 2 года назад
I think one reason that recursion is hard for beginners is that it is difficult to debug. When I had difficulty understanding an algorithm, I would go step by step to learn how it works. For recursion, I find it really hard to do similar work to it.
@sowhardobinatik4348
@sowhardobinatik4348 Год назад
I face the same problem
@eyeteeee9507
@eyeteeee9507 Год назад
What can you say about it now?
@linyerin
@linyerin Год назад
@@eyeteeee9507 You mean how I solve recursion problems now? I memorized multiple templates to solve them. There are not many different types of recursion problems out there and many recursion problems share the same core techniques. This works enough for me, but still, I don't think I fully understand it.
@moodyFC
@moodyFC 11 месяцев назад
loved the last problem; it cost me an afternoon to figure out the rule by myself, but it was worth it.
@harshittomar1321
@harshittomar1321 3 года назад
This is 21 minutes video but I took couple of hours and some breaks in between to complete this video by understanding the intuition behind each step when solving the problem. Especially the last problem took much time to get a better understanding. But, This video is great. The Animations helped a lot. Keep making this kind of content. I would appreciate if you a video on when to use Recursion to solve problem. By the way, Thanks for this video on how to do recursion.
@nafidhimas2340
@nafidhimas2340 3 года назад
Recursive isn't that bad, I'M that bad
@sidharthraj340
@sidharthraj340 3 года назад
You really worked hard on animations in this video . Hats off. I was lost in watching animations in later part of the video.
@kayd2143
@kayd2143 Год назад
Great video I finally understand the concept of n-1 in a matter of 4 minutes.
@DanielDaniel-xz2yp
@DanielDaniel-xz2yp 3 года назад
This was great but it also should be noted that recursive functions that always return the same value for the same input should ALWAYS use a *memoize decorator* It can make even the most inefficient recursive function to run in 1% of the time
@bogdanmazur3256
@bogdanmazur3256 Год назад
For people struggling with recursion I would highly recommend this book: A Common-Sense Guide to Data Structures and Algorithms: Level Up Your Core Programming Skills. The author gives the best and easiest explnations of recursion I've ever seen.
@Bakasta170
@Bakasta170 4 года назад
Man, this channel is ridiculously underrated !!!!
@Dev-zr8si
@Dev-zr8si 4 года назад
holy shit is this amazing. keep making more!
@moosegoose1282
@moosegoose1282 2 года назад
the leap of faith is what i needed to hear, i always hate using recursion because i literally don't know what has or has not been evaluated.
@Oscar1618033
@Oscar1618033 3 года назад
What about going from recursive functions to tail-recursive ones?
@ed3137
@ed3137 Год назад
thank you very much, I'm learning cs50 and strugling at recursion for 2 days, and this video help me to understand the concept after watching the first 5 mins. Nice vizualization!
@CST1992
@CST1992 3 года назад
When I saw the thumbnail, I thought we were going to design Tetris blocks :(
@avocode1487
@avocode1487 3 года назад
This guy is a recursion god......I banged my head for a long time to fully understand recursion, which made me scared of using recursion in my code, but now I understood the whole picture of it. Thanx Man!
@dagudelo88
@dagudelo88 5 месяцев назад
What an awesome video, I was struggling to understand recursion until I saw this video. keept them comming
@evanbarnes9984
@evanbarnes9984 2 года назад
How cool that this is made with Manim! I need to learn that library
@Ganerrr
@Ganerrr 3 года назад
>using sum as a function name pain
@michil.1192
@michil.1192 3 года назад
what name would you use
@Ganerrr
@Ganerrr 3 года назад
@@michil.1192 something that isnt a function already
@MrGryph78
@MrGryph78 3 года назад
@@Ganerrr what is in a particular namespace already is a specific language/environment thing, using a generic name like sum in pseudo-code like as done here, isn't an issue, don't be such a pedant.
@emanonvolmodaoist686
@emanonvolmodaoist686 3 года назад
@@MrGryph78 Can't agree more.
@nayanasalaliya5253
@nayanasalaliya5253 2 года назад
what an explanation! you are amazing,fantastic,mind-blowing,fabulus and what not
@indianjitsingh8838
@indianjitsingh8838 3 года назад
I am currently attending university and these are the exact same examples that were used when we were learning recursion. This video is easier to understand.
@amitghatage4413
@amitghatage4413 Год назад
These explanation opened my mind to whole new world
@qing2034
@qing2034 2 года назад
I hit the upvote when I see "recursive leap of faith". This trick is deeper than it seems and worthed the money
@leepakshiyadav1643
@leepakshiyadav1643 3 года назад
Steps covered for solving recursion: 1) What's the simplest possible input? (Base case) 2) Play around with some examples and visualize 3) Relate larger examples with smaller examples 4) Generalize the pattern 5) Write code by combing base case and recursive pattern
@AdityaKushwaha-r5l
@AdityaKushwaha-r5l 3 года назад
Commenting to bookmark it :)
@leepakshiyadav1643
@leepakshiyadav1643 3 года назад
@@AdityaKushwaha-r5l great 😂
@snowglider400
@snowglider400 4 года назад
Thanks a lot best example ever. Every other youtuber jumps to the code and not spend time on the problem space.
@pragatidharmale2733
@pragatidharmale2733 Год назад
I had been struggling to understand recursion from long. You cleared my doubts. Thank you very much.
@AshishKumar-qy5em
@AshishKumar-qy5em Год назад
watch kunal kushwaha recursion videos
@AshutoshKumar-de8wn
@AshutoshKumar-de8wn 3 года назад
Best tutorial I ever saw in my life
@alexjbriiones
@alexjbriiones 2 года назад
The recursive video is pure genius. Who are you? MIT guy?
@darkhacks5743
@darkhacks5743 3 года назад
Oh wow thanks it taught me a lot, I was able to make a function that will generate all the paths not just the number of paths here is the code: def paths(n, m): if m == 1: return [[[1] * n]] if n == 1: return [[[1] for _ in range(m)]] p1 = paths(n, m - 1) for path in p1: path.append([0] * n) path[-1][-1] = 1 p2 = paths(n - 1, m) for path in p2: path[-1].append(1) return p1 + p2
@sahiljaiswal2904
@sahiljaiswal2904 3 года назад
i challenge no one can provide this type of visulition on recursion on you tube one of the best video on recursion
@kaustubhsonar4613
@kaustubhsonar4613 3 месяца назад
am i stupid or it is hard?
@DREWGRATITUDE
@DREWGRATITUDE Месяц назад
Honestly the best thing you can do is practise. Start simple then gradually increase difficulty. You are not stupid, anyone can understand it. Never compare yourself to others and learn at your own pace.
@Semma_Bore
@Semma_Bore 26 дней назад
You are not stupid. We just need to think differently. Which will come with practice and solving more problems using recursion
@usrrrrrrr5677
@usrrrrrrr5677 2 года назад
this is probably the greatest recursion video i have watched, thank you so much
@TanmayGejapati
@TanmayGejapati 10 месяцев назад
this is byfar the best video ive ever watched on any CS topic whatsoever, keep up the good work!!
@tedioushugo
@tedioushugo 3 года назад
The BEST recursion explaination I have ever seen. Thank you !!!!!!
@pruthvipatel8720
@pruthvipatel8720 2 года назад
Best video on recursion! Saving this for future reference
@gytzero
@gytzero Год назад
Managed to solve the last problem myself before the full video! Using the approach mentioned ofc, very helpful
@carlosjacobfield-sierra3759
@carlosjacobfield-sierra3759 4 года назад
This channel can get big with this quality of videos keep it up
@Omar45
@Omar45 3 года назад
This is the best video talking about recursion on RU-vid Thanks man!
@gauravpathak560
@gauravpathak560 3 года назад
I am stuck in recursive problem but, your explantion really wow.
@scriptkiddie6151
@scriptkiddie6151 3 года назад
Very underrated channel! I hope this channel grows quickly.
@kaustavbasak577
@kaustavbasak577 3 года назад
You deserve a noble prize for this video. Respect 💯
@anjelpatel36
@anjelpatel36 4 года назад
I love the videos you make Mr. Anderson...Oh wait, wrong channel.
@user-gp8fr1nd3w
@user-gp8fr1nd3w 4 года назад
I struggled with recursion for so long. It finally clicked thx to this video!
@Reducible
@Reducible 4 года назад
Comments like this one are really awesome! I'm glad that this video was able to give you that "aha" moment, that's what it's all about at the end of the day.
@user-gp8fr1nd3w
@user-gp8fr1nd3w 4 года назад
Reducible I think it’ll also be cool if you do another video where you show how this type of thinking about recursion translates to other applications such as binary search and trees! I’m watching your other videos in the DS series and they’re pretty cool as well 👍
@Reducible
@Reducible 4 года назад
​@@user-gp8fr1nd3w Yeah, I agree that it's a good idea and it's definitely something I want to try to tackle in the future. To give you some inside info on my thought process on trees, the challenging aspect with presenting tree problems is it's tough to find (at least in my experience) some really engaging set of problems that aren't just a variation of traversing the tree in some manner with some constraints. In many ways tree traversal is just another way to do graph traversal, which I am making videos on. Also tree representations as a data structure could be an entire video on its own. And lastly and probably the biggest factor, when I've played around with animations of these ideas with trees, I just wasn't too happy with how they turned out, but if I find something that I'm excited about going through, I'll try to make a good video about it.
@user-gp8fr1nd3w
@user-gp8fr1nd3w 4 года назад
Reducible I see that makes sense! Trees are definitely a subset of graphs and I agree that the applications are essentially a variation of the traversal, but I think there are other applications, such as checking whether a tree is a BST requires knowing beyond the traversal. The brute force way would be to use nested recursion, essentially traversing more than once. And the efficient method brings it down to just a traversal, but the problem is how to think about the efficient method, and how also be able to do the brute force way for a better understanding. So I think while the final answer is really a variant of traversal, the thought process can be challenging. It’s really about learning how to think and approach the problem. Sorry I’m in no way telling you what you should do, but I hope this offers some perspective.
@Reducible
@Reducible 4 года назад
​@@user-gp8fr1nd3w Ha funny enough, the check if a tree is a BST was the one example that I was taking a look at since it is different from standard tree problems so I totally agree with you there. I've seen a lot of videos about this particular problem on RU-vid since it's kind of the "classic" BST problem so I wasn't sure if people would be engaged by my approach to the problem. But maybe it is a good example if other folks like you are interested in it. I'll keep that problem in mind for the future. And no problem, I appreciate comments and suggestions such as this one since it helps me get a sense of what my audience is interested in so feel free to let me know if there's anything else you would like to see!
@ridlr9299
@ridlr9299 2 года назад
For me, the last one seemed really hard at first, and then in a single moment the whole solution just popped into my head out of nowhere
@PanthereaLeonis
@PanthereaLeonis 2 года назад
Isn't that epiphany the best feeling as a student? Whether casually or devotedly, something suddenly *clicking* like that is a great feeling!
@rajsmasher5257
@rajsmasher5257 3 года назад
This is the best explanation of recursion I have watched in RU-vid till now. Really great job sir. Thanks a lot.........
@Reducible
@Reducible 3 года назад
Thank you! Glad you found it helpful!
@prasanth886
@prasanth886 Год назад
On the unique paths solution, before I couldn't get through as to why if m=1 or n=1 ==> 1. (07:42) The explanation for that and the rest was clean and precise. Thank you!!
@tristanlee1171
@tristanlee1171 2 года назад
That was the most useful video I have every watched. I really love the 3blue1brown vibes. Keep up the good work!
@t3chgeek
@t3chgeek Месяц назад
My ADHD brain was trippin on those examples, I think I got it now. This video was one of the most helpful things I found. The grid example was gold! Thanks for this explanation
@shreerammoopanar2354
@shreerammoopanar2354 2 месяца назад
a big salute to the master piece
@Jokaanan
@Jokaanan 2 года назад
I am a very recursive thinker and, I think like a lot of other recursive thinkers, I struggle with my mental health. So I'm watching this video to see if I could apply any computer science strategies to my cognition :)
@doBobro
@doBobro 3 года назад
Marvelous visualizations! Here is my take on path problem. Something like "formal" approach. You can get to right bottom corner only by from left and top cell. And paths count to these cells are path_grid(n, m-1) and path_grid(n-1, m).
@mfilipelino
@mfilipelino 3 года назад
Simplest the best recursive video out there
@elhamnazif
@elhamnazif 2 года назад
This is an awesome video on recursion, I used to wonder why we need recursion, but seeing how simple the code is makes me appreciate the beauty of it.
@sakumas1183
@sakumas1183 8 месяцев назад
I'm only 4 minutes in and now I can finally relate the similarities between recursion and induction proofs... I feel like all the theory I learned in school is finally putting itself to use
@ulugbekkirgizov452
@ulugbekkirgizov452 Год назад
the explanation is absolutely unique !!!
Далее
Towers of Hanoi: A Complete Recursive Visualization
21:13
Programming Loops vs Recursion - Computerphile
12:32
Просмотров 1,5 млн
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Просмотров 1,8 млн
Fast Inverse Square Root - A Quake III Algorithm
20:08
Someone improved my code by 40,832,277,770%
28:47
Просмотров 2,5 млн
10 Math Concepts for Programmers
9:32
Просмотров 1,9 млн
How I would learn Leetcode if I could start over
18:03
Просмотров 545 тыс.
Premature Optimization
12:39
Просмотров 809 тыс.
before you code, learn how computers work
7:05
Просмотров 369 тыс.