Packing bags or the 0-1 knapsack problem