Closure of Attribute Sets



next up previous
Next: Canonical Cover Up: Functional Dependencies Previous: Closure of a

Closure of Attribute Sets

  1. To test whether a set of attributes is a superkey, we need to find the set of attributes functionally determined by .
  2. 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 .

  3. The following algorithm computes :

  4. If we use this algorithm on our example to calculate then we find:
  5. 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