Dynamic Programming

Use when solving optimization problems with overlapping subproblems and optimal substructure. Covers memoization (top-down) vs tabulation (bottom-up), classic DP problems (Knapsack, LCS, LIS, Edit Distance, Coin Change, Matrix Chain, Rod Cutting), and the DP framework. Based on Knuth's TAOCP. USE FOR: optimization problems with overlapping subproblems, memoization strategies, tabulation approaches, recognizing DP problem patterns, state definition and recurrence formulation DO NOT USE FOR: graph shortest paths (use graph-algorithms), sorting (use sorting-searching)

Tyler-R-Kendrick b07f406 12 files · 24.6 KB Updated

File contents

Tyler-R-Kendrick/agent-skills/tree/main/skills/dev/algorithms/dynamic-programming commit b07f4066c2

Frequently asked questions

npx skillmds add tyler-r-kendrick/dynamic-programming