CS FundamentalsHardGATE CS

Which serial order is conflict-equivalent to the schedule R2(A), R1(B), W3(A), W1(C), R3(C), R4(B), W4(A)?

  1. A. T1, T3, T2, T4
  2. B. T1, T2, T4, T3
  3. C. T2, T1, T3, T4
  4. D. No serial order: the schedule is not conflict-serializable

Correct answer: C. T2, T1, T3, T4

Conflicts give T2 → T3 (R2(A), W3(A)), T1 → T3 (W1(C), R3(C)), T2 → T4 (R2(A), W4(A)) and T3 → T4 (W3(A), W4(A)). The graph is acyclic and T2, T1, T3, T4 respects every edge; the others put T3 before T2 or T4 before T3.

More DBMS and SQL questions

Exams that ask this topic