Question: (a) Explain Knapsack problem as an optimization problem. Write a greedy algorithm solving knapsack problem. Illustrate the algorithm with the following instances of 4 objects

(a) Explain Knapsack problem as an optimization problem. Write a greedy algorithm solving knapsack problem. Illustrate the algorithm with the following instances of 4 objects having profits and . Wz weights as (P1.P2, P3, Ps) = (2,5,8,1) and (w;,W2, W3, wa) (10,15,6,9). Given that the capacity of the knapsack is 30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
