Planning vs learning
Dynamic programming (DP) sits at the planning end of the RL spectrum. You have full access to the MDP tuple and want to compute the optimal policy without interacting with the environment. Real problems rarely give you the true — but DP is the foundation everything else builds on, and modern model-based RL methods learn and then plan inside it.
Two key objects: the optimal value function and the optimal action-value function . Once you have either, extracting the optimal policy is trivial: .
