edited by
2,400 views
1 votes
1 votes

​​​​Consider the following read-write schedule $\text{S}$ over three transactions $T_{1}, T_{2}$, and $T_{3}$, where the subscripts in the schedule indicate transaction IDs:

$S: r_{1}(z) ; w_{1}(z) ; r_{2}(x) ; r_{3}(y) ; w_{3}(y) ; r_{2}(y) ; w_{2}(x) ; w_{2}(y) ;$

Which of the following transaction schedules is/are conflict equivalent to $\text{S}$?

  1. $T_{1} T_{2} T_{3}$
  2. $T_{1} T_{3} T_{2}$
  3. $T_{3} T_{2} T_{1}$
  4. $T_{3} T_{1} T_{2}$
edited by

1 Answer

0 votes
0 votes

$\begin{array}{c|c|c} \hline 
\bf{T_1} & \bf{T_2}& \bf{T_3} \\ \hline
r_1(z)\\
w_1(z) \\
&r_2(x) \\
&&r_3(y) \\
&&w_3(y) \\
&r_2(y)\\ &w_2(x)\\ &w_2(y)\\ \hline
\end{array}$

The corresponding polygraph for the given transaction. it has three conflict pairs as $T_3\rightarrow T_2$ as $r_3(y)\rightarrow w_2(y),w_3(y)\rightarrow r_2(y),w_3(y)\rightarrow w_2(y)$.
Because the graph is acyclic it is CSS and its corresponding conflict equal schedule is based on the topological order of the given graph.

Therefore it's correct TS sequences are:

  1. $T_1,T_3,T_2$
  2. $T_3,T_1,T_2$
  3. $T_3,T_2,T_1$

Option $(B, C, D)$ are correct.

edited by
Answer:

Related questions