Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

table [ [ ITEM , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ] , [ WEIGHT

\table[[ITEM,1,2,3,4,5,6,7,8],[WEIGHT,8,1,7,6,3,12,5,14],[UTILITY,80,20,50,55,50,75,30,70]]
Recognizing that the hike to the campsite is a long one, a limit of 35 pounds has been set as the maximum total weight of the items to be carried.
(a) Formulate this as a 0-1 programming problem to maximize the total utility of the items carried. Solve this knapsack problem using a computer.
(b) Suppose item 3 is an extra battery pack, which may be used with several of the other items. Tina has decided that she will take item 5, a CD player, only if she also takes item 3. On the other hand, if she takes item 3, she may or may not take item 5. Modify the problem to reflect this, and solve the new problem.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions