Knapsack
Last updated
Last updated
Knapsack problems are perfect illustrations of the spirit of dynamic programming. Optimization problems => optimal substructures. And the constraints and the price table will usually give some overlapping recursive calls.
0/1 Knapsack (size)
doability
number of ways
subsets
0/1 Knapsack (size and value)
Multi-constraint Knapsack
Combination Knapsack
Infinite Knapsack
Wikipedia -
Wikipedia -
by linspiration
by Tianyi Cui