YOUR SUBJECT ENG503 Introduction to English Language TeachingChange subject ↗
Fundamentals of Algorithms

Question #188

Read the question, compare the options, and review the correct answer below.

CS502 · Final-term only#188

Suppose we have three items as shown in the following table, and suppose the capacity of the knapsack is 50
i.e. W = 50.
Item Value Weight
1 60 10
2 100 20
3 120 30
The optimal solution is to pick

  1. A
    ? Items 1 and 2
  2. B
    ? Items 1 and 3
  3. C
    ? Items 2 and 3 (correct)
  4. D
    ? None of these
Show correct answer

Correct answer: C. ? Items 2 and 3 (correct)

Check community answers against your course notes.
← More practice questionsTake a timed test