Write an algorithm to solve knapsack problem using greedy technique.
Write an algorithm to solve the knapsack problem using greedy technique. Find the optimal solution to the knapsack instance n=7, m=15. (P1, P2, ………,P7) = (10,5,15,7,6,18,3) (W1,W2,…….,W7)=(2,3,5,7,1,4,1) Answer:-…