86 views
2 2 votes

Consider $R(A,B,C,D)$ with $F=\{A\to B,\ C\to D\}$. Which of the following is a correct BCNF decomposition of $R$?

  1. $R_1(A,B)$
    $R_2(C,D)$
    $R_3(A,C)$
     
  2. $R_1(A,B,C)$
    $R_2(C,D)$
     
  3. $R_1(A,C)$
    $R_2(B,D)$
     
  4. $R_1(A,B)$
    $R_2(A,C,D)$

1 Answer

1 1 vote

First determine a candidate key.

Neither $A$ nor $C$ can be derived from other attributes.

Using $A\to B$ and $C\to D$, we get

$(AC)^+=\{A,B,C,D\}$

$\therefore AC$ is the candidate key.

Now examine $A\to B$.

$A$ is not a superkey of $R$, so this FD violates BCNF.

Decompose using $A\to B:$

$R_1(A,B)$ and $R'(A,C,D)$.

$R_1$ is in BCNF because $A$ is its key.

Now inspect $R'(A,C,D)$.

The projected FD $C\to D$ still holds.

But $C$ is not a superkey of $ACD$, so this also violates BCNF.

Decompose again into $R_2(C,D)$ and $R_3(A,C)$.

In $R_2$, $C$ is a key.

In $R_3$, there is no non-trivial projected FD.

Therefore, all three relations are in BCNF $:\boxed{{AB,\ CD,\ AC}}$

Answer : A

Answer:
Position:
Show:

Related questions

3 3 votes
1 1 answer
144
144 views
GO Classes asked Sep 18
144 views
Consider $\text{GSL}(D,M,N_1,N_2,G_1,G_2,C_1,C_2,E,R)$, where $M$ is the primary key, together with$M\to D,$$E\to R,$$N_1\to G_1C_1,$$N_2\to G_2C_2,$$G_1C_1\to N_1,$$G_2C...
4 4 votes
1 1 answer
119
119 views
GO Classes asked Sep 18
119 views
Consider $R(A,B,C,D,E)$ with $F=\{AB\to C,\ BC\to D,\ CD\to E,\ DE\to A\}$.Suppose the BCNF decomposition begins with the violating FD $:CD\to E$.Which set of relations i...
6 6 votes
1 1 answer
109
109 views
GO Classes asked Sep 18
109 views
Consider $R(A,B,C,D,E)$ with $F=\{D\to B,\ DE\to A,\ C\to AD\}$.Which of the following is a valid BCNF decomposition of $R$?$\{DB,\ ADE,\ CE\}$ $\{CDA,\ DEB\}$ $\{DB,\ AC...
4 4 votes
1 1 answer
87
87 views
GO Classes asked Sep 18
87 views
Consider $R(I,N,W,S,Q,T,P,R)$ with $F=\{N\to W,\ IN\to S\}$.Which of the following is the BCNF decomposition produced by successively removing these violations?$R_1(N,W)$...