1 Intro Dynamic Programming
1 Intro Dynamic Programming
Carlos Lizama
March 14, 2022
1
Dynamic Programming
• We will look more deeply at dynamic programming in the future. Today, we only cover
basics to get some intuition.
2
The shortest path
• Interpretation?
3
Find the least-cost path
• Let J(v) denote the minimum cost-to-go from node v. i.e., the total cost from v if we
take the best route.
where Fv is the set of nodes that can be reached from v in one step and c(v, w) is the cost
of traveling from v to w.
4
The Bellman Equation
• If we knew the function J, the problem seems pretty simple. How to find J?
• The function J is also called the value function, v is the state. The solution
5
Solving for J