Skip to content
GATEiit

GATE CSE 2022 Q31: Number of superkeys of R(A, B, C, D, E) with three FDs

Question

Consider a relation R(A,B,C,D,E)R(A, B, C, D, E) with the following three functional dependencies.

AB→CAB \to C; BC→DBC \to D; C→EC \to E;

The number of superkeys in the relation R is _____________.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 8 (official GATE 2022 final answer key)

Concept used: Attributes that never appear on a right side must be in every key; superkeys are supersets of candidate keys.

First step: A and B never appear on the right, so check whether AB+AB^+ is all of RR; then count supersets of ABAB.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2022 CS question paper and final answer key, organised by IIT Kharagpur. Question paper · Answer key