CS FundamentalsVery hardGATE CS (PYQ pattern)

Schedule: R1(A), W2(A), R3(B), R2(B), W3(C), W1(C), R4(D). How many different serial orders of T1, T2, T3, T4 are conflict-equivalent to it?

  1. A. 6
  2. B. 3
  3. C. 1
  4. D. 4

Correct answer: D. 4

Conflicting pairs: R1(A) before W2(A) gives T1 → T2; W3(C) before W1(C) gives T3 → T1; R3(B) before... R2(B) is a read-read pair (no edge); T4 touches only D. The precedence graph is [(1, 2), (3, 1)]; its topological orders (T4 is free) number 4.

More DBMS and SQL questions

Exams that ask this topic