Skip to main content
Memoization

Memoization

Search complete. 1 mention across 1 episode found for "Memoization".

Sep 5, 2026

Shriram KrishnamurthiGUEST
36:10
If I choose not to stash, I'm going to spend time and save space, right? Essentially, that's the trade-off here, right? And it's very clear to explain with memoization.
Shriram KrishnamurthiGUEST
36:19
And then you can say, OK, but now if you look at the structure of the memoization problems, there's this interesting duality that if you really stare at the structure of memoization, you realize there's actually a trade-off.
Shriram KrishnamurthiGUEST
36:31
Do I want to check whether I've already solved the subproblem or not? Do I want to compute bottom-up or top-down? Memoization is a top-down, depth-first process.
Shriram KrishnamurthiGUEST
36:41
So you can ask, well, what if I wanted to work bottom-up instead? Well, you're going to have to rewrite your problem to express it bottom-up.
Shriram KrishnamurthiGUEST
36:48
But if you do it bottom-up, you can go bottom-up breadth first and that's called dynamic programming.

We value your privacy

We use cookies to understand how you use our platform and to improve your experience. Click “Accept All” to consent, or “Decline non-essential” to opt out of non-essential cookies. Read our Privacy Policy.