Question
The following functional dependencies hold true for the relational schema :
Which of the following is irreducible equivalent for this set of functional dependencies?
Official answer and solution
- Official answer
- A
- From
- Official GATE 2017 answer key
Solution
Find the canonical cover (minimal cover) by decomposing right-hand sides, eliminating extraneous left-hand attributes, and removing redundant functional dependencies.
Given the functional dependency set:
Step 1: Decompose right-hand sides into single attributes:
Step 2: Check for extraneous attributes on the left-hand side of :
Compute the attribute closure of under :
Since , attribute is extraneous in the left-hand side of . Thus, simplifies to .
The dependency set becomes:
Step 3: Check for redundant functional dependencies in :
- Test : Compute under :Since , the dependency is inferred via and . Hence, is redundant and can be removed.
Testing the remaining dependencies:
- : without it is , which does not contain . Retained.
- : without it is , which does not contain . Retained.
- : without it is , which does not contain . Retained.
- : without it is , which does not contain . Retained.
The resulting irreducible equivalent set is:
This matches Option A.
A
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2017 Computer Science and Information Technology (CS) Session 1
- Question
- 16 of 65, printed as CS Q.16
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.