A canonical cover
for F (a set of
functional dependencies
In relational database theory, a functional dependency is a constraint between two sets of attributes in a relation from a database. In other words, a functional dependency is a constraint between two attributes in a relation.
Given a relation ' ...
on a
relation scheme) is a set of dependencies such that F
logically implies all dependencies in
, and
logically implies all dependencies in F.
The
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
has two important properties:
# No functional dependency in
contains an extraneous attribute.
# Each left side of a functional dependency in
is unique. That is, there are no two dependencies
and
in
such that
.
A canonical cover is not unique for a given set of functional dependencies, therefore one set F can have multiple covers
.
Algorithm for computing a canonical cover
#
#
Repeat:
## Use the union rule to replace any dependencies in
of the form
and
with
..
## Find a functional dependency in
with an extraneous attribute and delete it from
# ... until
does not change
References
{{reflist
Database theory
Mathematical concepts
Database algorithms