GateAI
Integrity Constraints and Normal Forms

GATE CSE 2024 Set 2 · Q56

NAT2 marksMedium

Time

A functional dependency F:X→YF: X \rightarrow Y is termed as a useful functional dependency\textit{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 ________

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 50 (±0)

Integrity Constraints and Normal Forms

Let the set of attributes of RR be UU, with ∣U∣=n=4|U| = n = 4.

A functional dependency X→YX \to Y is useful if X⊆UX \subseteq U, Y⊆UY \subseteq U, Xe∅X e \emptyset, Ye∅Y e \emptyset, and X∩Y=∅X \cap Y = \emptyset.

For any two disjoint subsets XX and YY of UU, every attribute A∈UA \in U has 3 mutually exclusive possibilities:

  1. A∈XA \in X

  2. A∈YA \in Y

  3. A∉XA \notin X and A∉YA \notin Y

Thus, the total number of disjoint pairs (X,Y)(X, Y) is 3n=34=813^n = 3^4 = 81.

From these, we must subtract the cases where X=∅X = \emptyset or Y=∅Y = \emptyset:

  • Cases where X=∅X = \emptyset: YY can be any subset of UU (24=162^4 = 16 pairs).

  • Cases where Y=∅Y = \emptyset: XX can be any subset of UU (24=162^4 = 16 pairs).

  • Case where X=∅X = \emptyset and Y=∅Y = \emptyset: counted in both, so 11 pair.

By the Principle of Inclusion-Exclusion:

Total useful FDs=34−24−24+1=81−16−16+1=50\text{Total useful FDs} = 3^4 - 2^4 - 2^4 + 1 = 81 - 16 - 16 + 1 = 50

Thus, the total number of possible useful functional dependencies is 50.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Integrity Constraints and Normal Forms previous year question is Q56 of the GATE CSE 2024 Set 2 paper. Find more GATE CSE PYQs on Integrity Constraints and Normal Forms in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Integrity Constraints and Normal Forms PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Integrity Constraints and Normal Forms in GATE CSE

Integrity Constraints and Normal Forms has 30 GATE CSE PYQs across 20 papers from 2011 to 2026. 2 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2024 Set 2.

How GATE tests Integrity Constraints and Normal Forms

More from GATE CSE 2024 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2024 Set 2 · Q56 · NAT

A functional dependency F: X → Y is termed as a useful functional dependency if and only if it satisfies all the following three conditions: - X is not the empty set. - Y is not the empty set. - Intersection of X and Y is the empty set. For a relation R with 4 attributes, the total number of possible useful functional dependencies is …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.