Professional Documents
Culture Documents
C025-01-0485/2013
ADVANCED DATABASE
CAT1
T1
R(X)
W(X)
Time (t)
T1
T2
T3
T4
T5
T6
T1
T2
T3
R(Y)
W(Y)
R(Z)
W(Z)
R(Y)
W(Y)
R(Z)
W(Z)
R(Y)
W(Y)
R(Z)
W(Z)
R(X)
W(X)
T2
W(X)
W(Z)
R(X)
W(X)
T3
R(Y)
R(Z)
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16
R(X)
R(Z)
W(Y)
W(Z)
R(Y)
R(Z)
R(Y)
W(Y)
W(Y)
W(Z)
iv. By first outlining the procedure, test if the above schedule is conflict serializable.
(5 marks)
A schedule is conflict serializable if and only if its precedence graph is cyclic. Construct a
precedence graph and look for cycles which takes order n2 time, where n is the number of
vertices in the graph and n+e where e is the number of edges. If the precedence graph is cyclic
obtain the serializability order by topological sorting of the graph.
b) Giving examples, differentiate between Cascade less schedules and strict schedules (4
marks)
Cascade less-to attain this schedule ever transaction must read only commited.Refers to cases
where we have aborts. One where a rollback does not cascade to other transaction
T1
R(X)
W(X)
R(Y)
W(Y)
Abort
Roll back
T2
R(X)
W(X)
Commit
Strict schedules -A schedule is strict if overriding of uncommitted data is not allowed. Formally,
if it satisfies the following conditions: