8. Functional Dependencies Flashcards

(6 cards)

1
Q

Functional Dependency (FD):

A

A constraint denoted by X → Y, where X (LHS) and Y (RHS) are sets of attributes in a relation R. It specifies that for any two tuples, if they have the same values for attributes in X, they must have the same values for attributes in Y. X determines Y, or Y is functionally dependent on X.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Inference Rules (Armstrong’s Axioms):

A

A set of rules used to infer additional FDs implied by a given set F.
◦ Reflexive: If Y ⊆ X, then X → Y.
◦ Augmentation: If X → Y, then XZ → YZ and XZ → Y (for any Z).
◦ Transitive: If {X → Y, Y → Z}, then X → Z.
◦ Decomposition (Projective): If X → YZ, then X → Y and X → Z.
◦ Union (Additive): If {X → Y, X → Z}, then X → YZ.
◦ Pseudotransitive: If {X → Y, WY → Z}, then WX → Z.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Closure of FDs (F+):

A

The set of all FDs that can be inferred from a given set F using the inference rules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Closure of Attributes (X+):

A

Given a set of FDs F and a set of attributes X, X+ is the maximal set of attributes determined by X. Algorithm: Start with X, repeatedly add attributes determined by any set of attributes currently in X+ based on the FDs in F.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Redundant FD:

A

An FD X → Y in a set F is redundant if it can be inferred from the other FDs in F (i.e., F+ = (F - {X → Y})+).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Minimal Cover:

A

A set of FDs F is minimal (irreducible) if every RHS is a single attribute, every LHS is irreducible (no redundant attributes), and no FD in F is redundant. An algorithm exists to compute a minimal cover for any set of FDs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly