Question

In weighted knapsack problem, given the knapsack capacity is 16 and the following items (Weight, Value),...

In weighted knapsack problem, given the knapsack capacity is 16 and the following items (Weight, Value), what is the maximum value we can take away. Explain shortly how and by what approach you arrived at this solution. Item 1 (4, 12) Item 2 (3, 14) Item 3 (7, 22) Item 4 (8, 32) Item 5 (4, 24) Item 6 (6, 20)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Go by greedy for max profit==> first go for item 4, i.e. weight 8 remaining 8, then max profit for item 5 of profit 24 and remaining weight is 4, as greedy we have to go for item 2 ==> total profit is 32+24+14=70

by greedy if go by max weight then, item4+item3=15=>32+22=54

Add a comment
Know the answer?
Add Answer to:
In weighted knapsack problem, given the knapsack capacity is 16 and the following items (Weight, Value),...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT