Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help needed. ASAP XII. (22 points) Consider the following items in the Knapsack Problem: Item weight value Knapsack capacity W = 11. ?? ? ?

Help needed. ASAPimage text in transcribed

XII. (22 points) Consider the following items in the Knapsack Problem: Item weight value Knapsack capacity W = 11. ?? ? ? $8 $1 $15 ? In the Fractional Knapsack Problem, what is the maximum value that can be put in the knapsack? (a) $15 (b) $23 (c) $25 (d) $19 o Using the same items as in part (a), the Dynamic Programming approach outlined in the book and discussed in class produces a (n + 1) x (W+ 1) table containing the maximum values P[i][w] for a knapsack of capacity w, considering the first i items. W? d i 4 5 6 7 8 6 10 4 1 0 0 0 3 3 3 3 3 3 3 3 3 2 0 0 0 3 8 8 8 11 11 11 11 11 3 0 0 1 3 8 8 9 11 11 12 12 12 4 0 0 1 3 8 15 15 16 18 23 ? ? Compute the missing values in this table using the formula outlined in the textbook and in class P[4][10] = P[4][11]= Starting from the value of P[4][11] (the maximum profit for the 0-1 Knapsack in this case) which items are placed in the knapsack to achieve this maximum value

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

Step: 3

blur-text-image

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

responding to them.

Answered: 1 week ago