Policy iteration vs value iteration.
mediumAnswer
- Policy iteration: alternate (a) policy evaluation , (b) policy improvement .
- Converges in finite steps.
- Value iteration: V ← (r + γ V(s')) repeatedly — combines both in one step.
- Value iteration is a special case of policy iteration with only one evaluation sweep.
- Both are dynamic programming, require the model.
Check yourself — multiple choice
- Same thing
- PI: alternate eval-until-convergence + greedy improvement (finite steps); VI: V ← (r + γ V(s')) one step (special case of PI); both are model-based DP
- Random
- Not real
PI: eval + improve alternation; VI: one-step Bellman iteration.
#theory
Practise Reinforcement Learning
214 interview questions in this topic.