Minimal canonical cover worked example

December 4, 2026 · Team EasyExamNotes · 3 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CS-502 DBMS November 2023 solved question paper

← RGPV CS-502 DBMS November 2019 solved question paper

RGPV CS-502 (GS) | November 2023 | Q5(b) | 7 marks

Question (restated): Find a minimal cover for R(W,X,Y,Z) with X→W, WZ→XY and Y→WXZ.

Answer

A minimal cover is an equivalent set of functional dependencies with singleton right sides, no extraneous left-side attributes and no redundant dependencies. Different equivalent minimal covers may exist.

First split the right sides: X→W, WZ→X, WZ→Y, Y→W, Y→X, Y→Z. Neither W nor Z alone determines X or Y, so neither attribute can be removed from the WZ determinants. The remaining determinants are singleton sets.

Next remove Y→W because Y→X and X→W imply it. Remove WZ→X because WZ→Y and Y→X imply it. The remaining set is X→W, WZ→Y, Y→X, Y→Z.

Check redundancy individually: without X→W, X cannot derive W; without WZ→Y, WZ cannot derive Y; without Y→X, Y can derive Z but not X or W; without Y→Z, Y can derive X and W but not Z. Thus no remaining dependency is redundant.

Check equivalence: the reduced set implies WZ→XY by WZ→Y followed by Y→X. It implies Y→WXZ through Y→X, X→W and Y→Z. X→W is unchanged. Conversely every retained dependency is present in the original set or follows by decomposition. Therefore both sets have the same closure.

Final minimal cover: {X→W, WZ→Y, Y→X, Y→Z}. If the convention allows combining dependencies with identical left sides, write the canonical cover as {X→W, WZ→Y, Y→XZ}.

Further reading: Silberschatz, Korth and Sudarshan, Database System Concepts; Elmasri and Navathe, Fundamentals of Database Systems.


November 2019 – Question 5(b)

Question (restated): Explain canonical cover and extraneous attributes with examples.

Answer

A canonical cover is an equivalent set of functional dependencies with redundant dependencies and extraneous attributes removed, often combining dependencies with identical left sides. An attribute is extraneous if removing it preserves the closure of the dependency set.

Algorithm

  1. Split right-hand sides into single attributes.
  2. For each X→A, test each B in X: if A belongs to (X−{B})⁺ under the current set, B can be removed.
  3. For each dependency X→A, compute X⁺ without that dependency. If A is still present, remove the dependency.
  4. Repeat until stable; optionally combine equal left sides.

Example

Let F={A→B, AB→C, A→C, C→D}. In AB→C, B is extraneous because A⁺ contains C. Replace AB→C with A→C, eliminating the duplicate. The resulting cover is {A→B,A→C,C→D}, or {A→BC,C→D} after union. Neither A→B nor A→C can be removed from the singleton cover, and C→D is essential. The original set implies the cover, and the cover implies AB→C by augmentation and decomposition. Thus both sets have identical closures.

A canonical cover is useful for 3NF synthesis, dependency preservation and reducing redundant integrity checks. Equivalent minimal covers need not be unique.

← RGPV CS-502 DBMS November 2023 solved question paper

← RGPV CS-502 DBMS November 2019 solved question paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion