DBMS Assignment-4
DBMS Assignment-4
DBMS Assignment-4
04 (UNIT-IV)
Course Outcome-4, Session 2023-24
SUB: Data Base Management Systems (KCS-501)
Q.1. Find out the following schedules is Conflict Serializable or not, If Conflict Serializable
then finds out the equivalent serial schedule.
a) r1(X); r3(Y); r3(X); r2(Y); r2(Z); w3(Y); w2(Z); r1(Z); w1(X); w1(Z).
b) r1(X); r3(Y); r2(Y); r3(X); r1(Z); r2(Z); w3(Y); w1(X); w2(Z); w1(Z).
c) r2(A); w2(A); r3(C); w2(B); w3(A); w3(C); r1(A); r1(B); w1(A); w1(B).
d) r3(C); r2(A); w2(A); w2(B); w3(A); r1(A); r1(B); w1(A); w1(B); w3(C).
e) r2(A); r2(C); w3(A); w2(A); w2(B); w3(C); r1(A); r1(B); w1(A); w1(B).
Q.2 Based upon the given schedule S, answer the following questions.
a) How many conflict equal serial schedules possible?
b) How many view equal serial schedule possible?
T1 T2 T3 T$
R(A)
R(A)
R(A)
R(A)
W(B)
W(B)
W(B)
W(B)
Q.9 Consider a simple check-pointing protocol and the following set of operations in the log.
(start,T4); (write,T4,y,2,3); (start,T1); (commit,T4); (write,T1,z,5,7); (checkpoint);
(start,T2); (write,T2,x,1,9); (commit,T2); (start,T3); (write,T3,z,7,2); If a crash happens ow
and the system tries to recover using both undo and redo operations, what are the contents
of the undo list and the redo list (along with the explanation)
Q.10. Consider the three transactions T1, T2, and T3 and the schedules S1 and S2
given below. Draw the serializability graph for S1 and S2.
T1: r1(X); r1(Z); w1(X);
T2: r2(Z); r2(Y); w2(Z); w2(Y);
T3: r3(X); r3(Y); w3(Y);
S1: r1(X); r2(Z); r1(Z); r3(X); r3(Y); w3(Y); r2(Y); w2(Z); w2(Y);
S2: r1(X); r2(Z); r1(X); r1(Z); r2(Y); r3(Y); w1(X); w2(Z); w3(Y); w2(Y);
Q.11 What are various techniques of recovery from transaction failures? Explain
each one
Q.12 What are ACID properties? Explain it for banking system which have many
accounts and set of transactions that access and updates those accounts.