Optimization / Algorithms and structure
Dynamic Programming
Solve a big problem by solving every smaller version once and remembering the answers.
Contents 2 sections
By the end you can
- State the principle of optimality
- Write a Bellman recurrence
- Solve shortest-path and knapsack instances by tabulation
Helps to know: Recurrence Relations
§1Optimal substructure
Example 1Fewest coins for 6 with coins 1, 3, 4
- ; .
Check yourself
- Q1Dynamic programming is efficient when subproblems…