To find a minimal cover for the functional dependencies ( F ) over the relation schema ( R(A, B, C, D, E, F, G) ), we'll follow these steps:
1. Decompose Functional Dependencies to Singleton Right-Hand Sides
Given:
( F = { AB \rightarrow C, \ C \rightarrow A, \ BC \rightarrow D, \ ACD \rightarrow B, \ D \rightarrow EG, \ BE \rightarrow C, \ CG \rightarrow BD, \ CE \rightarrow G } )
Decomposing dependencies with multiple attributes on the right-hand side:
Now, the set ( F' ) with singleton right-hand sides is:
( F' = { AB \rightarrow C, \ C \rightarrow A, \ BC \rightarrow D, \ ACD \rightarrow B, \ D \rightarrow E, \ D \rightarrow G, \ BE \rightarrow C, \ CG \rightarrow B, \ CG \rightarrow D, \ CE \rightarrow G } )
2. Remove Extraneous Attributes from the Left-Hand Sides
We check each dependency to see if any attribute in the left-hand side is extraneous.
a. ( AB \rightarrow C ): Neither ( A ) nor ( B ) is extraneous since neither ( A \rightarrow C ) nor ( B \rightarrow C ) holds in ( F' ) without ( AB \rightarrow C ).
b. ( ACD \rightarrow B ):
-
Test if ( A ) is extraneous:
- Compute ( (C,D)^+ ) without ( ACD \rightarrow B ).
- ( (C,D)^+ = { C, D, A, E, G, B } ) (we get ( B ) through ( C, D \rightarrow G ) and ( CG \rightarrow B )).
- Since ( B \in (C,D)^+ ), ( A ) is extraneous.
-
The dependency reduces to ( CD \rightarrow B ).
-
Test if ( D ) is extraneous in ( CD \rightarrow B ):
- Compute ( C^+ ): ( C^+ = { C, A } ).
- Since ( B \notin C^+ ), ( D ) is not extraneous.
c. All other dependencies do not have extraneous attributes on the left-hand side upon similar examination.
3. Remove Redundant Dependencies
We check if any dependency can be derived from the others and can thus be considered redundant.
a. ( CD \rightarrow B ):
- Compute ( (C,D)^+ ) without ( CD \rightarrow B ).
- ( (C,D)^+ = { C, D, A, E, G, B } ) (again, ( B ) is obtained via ( C, G \rightarrow B ) and ( D \rightarrow G )).
- Since ( B \in (C,D)^+ ), ( CD \rightarrow B ) is redundant and can be removed.
b. ( CG \rightarrow D ):
- Compute ( (C,G)^+ ) without ( CG \rightarrow D ).
- ( (C,G)^+ = { C, G, A, B, D } ) ( ( D ) is obtained via ( BC \rightarrow D ) since ( B ) is in the closure).
- Since ( D \in (C,G)^+ ), ( CG \rightarrow D ) is redundant and can be removed.
c. All other dependencies are not redundant since their right-hand side attributes cannot be derived from the left-hand sides of other dependencies in their absence.
Final Minimal Cover
( F_{\text{min}} = { AB \rightarrow C, \ C \rightarrow A, \ BC \rightarrow D, \ D \rightarrow E, \ D \rightarrow G, \ BE \rightarrow C, \ CG \rightarrow B, \ CE \rightarrow G } )
Summary of Steps:
-
Decompose Right-Hand Sides: Ensured all dependencies have singleton right-hand sides.
-
Minimize Left-Hand Sides: Removed extraneous attributes from dependencies, reducing ( ACD \rightarrow B ) to ( CD \rightarrow B ).
-
Eliminate Redundant Dependencies: Removed ( CD \rightarrow B ) and ( CG \rightarrow D ) as they were redundant.
Thus, the minimal cover is:
[
\begin{cases}
AB \rightarrow C, \
C \rightarrow A, \
BC \rightarrow D, \
D \rightarrow E, \
D \rightarrow G, \
BE \rightarrow C, \
CG \rightarrow B, \
CE \rightarrow G.
\end{cases}
]