Direction: Answer question based on the problem statement given below:
Minimal cover F’ of functional dependency set F is
F’ = {A → B, A → C, BC → D, D → E}
In database theory, a minimal cover (also known as an irreducible set) of a set of functional dependencies (FDs) is a simplified set of FDs that is equivalent to the original set. Equivalent means that the closure of the original set is the same as the closure of the minimal cover. Finding a minimal cover is often the first step in the process of database normalization.
A set of functional dependencies F’ is a minimal cover for F if it satisfies the following conditions:
We are given the initial set of functional dependencies \(F\):
\(F = \{A \rightarrow BC, D \rightarrow E, BC \rightarrow D, A \rightarrow D\}\)
The universal relation is \(R(A, B, C, D, E)\). We will follow the steps to find the minimal cover \(F'\).
Break down functional dependencies that have multiple attributes on the right-hand side into separate functional dependencies with a single attribute on the right-hand side.
The FD \(A \rightarrow BC\) is split into \(A \rightarrow B\) and \(A \rightarrow C\).
The other FDs already have single attributes on the RHS.
The new set of functional dependencies, let's call it \(F_1\), is:
\(F_1 = \{A \rightarrow B, A \rightarrow C, D \rightarrow E, BC \rightarrow D, A \rightarrow D\}\)
Check if any functional dependency in the current set \(F_1\) can be derived from the other functional dependencies in \(F_1\). If an FD can be derived, it is redundant and can be removed. To check if an FD \(X \rightarrow Y\) is redundant, compute the closure of \(X\) using all other FDs in the set. If \(Y\) is in the closure \(X^{+}\), then \(X \rightarrow Y\) is redundant.
Let's check each FD in \(F_1\):
Since D is in \((A)^{+}\) computed using the other FDs, the FD \(A \rightarrow D\) is redundant and can be removed.
The set of functional dependencies after removing the redundant FD \(A \rightarrow D\), let's call it \(F_2\), is:
\(F_2 = \{A \rightarrow B, A \rightarrow C, D \rightarrow E, BC \rightarrow D\}\)
For each functional dependency \(X \rightarrow Y\) in \(F_2\) with a left-hand side \(X\) consisting of multiple attributes, check if any attribute can be removed from \(X\) without changing the closure. To check if an attribute \(A\) in \(X\) is redundant, compute the closure of \((X - \{A\})\) using all FDs in \(F_2\). If \(Y\) is in this closure \((X - \{A\})^{2}\), then \(A\) is redundant in \(X \rightarrow Y\).
In \(F_2\), only \(BC \rightarrow D\) has multiple attributes on the LHS.
The left-hand side of \(BC \rightarrow D\) is minimal. No attributes can be removed from the LHS of any FD in \(F_2\).
The set of functional dependencies after all steps is \(F_2\). This set satisfies all three properties of a minimal cover:
Thus, the minimal cover \(F'\) is:
\(F' = \{A \rightarrow B, A \rightarrow C, BC \rightarrow D, D \rightarrow E\}\)
Comparing this with the given options, this matches the first option.
| Step | Action | Resulting FD Set |
|---|---|---|
| Initial FDs | Given | \(F = \{A \rightarrow BC, D \rightarrow E, BC \rightarrow D, A \rightarrow D\}\) |
| Step 1 | Split RHS (A → BC) | \(F_1 = \{A \rightarrow B, A \rightarrow C, D \rightarrow E, BC \rightarrow D, A \rightarrow D\}\) |
| Step 2 | Remove redundant FDs (A → D) | \(F_2 = \{A \rightarrow B, A \rightarrow C, D \rightarrow E, BC \rightarrow D\}\) |
| Step 3 | Minimize LHS (BC → D is already minimal) | \(F' = \{A \rightarrow B, A \rightarrow C, BC \rightarrow D, D \rightarrow E\}\) |
| Concept | Description |
|---|---|
| Functional Dependency (FD) | A constraint between two sets of attributes in a relation. \(X \rightarrow Y\) means that the value of \(X\) uniquely determines the value of \(Y\). |
| Closure of an Attribute Set (\(X^{+}\)) | The set of all attributes that are functionally dependent on \(X\) under a given set of FDs. |
| Equivalence of FD Sets | Two sets of FDs, \(F_1\) and \(F_2\), are equivalent if their closures are the same (\(F_{1}^{+} = F_{2}^{+}\)). |
| Minimal Cover | An irreducible set of FDs that is equivalent to the original set, having single attributes on the RHS, no redundant FDs, and minimal LHSs. |
Finding a minimal cover is a crucial step in database normalization. Normalization is a process used to organize columns (attributes) and tables (relations) in a relational database to reduce data redundancy and improve data integrity.
Different normal forms (like 1NF, 2NF, 3NF, BCNF) are defined based on the types of functional dependencies that hold in a relation.
Understanding functional dependencies and how to find a minimal cover helps in decomposing relations into smaller, well-structured relations that are in higher normal forms, thereby improving the database design.
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
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.
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