Problem 6. Assume that we have four relations R(A, B), S(A,C), T(A, D) and U(A, E) and the size (i.e., the number of rows) of each relation is as follows: TR = 1000, rs = 3000, TT= 4000, Tu = 2000. Also, assume that all attributes of the relations are of the same length and we use hash join, so the cost of joining X = {R, S, T,U} and Y = {R, S, T, U} is approximately: k(rx cx+ry cy) where k is a constant, rx and cx denote the number of rows and the number of columns of X, respectively, and ry and cy denote the number of rows and the number of columns of Y. Finally, assume that the size of a join is always 0.2% of the size of the cross product (i.e., ™xây = 0.002 TX.TY). Under the above assumptions, find the lowest cost plan for computing R S T U using dynamic programming and left-deep join trees. You need to complete the following table while finding the best plans (e.g., in the form of ((□□) □) in the last line) and associated costs. Subquery RAS RAT RAU SAT SAU TAU RASAT RASAU RATAU SATAU RAS TAU Size 6000 8000k Cost [= (1000-2+3000-2)k] Best Plan RS
Problem 6. Assume that we have four relations R(A, B), S(A,C), T(A, D) and U(A, E) and the size (i.e., the number of rows) of each relation is as follows: TR = 1000, rs = 3000, TT= 4000, Tu = 2000. Also, assume that all attributes of the relations are of the same length and we use hash join, so the cost of joining X = {R, S, T,U} and Y = {R, S, T, U} is approximately: k(rx cx+ry cy) where k is a constant, rx and cx denote the number of rows and the number of columns of X, respectively, and ry and cy denote the number of rows and the number of columns of Y. Finally, assume that the size of a join is always 0.2% of the size of the cross product (i.e., ™xây = 0.002 TX.TY). Under the above assumptions, find the lowest cost plan for computing R S T U using dynamic programming and left-deep join trees. You need to complete the following table while finding the best plans (e.g., in the form of ((□□) □) in the last line) and associated costs. Subquery RAS RAT RAU SAT SAU TAU RASAT RASAU RATAU SATAU RAS TAU Size 6000 8000k Cost [= (1000-2+3000-2)k] Best Plan RS
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
Solve all parts of the table!
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
Knowledge Booster
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.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