Closure of Attribute Sets
Next: Canonical Cover
Up: Functional Dependencies
Previous: Closure of a
-
To test whether a set of attributes
is a superkey, we need to
find the set of attributes functionally determined by
.
-
Let
be a set of attributes.
We call the set of attributes determined by
under a set
of
functional dependencies the closure of
under
,
denoted
.
-
The following algorithm computes
:

-
If we use this algorithm on our example to calculate
then we find:
-
This algorithm has worst case behaviour quadratic in the size of
.
There is a linear algorithm that is more complicated.
Page created and maintained by Osmar R. Zaï ane
Last Update:
Mon Oct 16 17:01:17 PDT 1995