CHAPTER 7

7.1 See the body of the chapter.

7.2 The closure F+ of a set F of FDs is the set of all FDs implied by those in F. The closure of the set of FDs that hold in the shipments relvar SP is given in the answer to Exercise 4.1.

7.3 The FD XY is satisfied if and only if whenever two tuples agree on X, they also agree on Y (I’m deliberately giving this definition in a pretty loose form). So:

  • If two tuples agree on X, they certainly agree on every subset Y of X, so the reflexivity rule is reasonable.

  • If two tuples agree on XZ, they certainly agree on Z. They also certainly agree on X and hence, if XY is satisfied, on Y as well; hence they agree on YZ, and so the augmentation rule is reasonable.

  • If two tuples agree on X and XY is satisfied, they agree on Y. If they agree on Y and YZ is satisfied, they agree on Z. So the transitivity rule is reasonable.

7.4 See the body of the chapter.

7.5 Let U denote the intersection of Z and Y and let V denote the difference Z – Y between Z and Y (in that order). Then:

  1. XY (given)

  2. ZW (given)

  3. XU (1, decomposition)

  4. XVUV (3, augmentation)

  5. XVZ (simplifying 4)

  6. XVW (5, 2, transitivity)

  7. XVYW (1, 6, composition; this completes the proof)

The rules used in this proof are indicated in the comments. The following rules are all special cases of Darwen’s theorem: the union, transitivity, and augmentation rules. So too is the following useful rule:

  • If XY and XYZ, then XZ.

Note: This latter is a special case of what’s sometimes called the pseudotransitivity rule, which in its general form looks like this:

  • If XY and YWZ, then XWZ.

7.6 The first step is to rewrite the given set of FDs such that every FD has a singleton right side:

  1. ABC

  2. CA

  3. BCD

  4. ACDB

  5. BEC

  6. CEA

  7. CEF

  8. CFB

  9. CFD

  10. DE

  11. DF

Now:

  • 2 implies 6, so we can drop 6.

  • 8 implies CFBC by augmentation, which with 3 implies CFD by transitivity, so we can drop 9.

  • 8 implies ACFAB by augmentation, and 11 implies ACDACF by augmentation, and so ACDAB by transitivity, and so ACDB by decomposition, so we can drop 4.

No further reductions are possible, and so we’re left with the following irreducible cover:

     ABC
     CA
     BCD
     BEC
     CEF
     CFB
     DE
     DF

Alternatively:

  • 2 implies 6, so we can drop 6 (as before).

  • 2 implies CDAD by augmentation, which implies CDACD by augmentation again, which with 4 implies CDB by transitivity, so we can replace 4 by CDB.

  • 2 and 9 imply CFAD by composition, which implies CFADC by augmentation, which with (the original) 4 implies CFB by transitivity, so we can drop 8.

No further reductions are possible, and so we’re left with the following irreducible cover:

     ABC
     CA
     BCD
     CDB
     BEC
     CEF
     CFD
     DE
     DF

Observe, therefore, that there are (at least) two distinct irreducible covers for the original set of FDs. Note too that those two covers have different cardinalities.

7.7 Yes, it is. The easiest way to prove this result is to compute the closure ACF+ of the set ACF, which turns out to be the entire set ABCDEFG. Alternatively, we can apply Armstrong’s axioms and the other rules discussed in the body of the chapter, as follows:

  1. AB (given)

  2. ACFBCF (1, augmentation)

  3. BCE (given)

  4. BCFEF (3, augmentation)

  5. ACFEF (2, 4, transitivity)

  6. ACFAEF (5, augmentation)

  7. AEFG (given)

  8. ACFG (6, 7, transitivity)

  9. BCDE (given)

  10. BCD (9, decomposition)

  11. BCFDF (10, augmentation)

  12. BCFD (11, decomposition)

  13. ACFD (2, 12, transitivity)

  14. ACFDG (7, 13, composition)

7.8 Let’s number the FDs of the first set as follows:

  1. AB

  2. ABC

  3. DAC

  4. DE

Now, 3 can be replaced by:

3. DA and DC

Next, 1 and 2 together imply (see the “useful rule” mentioned near the end of the answer to Exercise 7.5) that 2 can be replaced by:

2. AC

But now we have DA and AC, so DC is implied by transitivity and can be dropped, leaving:

3. DA

The first set of FDs is thus equivalent to the following irreducible cover:

     AB
     AC
     DA
     DE

The second given set of FDs

     ABC
     DAE

is clearly also equivalent to this same irreducible cover. The two given sets are thus equivalent.

7.9 The set is clearly reducible, since CJ and CJI together imply CI. As for keys: An obvious superkey is ABCDGJ (the combination of all attributes mentioned on the left sides of the given FDs). We can drop J from this set because CJ, and we can drop G because ABG. Since none of A, B, C, D appears on the right side of any of the given FDs, it follows that ABCD is a key.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset