retagged by
613 views
0 votes
0 votes

Maximum profit using 0/1 Knapsack with W=200

 is there any other than brute force method to solve this??? or we have to do only with tabular method?please solve and mention the way that is efficient w.r.t time if any.

 

retagged by

1 Answer

0 votes
0 votes
First of all you have to find profit by weight ratio and then according to ratio you have put this in tabular form

 according to weight= 10+10+30+120+20

then profit according to weight is= 40+30+70+260+30 = 430

 Answer is 430
edited by