Question: You are given a knapsack that can carry a maximum weight of 6 . There are 4 items with weights { 2 , 3 ,

You are given a knapsack that can carry a maximum weight of 6. There are 4 items with weights {2,3,4,7} and values {7,8,9,20}. What is the maximum value of the items you can carry using the knapsack?
a.
20
b.
9
c.
16
d.
17

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!