Skip to content
Official PYQ · 1999

GATE CS 1999 Q1.24 — Normal Forms

Explain with AI

Let R=(A,B,C,D,E,F)R = (A, B, C, D, E, F) be a relation scheme with the following dependencies C→F,E→A,EC→D,A→BC \rightarrow F, E \rightarrow A, EC \rightarrow D, A \rightarrow B. Which one of the following is a key for RR?

Choose one option
View worked solution

Answer: B

To determine which option is a candidate key for the relation scheme R(A,B,C,D,E,F)R(A, B, C, D, E, F), we compute the attribute closure for each of the given options using the set of functional dependencies:

  1. C→FC \rightarrow F
  2. E→AE \rightarrow A
  3. EC→DEC \rightarrow D
  4. A→BA \rightarrow B

Let's find the closure for each option:

  • Option A: (CD)+(CD)^+
    (CD)+={C,D,F}(CD)^+ = \{C, D, F\} (using C→FC \rightarrow F)
    Since this does not contain all attributes of RR, CDCD is not a key.

  • Option B: (EC)+(EC)^+
    (EC)+={E,C}(EC)^+ = \{E, C\}
    ⇒{E,C,A}\Rightarrow \{E, C, A\} (using E→AE \rightarrow A)
    ⇒{E,C,A,B}\Rightarrow \{E, C, A, B\} (using A→BA \rightarrow B)
    ⇒{E,C,A,B,D}\Rightarrow \{E, C, A, B, D\} (using EC→DEC \rightarrow D)
    ⇒{E,C,A,B,D,F}\Rightarrow \{E, C, A, B, D, F\} (using C→FC \rightarrow F)
    Since (EC)+={A,B,C,D,E,F}(EC)^+ = \{A, B, C, D, E, F\}, ECEC is a superkey.
    Furthermore, neither E+={E,A,B}E^+ = \{E, A, B\} nor C+={C,F}C^+ = \{C, F\} contains all attributes, meaning ECEC is a minimal superkey (candidate key).

  • Option C: (AE)+(AE)^+
    (AE)+={A,E,B}(AE)^+ = \{A, E, B\} (using A→BA \rightarrow B and E→AE \rightarrow A)
    This does not contain all attributes of RR, so AEAE is not a key.

  • Option D: (AC)+(AC)^+
    (AC)+={A,C,B,F}(AC)^+ = \{A, C, B, F\} (using A→BA \rightarrow B and C→FC \rightarrow F)
    This does not contain all attributes of RR, so ACAC is not a key.

Thus, EC is a key for the relation RR.

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

Published
Report a correction
Keep exploringMore Normal Forms questions