Question

The following functional dependencies hold true for the relational schema R(V,W,X,Y,Z)R(V, W, X, Y, Z):

V→WV \to W
VW→XVW \to X
Y→VXY \to VX
Y→ZY \to Z

Which of the following is irreducible equivalent for this set of functional dependencies?

Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2017 answer key

Solution

Find the canonical cover (minimal cover) by decomposing right-hand sides, eliminating extraneous left-hand attributes, and removing redundant functional dependencies.

Given the functional dependency set:

F={V→W,  VW→X,  Y→VX,  Y→Z}F = \{V \to W, \; VW \to X, \; Y \to VX, \; Y \to Z\}

Step 1: Decompose right-hand sides into single attributes:

F1={V→W,  VW→X,  Y→V,  Y→X,  Y→Z}F_1 = \{V \to W, \; VW \to X, \; Y \to V, \; Y \to X, \; Y \to Z\}

Step 2: Check for extraneous attributes on the left-hand side of VW→XVW \to X:
Compute the attribute closure of VV under F1F_1:

V+={V,W,X}V^+ = \{V, W, X\}

Since W∈V+W \in V^+, attribute WW is extraneous in the left-hand side of VW→XVW \to X. Thus, VW→XVW \to X simplifies to V→XV \to X.
The dependency set becomes:

F2={V→W,  V→X,  Y→V,  Y→X,  Y→Z}F_2 = \{V \to W, \; V \to X, \; Y \to V, \; Y \to X, \; Y \to Z\}

Step 3: Check for redundant functional dependencies in F2F_2:

  • Test Y→XY \to X: Compute Y+Y^+ under F2∖{Y→X}F_2 \setminus \{Y \to X\}:
    Y+={Y}→{Y,V,Z}→{Y,V,Z,W,X}Y^+ = \{Y\} \to \{Y, V, Z\} \to \{Y, V, Z, W, X\}
    Since X∈Y+X \in Y^+, the dependency Y→XY \to X is inferred via Y→VY \to V and V→XV \to X. Hence, Y→XY \to X is redundant and can be removed.

Testing the remaining dependencies:

  • V→WV \to W: V+V^+ without it is {V,X}\{V, X\}, which does not contain WW. Retained.
  • V→XV \to X: V+V^+ without it is {V,W}\{V, W\}, which does not contain XX. Retained.
  • Y→VY \to V: Y+Y^+ without it is {Y,Z}\{Y, Z\}, which does not contain VV. Retained.
  • Y→ZY \to Z: Y+Y^+ without it is {Y,V,W,X}\{Y, V, W, X\}, which does not contain ZZ. Retained.

The resulting irreducible equivalent set is:

{V→W,  V→X,  Y→V,  Y→Z}\{V \to W, \; V \to X, \; Y \to V, \; Y \to Z\}

This matches Option A.

Final answer

A

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2017 Computer Science and Information Technology (CS) Session 1
Question
16 of 65, printed as CS Q.16
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.