← RGPV CS-502-CBGS DBMS June 2020 solved question paper
RGPV CS-502-CBGS | June 2020 | Q4(a) | 7 marks
Question: Find the attribute closures of given FDs in relation R. FDs R (ABCDE) = {AB → C, B → D, C → E, D → A}
Answer

The closure X⁺ of an attribute set X under functional dependencies F is the set of all attributes functionally determined by X. Start with X⁺=X and repeatedly apply any dependency whose left side is contained in the current closure. Stop when no new attribute can be added.
Given: R(A,B,C,D,E), F={AB→C, B→D, C→E, D→A}.
For A⁺, no dependency applies, so A⁺={A}. For B⁺, start with {B}; B→D gives {B,D}; D→A gives {A,B,D}; AB→C gives {A,B,C,D}; C→E gives {A,B,C,D,E}. For C⁺, C→E gives {C,E}. For D⁺, D→A gives {A,D}. For E⁺, no dependency applies. AB⁺ includes B and therefore contains every attribute.
B never occurs on the right side of any given dependency, so every candidate key must contain B. Since B alone determines all attributes, it is the unique candidate key. Any superset of B is a superkey but is not minimal.
The question does not specify a particular starting attribute set. The table therefore gives singleton closures and the closure of AB, which is the only composite determinant explicitly listed. For any other subset containing B, the closure is ABCDE. For subsets without B, add A if D is present and E if C is present; no further attributes can be derived. This rule covers all possible subsets, including the empty set.
| X | X⁺ |
|---|---|
| A | A |
| B | ABCDE |
| C | CE |
| D | AD |
| E | E |
| AB | ABCDE |
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion