← RGPV CS-502 DBMS May 2024 solved question paper
← RGPV CS-502 DBMS November 2019 solved question paper
May 2024 — Q5(a)
Question (restated): Explain how to compute the closure of a set of functional dependencies using an example.
Answer
F⁺ is the set of every functional dependency logically implied by F. Armstrong’s axioms are reflexivity (if Y is a subset of X then X→Y), augmentation (X→Y implies XZ→YZ), and transitivity (X→Y and Y→Z imply X→Z). They are sound and complete. To compute F⁺ systematically, enumerate every subset X of the relation attributes, initialize X⁺=X, and repeatedly add the right side of each dependency whose left side is contained in X⁺ until no change occurs. For each subset Y of X⁺, output X→Y. Example R(A,B,C), F={A→B,B→C}: A⁺=ABC, B⁺=BC, C⁺=C, AB⁺=AC⁺=ABC, BC⁺=BC, ABC⁺=ABC, empty closure is empty. Hence A→C and A→BC are implied, while C→A is not. F⁺ contains trivial and augmented dependencies too. The exhaustive method is exponential; testing a single dependency X→Y requires only one attribute closure.

November 2019 – Question 5(a)
Question (restated): Explain closure of functional dependencies and closure of attribute sets.
Answer
F⁺ is the set of all dependencies logically implied by F. X⁺ is the set of attributes determined by X under F. For R(A,B,C), F={A→B,B→C}, start with A⁺={A}, add B, then C; A⁺=ABC. B⁺=BC and C⁺=C. By transitivity A→C belongs to F⁺. To enumerate F⁺, compute X⁺ for each subset X of R and include X→Y for every subset Y of X⁺. This can be exponential, so practical algorithms test individual implications using attribute closure.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion