Question

0-1 Knapsack (N=6, W=10) Item Weight Value (lb) ($) 8 1 0 10 Weight limit w(lb) 4 5 6 7 2 2 2 2 2 2 3 2 #2 2 1 2 43 33 3 w #3Please explain step by step, thank you so much! 7. (10%) (Cont.) Unbounded Knapsack Problem (1-Dim Dynamic Programming) Weight limit w 0 : 6 Weight limit w F(w) 7 Unbounded

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

a) True

b) As item#1 is of same weight as item#5 but its value is less than item#5 so to make maximaum value we will take item#5 always instead of item#1.

c) F(10) = 20

d) For maximum profit we have to pick 5 item#5 so total profit will be 5*4=20.

e) Bib-Oh time complexity will be O(W*N).

Add a comment
Know the answer?
Add Answer to:
Please explain step by step, thank you so much! 0-1 Knapsack (N=6, W=10) Item 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