Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider the following collection of relations and dependencies. Assume that eac

ID: 3677224 • Letter: C

Question

Consider the following collection of relations and dependencies. Assume that each relation is obtained through decomposition from a relation with attributes ABCDEFGHI and that all the known dependencies over relation ABCDEFGHI are listed for each question. State whether the relation is in BCNF. If it is not in BCNF, decompose it into a collection of BCNF relations

R1(A,B,C,D,E), A -> B, C -> D

The answer is that it is not in BCNF and the BCNF decomposition is AB, CD, ACE. Could someone please explain how they got the BCNF decomposition?

Explanation / Answer

Using the following simple algorithm not down it ,it is very help full for you

Initialize S = {R}

While S has a relation R' that is not in BCNF do:  

   Pick a FD: X->Y that holds in R' and violates BCNF

   Add the relation XY to S

   Update R' = R'-Y

Return S

Sol: Given R1(A,B,C,D,E), A -> B, C -> D

Step1:

Intialization S = {R}

S = {ABCDE}

Step2:

Pick FD: A->B which violates BCNF

S = {ACDE, AB}

Step3:

Pick FD: C->D which violates BCNF

S = {ACE, AB, CD}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote