Skip to content
GATEiit

GATE CSE 2024 Session 2 Q56: Number of useful functional dependencies on 4 attributes

Question

A functional dependency F:X→YF: X \to Y is termed as a useful functional dependency if and only if it satisfies all the following three conditions:

• XX is not the empty set.

• YY is not the empty set.

• Intersection of XX and YY is the empty set.

For a relation RR with 4 attributes, the total number of possible useful functional dependencies is ________

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 50 (official GATE 2024 final answer key)

Concept used: Counting ordered pairs of disjoint non-empty subsets: each attribute goes to XX, YY or neither.

First step: There are 343^4 assignments; subtract those with XX empty (242^4) or YY empty (242^4) and add back the one with both empty.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2024 Session 2 CS question paper and final answer key, organised by IISc Bangalore. Question paper · Answer key