Sir, here we got the profit of 130 when we pick weight of (1 , 2 , 3) objects and n=3 only . But if we pick (1 , 1 , 2 , 2 ) products we will get a profit of 140 instead of 130 and will satisfy the capacity also. Isn’t it right ?
Knapsack Problem
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.