You have Sum-of-Subsets with given set S = {3, 9, 14, 15, 20} and sum W = 37; Following backtracking algorithm specify for each node if it is promising or not, and if that node is a solution. Do not list nodes in the pruned part of the tree. You do not need to print and to draw here the actual tree (you may do it for yourself on the piece of paper). Just list all nodes. in the figure 5.14. Count in each row starts from the left most possible position, like (5.1), (5.2). (5.3) and so on. Paragraph B I U A 三、 ►11 о + v Lato (Recom... v 19px... ▼ </> node (0,0) is node (1,1) is node (1,2) is and so on Figure 5.14 The pruned state space tree produced using backtracking in Example 5.6. Stored at each node from top to bottom are the total profit of the items stolen up to the node, their total weight, and the bound on the total profit that Item 1 1[$40] 2 Item 2 [$30] (2, 1) $70 7 $115 (1, 1) $40 2 $115 (0, 0) $0 0 $115 (1,2) $0 0 $82 (2,2) $40 2. $98 could be obtained by expanding beyond the node. The optimal $50 Item 3 10 (3, 1) (3,2) (3, 3) (3,4) $120 $70 $90 $40 17 7 12 2 $80 $98 $50 solution is found at Item 4 the node shaded in 4 [$30] X (4, 1) (4, 2) (4,3) (4, 4) color. Each nonpromising node $80 $70 $100 $90 12 7 17 12 is marked with a cross. $80 $70 $90 ×

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter12: Working With Document Nodes And Style Sheets: Creating A Dynamic Document Outline
Section12.2: Visual Overview: Exploring Attribute Nodes
Problem 2QC
icon
Related questions
Question
100%
please read the instruction carefully and answer the question correctly
You have Sum-of-Subsets with given set S = {3, 9, 14, 15, 20} and sum W = 37;
Following backtracking algorithm specify for each node if it is promising or not, and if that node is a
solution. Do not list nodes in the pruned part of the tree. You do not need to print and to draw here the actual
tree (you may do it for yourself on the piece of paper). Just list all nodes.
in the figure 5.14. Count in each row starts
from the left most possible position, like (5.1), (5.2). (5.3) and so on.
Paragraph
B
I U
A
三、
►11
о
+ v
Lato (Recom... v
19px... ▼
</>
node (0,0) is
node (1,1) is
node (1,2) is
and so on
Transcribed Image Text:You have Sum-of-Subsets with given set S = {3, 9, 14, 15, 20} and sum W = 37; Following backtracking algorithm specify for each node if it is promising or not, and if that node is a solution. Do not list nodes in the pruned part of the tree. You do not need to print and to draw here the actual tree (you may do it for yourself on the piece of paper). Just list all nodes. in the figure 5.14. Count in each row starts from the left most possible position, like (5.1), (5.2). (5.3) and so on. Paragraph B I U A 三、 ►11 о + v Lato (Recom... v 19px... ▼ </> node (0,0) is node (1,1) is node (1,2) is and so on
Figure 5.14
The pruned state
space tree produced
using backtracking
in Example 5.6.
Stored at each node
from top to bottom
are the total profit
of the items stolen
up to the node,
their total weight,
and the bound on
the total profit that
Item 1
1[$40]
2
Item
2 [$30]
(2, 1)
$70
7
$115
(1, 1)
$40
2
$115
(0, 0)
$0
0
$115
(1,2)
$0
0
$82
(2,2)
$40
2.
$98
could be obtained
by expanding
beyond the node.
The optimal
$50
Item 3
10
(3, 1)
(3,2)
(3, 3)
(3,4)
$120
$70
$90
$40
17
7
12
2
$80
$98
$50
solution is found at
Item 4
the node shaded in
4 [$30]
X
(4, 1)
(4, 2) (4,3)
(4, 4)
color. Each
nonpromising node
$80
$70
$100
$90
12
7
17
12
is marked with a
cross.
$80
$70
$90
×
Transcribed Image Text:Figure 5.14 The pruned state space tree produced using backtracking in Example 5.6. Stored at each node from top to bottom are the total profit of the items stolen up to the node, their total weight, and the bound on the total profit that Item 1 1[$40] 2 Item 2 [$30] (2, 1) $70 7 $115 (1, 1) $40 2 $115 (0, 0) $0 0 $115 (1,2) $0 0 $82 (2,2) $40 2. $98 could be obtained by expanding beyond the node. The optimal $50 Item 3 10 (3, 1) (3,2) (3, 3) (3,4) $120 $70 $90 $40 17 7 12 2 $80 $98 $50 solution is found at Item 4 the node shaded in 4 [$30] X (4, 1) (4, 2) (4,3) (4, 4) color. Each nonpromising node $80 $70 $100 $90 12 7 17 12 is marked with a cross. $80 $70 $90 ×
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning