grokking-algorithms/chapter11
2024-01-19 17:21:42 +00:00
..
camping.py refactor format_and_print() 2024-01-16 17:19:45 +00:00
knapsack.py refactor format_and_print() 2024-01-16 17:19:45 +00:00
README.md add some notes 2024-01-19 17:21:42 +00:00
subsequence.py rename vars 2024-01-18 01:18:01 +00:00
substring.py rename vars 2024-01-18 01:18:01 +00:00
travel.py refactor format_and_print() 2024-01-16 17:19:45 +00:00

Dynamic Programming

A programming technique for decomposing a problem into smaller discrete subproblems.

  • Useful when trying to optimize something given a constraint.
    • Example, items in a knapsack of size W that gives the greates value.