0/1 Knapsack

Maximizes value under a weight limit where each item is taken whole or not at all, via a DP table.

Intermediatedynamic programmingtabulationoptimizationNP-hard (pseudo-poly)
Loading visualization…