Glossary
Dynamic programming
Dynamic programming (DP) applies when subproblems repeat and optimal solutions compose from optimal subsolutions. Define state, transition, and base cases out loud. Bottom-up tabulation and top-down memoization are both acceptable when explained clearly.