GATE Computer ScienceModerateGATE CSE

In a 0/1 knapsack of capacity 11, the items have (weight, value) = (3,3), (4,4), (5,4), (9,10), (4,4). What is the maximum total value?

  1. A. 10
  2. B. 12
  3. C. 13
  4. D. 11

Correct answer: D. 11

The standard DP table gives an optimum of 11 for capacity 11.

More Algorithms questions

Exams that ask this topic