GATE / CS ARCHIVE

GATE CSE 2024 SET 1 / QUESTION 44

Prove functional dependencies and refute a converse

Database Management Systems · Functional Dependencies & Keys · Full GATE CSE 2024 Set 1 paper

GATE 2024 Set 1, Q44 2 marks · MSQ
Report issue

Functional Dependencies & Keys

Question 44, GATE 2024: Which functional-dependency implications are valid? A XY→ZW implies X→ZW. B XY→ZW implies XY→Z. C XY→Z and W→Y imply XW→Z. D X→Y and Y→Z imply X→Z. Concatenated letters denote attribute sets.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C, D

Step through it (4 parts)

Approach: Treat a functional dependency as a guarantee that equality on its left side forces equality on its right side. Use Armstrong-style inference or a concrete counterexample.
1. A is false: dropping a determinant attribute can lose information. Consider rows (X,Y,Z,W)=(0,0,0,0) and (0,1,1,1). Their XY values differ, so XY→ZW holds, but equal X values have different ZW values, violating X→ZW.
2. B is true by decomposition. If equal XY forces both Z and W to agree, it certainly forces Z alone to agree.
3. C is true. From equal XW, we have equal W, hence equal Y by W→Y. We now have equal XY, which forces equal Z by XY→Z. Equivalently, the closure of XW contains Y and then Z.
4. D is the transitivity rule: agreement on X gives agreement on Y, then on Z.
Answer: B, C and D. Decomposing the right-hand side is valid; arbitrarily decomposing the left-hand side is not.

Original paper, page 28 · Answer key