Question: Given the following knapsack problem: item weight value Knapsack capacity W = 1 2 1 2 lbs $ 4 0 2 5 lbs $ 6

Given the following knapsack problem:
item weight value Knapsack capacity W=12
12 lbs $40
25 lbs $65
36 lbs $72
44 lbs $60
Find the most valuable subset of the items that fit into the knapsack. You must show and explain your intermediate steps for the following questions.
a) If it is a fractional knapsack problem, provide the optimal solution using greedy algorithm (Greedy strategy: choosing items with greatest value per pound)

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!