Question
A functional dependency is termed as a useful functional dependency if and only if it satisfies all the following three conditions:
- is not the empty set.
- is not the empty set.
- Intersection of and is the empty set.
For a relation with 4 attributes, the total number of possible useful functional dependencies is ________
Official answer and solution
- Official answer
- 50
- From
- Official GATE 2024 answer key
Solution
Assign each of the 4 attributes to , , or neither (), and use inclusion-exclusion to remove cases where or .
Since , each of the attributes of relation can be placed into one of disjoint buckets: , , or .
- Total ways to assign attributes to the buckets .
- Number of assignments where (attributes only in or neither) .
- Number of assignments where (attributes only in or neither) .
- Number of assignments where both and .
By inclusion-exclusion, the number of useful functional dependencies is:
50
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2024 Computer Science and Information Technology - Set 2 (CS2)
- Question
- 56 of 65
- 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.