CS FundamentalsVery hardGATE
The 3NF synthesis algorithm (based on a minimal cover of functional dependencies) is guaranteed to always produce a decomposition that is BOTH lossless AND dependency-preserving. Why can the same guarantee NOT be made for a BCNF synthesis algorithm in general?
- A. Because, as the City/Street/Zip example shows, satisfying BCNF (every determinant is a superkey) can force splitting apart attributes in a way that no longer allows some original FD to be checked without a join — 3NF's synthesis deliberately allows keeping a 'non-BCNF but harmless' dependency intact specifically to preserve dependency-checking, which is impossible if BCNF is required everywhere
- B. Because 3NF is a stronger condition than BCNF
- C. Because dependency preservation is not a real concern in relational theory
- D. Because BCNF synthesis algorithms don't exist at all
Correct answer: A. Because, as the City/Street/Zip example shows, satisfying BCNF (every determinant is a superkey) can force splitting apart attributes in a way that no longer allows some original FD to be checked without a join — 3NF's synthesis deliberately allows keeping a 'non-BCNF but harmless' dependency intact specifically to preserve dependency-checking, which is impossible if BCNF is required everywhere
3NF's definition explicitly carves out the exception used by its synthesis algorithm (an attribute being prime excuses it from the BCNF-style superkey requirement), which is precisely what allows 3NF synthesis to always keep every original FD checkable without extra joins. BCNF has no such exception — every nontrivial FD's determinant must be a superkey, full stop — so some relations (City/Street/Zip being the classic one) simply cannot reach BCNF without sacrificing dependency preservation.
More DBMS and SQL questions
- Table Products(pid, pname, category, price, stock) rows: (1, 'Pen', 'Stationery', 10, 100), (2, 'Notebook', 'Stationery', 50, 0), (3…
- A database stores timestamps in UTC and converts to local time only at the application layer. A query does WHERE createdat BETWEEN…
- A column price NUMERIC (arbitrary precision decimal) is compared against a literal using price = 19.99. Why is this generally SAFE from…
- A relation R(A, B, C, D) has candidate key ABD (the ONLY candidate key) and FD AB → C (C is non-prime). Which normal form violation does…
- A query optimizer must decide between two equivalent plans for A JOIN B: (1) nested-loop join using an index on B, with A as the outer…
- A relation R(A, B, C, D, E) has FDs AB → C, C → DE. Which of the following is the candidate key, and how many non-prime attributes does R…