CS FundamentalsVery hardGATE CS

Transactions are T1: R(A) W(A) R(B); T2: W(A) R(B) W(B); T3: R(B) W(A) (each executes its operations in the order shown). Of all possible interleavings of the 8 operations, how many are conflict serializable?

  1. A. 77
  2. B. 27
  3. C. 508
  4. D. 52

Correct answer: D. 52

There are 560 interleavings (8!/(3!3!2!)). Building the precedence graph for each and keeping those without a cycle leaves 52; the other 508 are not conflict serializable.

More DBMS and SQL questions

Exams that ask this topic