Consider a schema with the attribute set ABCDFG and the following FDs:

AB --> CD, BC --> FG,A --> G, G --> B, C --> G.

(a) Find a minimal cover of this set of FDs.
(b) Is the decomposition of the previous schema into ABCD and CFG lossless?


(a) Find a minimal cover of this set of FDs.
Step 1
AB --> C
AB --> D
BC --> F
BC --> G
A --> G
G --> B
C --> G
Step 2 - Reduce the left-hand sides
Since A+ = AGBCD (and so A-->B is entailed), we can replace the first two FDs with
A --> C, A --> D.
Similarly, C+ = CGBFG, so FDs 3 and 4 can be replaced with C --> F, C --> G (the latter is
a duplicate and can be deleted).
Step 3 - eliminate redundant FDs
A --> G is redundant due to A --> C, C --> G. So, we end up with the following minimal
cover:
A --> C
A --> D
C --> F
G --> B
C --> G

(b) Is the decomposition of the previous schema into ABCD and CFG lossless?
The decomposition into ABCD and CFG is lossless, since the intersection is C and C+ =
CFGB. In particular, the FDs imply C -> CFG, which implies losslessness according to the
losslessness criteria.

Computer Science & Information Technology

You might also like to view...

Size, shape, color, weight, height and number of doors are all good examples of __________.

a. objects b. behaviors c. attributes d. operations

Computer Science & Information Technology

Alice is telling Bob that he should use a pair of the form (3, n) or (16385, n) as his RSA public key, where, as usual, n = pq, for two large primes, p and q, if he wants people to encrypt messages for him from their cell phones. What is the justification for Alice's advice?

What will be an ideal response?

Computer Science & Information Technology

A(n) __________ is a computer that presents itself as a sweet, tempting target to a hacker but, in reality, is a decoy.

A. demilitarized zone (DMZ) B. honeypot C. posture assessment D. quarantine network

Computer Science & Information Technology

You can give a state a new name called a(n) ____.

A. capital B. snapshot C. index D. resolution

Computer Science & Information Technology