A large museum opened an exhibit of jewelry gathered from around the world. Edward Terrenando, a thief, is planning the biggest theft of his career there.
Edward wants the total value of the stolen jewels to be as large as possible, so he has to choose carefully which jewels to take.
Edward owns one knapsack of each size 1,2,3,…,k. A knapsack of size s holds any set of jewels whose sizes sum to at most s. For every knapsack size, find the maximum total value of jewels it can hold.
The same jewel cannot go into one knapsack twice, and each knapsack is a separate problem.