Skip to content
Official PYQ · 2021

GATE CS 2021 Set 2 Q40 — Normal Forms

Explain with AI

Suppose the following functional dependencies hold on a relation UU with attributes P,Q,R,SP,Q,R,S, and TT:

  • P→QRP \rightarrow QR
  • RS→TRS \rightarrow T

Which of the following functional dependencies can be inferred from the above functional dependencies?

Select all correct options
View worked solution

Answer: A;C;D

To determine which functional dependencies can be inferred, we compute the attribute closures of the left-hand sides of the options using the given functional dependencies:

  1. P→QRP \rightarrow QR
  2. RS→TRS \rightarrow T

Let's evaluate each option:

  • Option A (PS→TPS \rightarrow T): Computing the closure of PSPS: (PS)+={P,S}→P→QR{P,Q,R,S}→RS→T{P,Q,R,S,T}(PS)^+ = \{P, S\} \xrightarrow{P \rightarrow QR} \{P, Q, R, S\} \xrightarrow{RS \rightarrow T} \{P, Q, R, S, T\} Since T∈(PS)+T \in (PS)^+, PS→TPS \rightarrow T holds. Hence, Option A is correct.
  • Option B (R→TR \rightarrow T): Computing the closure of RR: (R)+={R}(R)^+ = \{R\} Since T∉(R)+T \notin (R)^+, R→TR \rightarrow T does not hold. Hence, Option B is incorrect.
  • Option C (P→RP \rightarrow R): Computing the closure of PP: (P)+={P}→P→QR{P,Q,R}(P)^+ = \{P\} \xrightarrow{P \rightarrow QR} \{P, Q, R\} Since R∈(P)+R \in (P)^+, P→RP \rightarrow R holds. Hence, Option C is correct.
  • Option D (PS→QPS \rightarrow Q): As computed above, (PS)+={P,Q,R,S,T}(PS)^+ = \{P, Q, R, S, T\}. Since Q∈(PS)+Q \in (PS)^+, PS→QPS \rightarrow Q holds. Hence, Option D is correct.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Normal Forms questions