Professional Documents
Culture Documents
a. Check: BCD→ H
b. Check: AED→C
a. F : A→ C, AC→ D, E→ AD, E→ H
b. G: A→ CD, E→ AH
5.For a relation schema R = (A, B, C, D, E), consider the following set of functional dependencies;
8. Consider the transactions T1, T2, and T3 and the schedules S1 and S2 given below.
T1: r1(X);r1(Z);w1(X);w1(Z)
T2: r2(Y);r2(Z);w2(Z)
T3: r3(Y);r3(X);w3(Y)
S1: r1(X);r3(Y);r3(X);r2(Y);r2(Z);w3(Y);w2(Z);r1(Z);w1(X);w1(Z)
S2: r1(X); r3(Y); r2(Y); r3(X); r1(Z);r2(Z); w3(Y); w1(X); w2(Z); w1(Z)
Analyze which one of the schedules is conflict-serializable?
9. Consider the following transactions with data items P and Q initialized to zero:
T1: read(P);
read(Q);
If P=0 then Q:=Q+1;
write(Q);
T2: read(Q);
read(P);
If Q=0 then P:=P+1;
write(P);
Solve and find any non-serial interleaving of T1 and T2 for concurrent execution leads to a serializable
schedule or non-serializable schedule. Explain?
10. Consider the attribute set R = ABCDEGH and the FD set F = {AB → C, AC → B, AD → E, B → D, BC →
A, E → G}.
1. For each of the following attribute sets, do the following:
(i) Name the strongest normal form that is not violated by the relation containing these
attributes.
(ii) Decompose it into a collection of BCNF relations if it is not in BCNF.
(a) ABC, (b) ABCD, (c) ABCEG, (d) DCEGH, (e) ACEH
14. Check whether the given schedule S is conflict serializable and recoverable or not?