Let R (ABCDEFGH) be a relation schema and F be the set of dependencies F = {A → B, ABCD → E, EF → G, EF → H and ACDF →EG}. The minimal cover of a set of functional dependencies is
A → B, ACD → E, EF → G, and EF → H
A minimal cover (also known as a canonical cover) of a set of functional dependencies (FDs) F is a set of FDs G such that:
To find a minimal cover for a given set of FDs F, we follow these steps:
We start with the given set of functional dependencies:
$F = \{A \to B, ABCD \to E, EF \to G, EF \to H, ACDF \to EG\}$
Split any FD with multiple attributes on the RHS into multiple FDs, each with a single attribute on the RHS. The FD $ACDF \to EG$ is split into $ACDF \to E$ and $ACDF \to G$.
The new set of FDs, F$_1$, is:
$F_1 = \{A \to B, ABCD \to E, EF \to G, EF \to H, ACDF \to E, ACDF \to G\}$
Next, we check if any FD in F$_1$ is redundant. An FD $X \to Y$ is redundant if it can be derived from the other FDs in the set, i.e., if Y is in the closure of X ($X^+$) computed using the remaining FDs.
Let's check each FD in F$_1$:
$F_2 = \{A \to B, ABCD \to E, EF \to G, EF \to H\}$
For each FD $X \to Y$ in F$_2$, we check if removing any attribute from X still results in an FD that is implied by F$_2$. If $X' \to Y$ is implied by F$_2$ for $X' \subset X$, then we can replace $X \to Y$ with $X' \to Y$. We repeat this until no attribute can be removed from any LHS.
Let's check each FD in F$_2$:
The set of FDs after minimizing LHS is:
$M = \{A \to B, ACD \to E, EF \to G, EF \to H\}$
The set M satisfies the conditions for a minimal cover:
Let's compare our derived minimal cover M with the given options:
Option 1: {$A \to B, ACD \to E, EF \to G$, and $EF \to H$}
Option 2: {$A \to B, ACD \to E, EF \to G, EF \to H$ and $ACDF \to G$} (Contains redundant $ACDF \to G$)
Option 3: {$A \to B, ACD \to E, EF \to G, EF \to H$ and $ACDF \to E$} (Contains redundant $ACDF \to E$)
Option 4: {$A \to B, ABCD \to E, EF \to H$ and $EF \to G$} (Contains $ABCD \to E$ instead of $ACD \to E$, LHS is not minimal)
Our derived minimal cover matches Option 1.
Based on the steps for finding the minimal cover, the set of functional dependencies $\{A \to B, ACD \to E, EF \to G, EF \to H\}$ is the minimal cover for the given set F.
| Concept | Description |
|---|---|
| Functional Dependency (FD) | A constraint $X \to Y$ between two sets of attributes X and Y in a relation, stating that if two tuples agree on the values of attributes in X, they must agree on the values of attributes in Y. |
| Closure of a Set of Attributes ($X^+$) | The set of all attributes that are functionally determined by X based on a given set of FDs. It is computed using Armstrong's Axioms. |
| Closure of a Set of FDs ($F^+$) | The set of all FDs that can be logically derived from a given set of FDs F using Armstrong's Axioms. |
| Equivalence of FDs | Two sets of FDs $F_1$ and $F_2$ are equivalent if they have the same closure ($F_1^+ = F_2^+$). |
| Minimal Cover | A simplified set of FDs that is equivalent to the original set, has unique attributes on the RHS, and no redundant FDs or redundant attributes on the LHS. |
Understanding functional dependencies and their properties is crucial in database design, particularly for normalization.
Derived rules include Union ($X \to Y, X \to Z \implies X \to YZ$) and Decomposition ($X \to YZ \implies X \to Y, X \to Z$). These axioms are sound and complete.
In a database, a rule is defined as (P1 and P2) or P3? R1 (0.8) and R2 (0.3), where P1, P2, P3 are premises and R1. R2 are conclusions of rules with certainty factors (CF) 0.8 and 0.3 respectively. If any running program has produced P1, P2, P3 with CF as 0.5, 0.8. 0.2 respectively, find the CF of results on the basis of premises.
Minimal cover F’ of functional dependency set F is
Assume that given table R is decomposed in two tables
R 1(A, B, C) with functional dependency set f 1= {A → B, A → C} and R 2(A, D, E) with FD set F 2= {A → D, D → E}
Which of the following option is true w.r.t. given decomposition?Identify the redundant functional dependency in F
Identify primary key of table R with functional dependency set F