| I found this video very helpful: https://m.youtube.com/watch?v=oBt53YbR9Kk Yes, it is 5 hours long. At least 4 of those are worth it. Many people confuse caching with DP. I’ve had that conversation too often. I think it’s down to the memoization examples people choose being too toy and just looking like caching. Caching is global shared state, whereas memoization can be scoped to the current calculation and still be useful. But they always skip over tabulation, which is where I believe DP distinguishes itself. |