Question
Suppose the following functional dependencies hold on a relation with attributes , and :
Which of the following functional dependencies can be inferred from the above functional dependencies?
Official answer and solution
- Official answer
- A, C and D
- From
- Official GATE 2021 answer key
Solution
Compute attribute closures under the given functional dependency set .
Given functional dependencies:
Check each candidate functional dependency using attribute closure:
- Option A ():
Start with .
Since , add and : .
Since , and both , add : .
Since , can be inferred. Option A is correct.
- Option B ():
Start with . Neither dependency applies since neither nor is a subset of .
Thus . Since , cannot be inferred. Option B is incorrect.
- Option C ():
Start with . By dependency 1, , which by the decomposition rule implies and . Thus , so can be inferred. Option C is correct.
- Option D ():
From closure , . Thus can be inferred. Option D is correct.
Final answer
A, C, D
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2021 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 50 of 65, printed as CS Q.40
- 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.