CS FundamentalsVery hardGATE CS (PYQ pattern)

R(A, B, C, D, E, F) has the functional dependencies A -> B, DB -> F, FB -> C, A -> C, A -> D, EF -> B. An attribute set X is closed if X+ = X. How many of the 63 non-empty subsets of {A, B, C, D, E, F} are closed?

  1. A. 25
  2. B. 18
  3. C. 21
  4. D. 32

Correct answer: C. 21

A closed set must absorb every FD whose left side it contains: any set with A must contain B, C, D and then F; with D and B it needs F and then C; with F and B it needs C; with E and F it needs B and then C. Enumerating the 63 subsets and keeping those equal to their own closure leaves 21 (the whole of R is one of them).

More DBMS and SQL questions

Exams that ask this topic