knapsack

Dynamic Programming: Knapsack Problem

1335 words/7 min read

Dynamic Programming is an algorithmic technique to solve constrained, combinatorial optimization problems. The Knapsack here is a metaphor for the constraint. The ‘knapsack’ might as well be a container ship.