Jsing dynamic programming with the items ordered as listed (i.e., do not sort), v What is B[k=2,w=3] ? v What is B[k=3,w=4] ? What is B[k=4,w=5] ?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Item
Weight
Value
B[k,w]
k=0
k=1
k=2
k=3
k=4
1. A
3
25
of
w=0
2. В
2.
P20
w=1
A knapsack has capacity W=6 can be filled with the following indivisible items.
3. С
4
935
w=2
4. D
P15
w=3
w=4
of
w=5
w=6
Using dynamic programming with the items ordered as listed (i.e., do not sort),
v What is B[k=2,w=3] ?
A. 80
v What is B[k=3,w=4] ?
В. В.С
What is B[k=4,w=5] ?
C. A,B,D
v Which items must be taken to maximize the value in the knapsack?
D. 25
What is the maximum value that can be taken?
E. 20
F. 60
G. 45
Н. В.С. D
1. 55
J. 30
К. 70
L. 50
М. 35
N. A,B.C
O. 40
Transcribed Image Text:Item Weight Value B[k,w] k=0 k=1 k=2 k=3 k=4 1. A 3 25 of w=0 2. В 2. P20 w=1 A knapsack has capacity W=6 can be filled with the following indivisible items. 3. С 4 935 w=2 4. D P15 w=3 w=4 of w=5 w=6 Using dynamic programming with the items ordered as listed (i.e., do not sort), v What is B[k=2,w=3] ? A. 80 v What is B[k=3,w=4] ? В. В.С What is B[k=4,w=5] ? C. A,B,D v Which items must be taken to maximize the value in the knapsack? D. 25 What is the maximum value that can be taken? E. 20 F. 60 G. 45 Н. В.С. D 1. 55 J. 30 К. 70 L. 50 М. 35 N. A,B.C O. 40
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education