CS FundamentalsVery hardGATE CS (PYQ pattern)

R(A, B, C, D, E) has the functional dependencies A → B, BC → D and D → E. How many non-trivial functional dependencies of the form X → Y, where X is a non-empty proper subset of the attributes and Y is a single attribute not in X, are implied by this set?

  1. A. 30
  2. B. 19
  3. C. 25
  4. D. 3

Correct answer: C. 25

For every proper subset X compute closure(X) and count the attributes outside X it determines (sum over all 30 non-empty proper subsets). The total is 25; the given 3 FDs are only a tiny part of the implied ones.

More DBMS and SQL questions

Exams that ask this topic