Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Expert Solution & Answer
Book Icon
Chapter 7, Problem 35E

Explanation of Solution

Ensuring that the resulting decomposition is lossless:

  • Instead of using BCNF, it is possible to have a lossless decomposition into 3NF itself.
  • For this, it is required that one schema at least should have a candidate key for the schema that is being composed.
  • The set of functional dependencies F on a schema R is considered.
  • The decomposition of R which is dependency-preserving, sigma={R1,R2,...,Rn} is assumed.
  • Suppose X is a candidate key for R and a legal instance of R is r.
  • Suppose j=ProjectX(r) join ProjectR1(r) join ProjectR2(r) ... Join ProjectRn(r).
  • To prove that r=j, it is claimed that, t1 and t2 are two tuples, where t1=t2 such that t1[X]=t2[X].
  • The inductive argument is used for proving this claim.
  • Let F'=F1 union F2 union ... union Fn, where each Fi is the restriction of F to the schema Ri in sigma. Closure of X is computed under F'.
  • Induction is applied the number of times that the for loop in the algorithm executes.

Basis:

In the first step of the algorithm, result is assigned to X, and hence given that t1[X]=t2[X], it is known that t1[result]=t2[result] is true.

Induction Step:

  • Let t1[result]=t2[result] be true at the end of the kth execution of the for loop...

Blurred answer
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education