News for hackers. Stuff that matters.
Re:Understanding "Dynamic Programming" it's not referring to... by thaumasiotes on Monday July 21, 2025 @03:47AM (#44632710)
> Elevating "memoization+recursion" to "dynamic programming" seems like a development that Bellman didn't anticipate

Well, it also isn't a development that happened. You can (always) implement dynamic programming as recursion with memoization. But an algorithm that is recursive and memoized isn't necessarily an example of dynamic programming.

The point of dynamic programming is that you set up the recursion so that recursive calls do hit the cache, not that there is a cache and if you're lucky they might hit it.

Re:Understanding "Dynamic Programming" it's not referring to... by zelphirkalt on Monday July 21, 2025 @05:13AM (#44633188)
Usually though when using recursion to solve an algorithmic problem, people memoize results they know will be needed later again. So in most cases that should automatically become the same thing in practice.