Skip to content
Official PYQ · 2000

GATE CS 2000 Q2.24 — Normal Forms

Explain with AI

Given the following relation instance.

XYZ142153163322\begin{array}{|l|l|}\hline \text{X} & \text{Y} & \text{Z} \\ \hline \text{1} & \text{4} & \text{2} \\ \text{1} & \text{5} & \text{3} \\ \text{1} & \text{6} & \text{3} \\ \text{3} & \text{2} & \text{2} \\ \hline \end{array}

Which of the following functional dependencies are satisfied by the instance?

Choose one option
View worked solution

Answer: B

A functional dependency A→BA \rightarrow B is satisfied by a relation instance if and only if for any two tuples t1t_1 and t2t_2 in the relation, t1[A]=t2[A]t_1[A] = t_2[A] implies t1[B]=t2[B]t_1[B] = t_2[B]. If all values of the determinant attribute AA are unique in the instance, then A→BA \rightarrow B is trivially satisfied.

Let's evaluate the given relation instance:

XYZ142153163322\begin{array}{|c|c|c|} \hline \text{X} & \text{Y} & \text{Z} \\ \hline 1 & 4 & 2 \\ 1 & 5 & 3 \\ 1 & 6 & 3 \\ 3 & 2 & 2 \\ \hline \end{array}

Let's check the functional dependencies in Option B:

  1. Checking YZ→XYZ \rightarrow X:

    The values of the composite attribute YZYZ for each row are:

    • Row 1: (4,2)→1(4, 2) \rightarrow 1
    • Row 2: (5,3)→1(5, 3) \rightarrow 1
    • Row 3: (6,3)→1(6, 3) \rightarrow 1
    • Row 4: (2,2)→3(2, 2) \rightarrow 3

    Since all YZYZ pairs are unique, YZ→XYZ \rightarrow X is satisfied.

  2. Checking Y→ZY \rightarrow Z:

    The values of YY are 4,5,6,4, 5, 6, and 22. Since all values of YY are unique, Y→ZY \rightarrow Z is trivially satisfied.

Thus, both YZ→XYZ \rightarrow X and Y→ZY \rightarrow Z are satisfied by the relation instance.


Why other options are incorrect:

  • Option A: Z→YZ \rightarrow Y is violated because Z=2Z = 2 maps to both Y=4Y = 4 (Row 1) and Y=2Y = 2 (Row 4).
  • Option C: X→ZX \rightarrow Z is violated because X=1X = 1 maps to both Z=2Z = 2 (Row 1) and Z=3Z = 3 (Row 2).
  • Option D: XZ→YXZ \rightarrow Y is violated because XZ=(1,3)XZ = (1, 3) maps to both Y=5Y = 5 (Row 2) and Y=6Y = 6 (Row 3).

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Normal Forms questions