Skip to content
Official PYQ · 1999

GATE CS 1999 Q2.7 — Normal Forms

Explain with AI

Consider the schema R=(S,T,U,V)R=(S,T, U, V) and the dependencies S→T,T→U,U→VS \rightarrow T, T \rightarrow U, U \rightarrow V and V→SV \rightarrow S. Let R=(R1 and R2)R = (R1\text{ and } R2) be a decomposition such that R1∩R2≠ϕR1 \cap R2 \neq \phi. The decomposition is

Choose one option
View worked solution

Answer: D

To determine the normal form of the decomposed relations, let us first analyze the functional dependencies (FDs) of the relation R(S,T,U,V)R(S, T, U, V):

F={S→T,  T→U,  U→V,  V→S}F = \{S \rightarrow T, \; T \rightarrow U, \; U \rightarrow V, \; V \rightarrow S\}

Step 1: Find the Candidate Keys of RR

Let's compute the attribute closures:

  • S+={S,T,U,V}S^+ = \{S, T, U, V\}
  • T+={T,U,V,S}T^+ = \{T, U, V, S\}
  • U+={U,V,S,T}U^+ = \{U, V, S, T\}
  • V+={V,S,T,U}V^+ = \{V, S, T, U\}

Since the closure of each individual attribute contains all the attributes of the relation, the candidate keys of RR are: {S}\{S\}, {T}\{T\}, {U}\{U\}, and {V}\{V\}.

Step 2: Identify Prime and Non-Prime Attributes

  • Prime attributes (attributes that are part of any candidate key): {S,T,U,V}\{S, T, U, V\}
  • Non-prime attributes: None (∅\emptyset)

Step 3: Analyze the Decomposition R1R_1 and R2R_2

For any decomposition R=(R1,R2)R = (R_1, R_2) where R1∩R2≠∅R_1 \cap R_2 \neq \emptyset:

  1. The attributes in any sub-relation RiR_i (R1R_1 or R2R_2) are a subset of {S,T,U,V}\{S, T, U, V\}.
  2. Since the original FDs form a complete cycle, every single attribute in RiR_i can determine all other attributes in RiR_i. Thus, every attribute in RiR_i is a candidate key for RiR_i.
  3. Consequently, there are no non-prime attributes in either R1R_1 or R2R_2.

Step 4: Check Normal Forms

  • 2NF (Second Normal Form): A relation is in 2NF if there is no partial dependency of a non-prime attribute on any candidate key. Since there are no non-prime attributes, 2NF is trivially satisfied.
  • 3NF (Third Normal Form): A relation is in 3NF if, for every non-trivial dependency X→YX \rightarrow Y, either XX is a superkey or YY is a prime attribute. Since all attributes in R1R_1 and R2R_2 are prime, 3NF is also satisfied.

Thus, the decomposition is in both 2NF and 3NF.

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

Published
Report a correction
Keep exploringMore Normal Forms questions