3,620 views
11 votes
11 votes

Consider following set of FDs on $R(A,B,C,D,E,F)$

$A \to BCD$

$BC \to DE$

$B \to D$

$D \to A$

  1. Compute the canonical cover.
  2. Give 3NF decomposition of $R$ based on canonical cover.
  3. Give BCNF decomposition of $R$ based on original set of FD.
  4. Can you get same decomposition of $R$ as above using canonical cover?

3 Answers

Best answer
5 votes
5 votes

1.A−>BC
 B−>DE
 D−>A
CK{AF , BF, DF}

2.R1(ABCDE)R2(AF)

3..R1(ABCDE)R2(AF)

4..R1(ABCDE)R2(AF)
Verify once!
 


 

selected by
7 votes
7 votes

We always decompose after getting canonical cover.

Canonical Cover : $$\begin{align*} A &\rightarrow B \\ A &\rightarrow C \\ B &\rightarrow E \\ B &\rightarrow D \\ D &\rightarrow A \\ \end{align*}$$

after decomposition into  3NF:

because of attribute $F$ no LHS of any FD available in table like $R_1$ which contains $F$ could be a superKey, so it cannot be in BCNF, hence we can say that BCNF decomposition is not possible but 3NF decomposition is.

edited by
1 votes
1 votes
  1. Canonical Cover : { $A\rightarrow BC$, $D\rightarrow A$, $B\rightarrow DE$ }
  2. 3NF : {A,B,C} {B,E,D} {D,A} {F,A}
  3. BCNF : {A,B,C} {B,D} {A,E,F}
  4. If you are generating the relations usinf some algorithm then no you can't gernerate same sets using different set of functional dependencies.
edited by

Related questions

3 votes
3 votes
1 answer
2
Tuhin Dutta asked Jan 19, 2018
687 views
F: { A- BC, B->C, AC->B }G: { AB->C, A->B, A->C }Does G cover F?
2 votes
2 votes
4 answers
4
Purple asked Jan 24, 2016
18,148 views
Consider the following set of functional dependency on the scheme (A, B,C) A >BC, B >C, A B, AB >C The canonical cover for this set is:(A) A >BC and B CB. A >BC and AB ...