Consider a relation schema with attributes ABCGWXYZ and the set of dependencies F = {XZ ? ZYB, YA ? CG, C ? W , B ? G, XZ ? G}. Solve the following problems using the appropriate algorithms.

a. Find a minimal cover for F.
b. Is the dependency XZA ? YB implied by F?
c. Is the decomposition into XZYAB and YABCGW lossless?
d. Is the above decomposition dependency preserving?


a. Minimal cover: After splitting the right-hand sides, we get XZ ? G plus the following
set:
XZ ? Y
XZ ? B
YA ? C
YA ? G
C ? W
B ? G

It is easy to see that the left-hand sides XZ and YA (as well as C and B) cannot be reduced because there are no FDs of the form X ? ..., Y ? ...,Z ? ...,A ? ..., or {}?....
Then, we notice that XZ G is redundant and none of the other FDs is, so the minimal cover consists of the above siz FDs.

b. Yes, because XZA+= XZAYBCWG, which includes YB.
c. Yes, because XZYAB ? YABCGW = YAB and YAB+= YAMCGW .
d. Yes, because every FD in the above minimal cover is embedded into either XZYAB or YABCGW .

Computer Science & Information Technology

You might also like to view...

An implementation of the functional interface _____________ takes no arguments and produces a value of type T—this is often used to create a collection object in which a stream operation’s results are placed.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What command can you use to test the NIC's ability to send and receive packets?

A. arp-a B. ping 255.255.255.255 C. ping 127.0.0.1 D. ipconfig

Computer Science & Information Technology

Which of the following statements regarding working inside a laptop computer is true?

A. When upgrading a laptop, you should use components that are the same brand as the laptop, or use only recommended components. B. If an internal component needs replacing, you should always replace the component rather than disable it. C. Repairing a laptop is always more cost effective than buying a new one. D. The LCD screen of a laptop is never considered to be a field replaceable unit.

Computer Science & Information Technology

To improve readability, a colon or some other character often separates the label from a content control.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology