Skip to main content

GATE CSE 2024Databases › Normalization & Functional DependenciesVerified

GATE CSE 2024 PYQ: A functional dependency F : X → Y F: X \rightarrow Y F : X → Y is termed as a useful functional dependency…

A functional dependency F:X→YF: X \rightarrow Y is termed as a useful functional dependency if and only if it satisfies all the following three conditions:


For a relation R\text{R} with 4 attributes, the total number of possible useful functional dependencies is __________.

    Answer

    50

    Approach

    Count ordered pairs (X, Y) of attribute sets such that X and Y are non-empty, X ⊆ attributes(R), Y ⊆ attributes(R), and X ∩ Y = ∅. For a relation with n = 4 attributes, fix the size r = |X|, choose X in C(4, r) ways, then choose any non-empty subset of the remaining 4 - r attributes as Y.

    The conditions define a 'completely non-trivial' functional dependency: non-empty left side, non-empty right side, and disjoint left and right attribute sets. Counting all such dependencies for a 4-attribute relation gives 50.

    Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.