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 × 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. Note: use notation for the nodes similar to shown 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. We will use the same later. Paragraph B I U A 三、 Lato (Recom... v 19px... ▼ </> node (0,0) is node (1,1) is node (1,2) is and so on ||A о + v
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 × 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. Note: use notation for the nodes similar to shown 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. We will use the same later. Paragraph B I U A 三、 Lato (Recom... v 19px... ▼ </> node (0,0) is node (1,1) is node (1,2) is and so on ||A о + v
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
Related questions
Question
please read the instruction carefully and answer the question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education