Question: Knapsack problem. Consider the instance of knapsack problem given by the following data. Assume the knapsack capacity is 1 0 . Item Weight Value 1

Knapsack problem. Consider the instance of knapsack problem given by the following data. Assume the knapsack capacity is 10.
Item Weight Value
1420
2316
3518
428
(10 points) Apply the dynamic programming algorithm to find the optimal solution.
(10 points) Apply the greedy algorithm to find an approximate solution. what is the accuracy ratio?

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 Finance Questions!