Closure of a Set of Functional Dependencies



next up previous
Next: Closure of Attribute Up: Functional Dependencies Previous: Basic Concepts

Closure of a Set of Functional Dependencies

  1. We need to consider all functional dependencies that hold. Given a set of functional dependencies, we can prove that certain other ones also hold. We say these ones are logically implied by .

  2. Suppose we are given a relation scheme , and the set of functional dependencies:

    Then the functional dependency is logically implied.

  3. To see why, let and be tuples such that

    As we are given A B , it follows that we must also have

    Further, since we also have B H , we must also have

    Thus, whenever two tuples have the same value on , they must also have the same value on , and we can say that A H .

  4. The closure of a set of functional dependencies is the set of all functional dependencies logically implied by .

  5. We denote the closure of by .

  6. To compute , we can use some rules of inference called Armstrong's Axioms:
  7. These rules are sound because they do not generate any incorrect functional dependencies. They are also complete as they generate all of .

  8. To make life easier we can use some additional rules, derivable from Armstrong's Axioms:
  9. Applying these rules to the scheme and set mentioned above, we can derive the following:



next up previous
Next: Closure of Attribute Up: Functional Dependencies Previous: Basic Concepts



Page created and maintained by Osmar R. Zaï ane
Last Update: Mon Oct 16 17:01:17 PDT 1995