What Dynamic Programming Actually Is: Overlapping Subproblems and Optimal Substructure
Dynamic programming has the worst name in computer science. It's not particularly dynamic; it's not programming in the modern sense. Richard Bellman (who invented it in 1953) pick…