CS FundamentalsVery hardGATE CS (PYQ pattern)

T1: R1(X), W1(Y), C1 and T2: W2(X), R2(Y), C2. Of all interleavings, let s be the number that are strict schedules (no read or write of an item written by a still-uncommitted transaction), r the number that are rigorous (strict, and also no write of an item read by a still-uncommitted transaction) and c the number that are conflict-serializable. What is (s, r, c)?

  1. A. (8, 2, 14)
  2. B. (7, 3, 14)
  3. C. (7, 2, 14)
  4. D. (2, 7, 14)

Correct answer: C. (7, 2, 14)

There are 20 interleavings of the 6 operations. Enumerating them gives s = 7, r = 2, c = 14. Rigorous is a subset of strict, which is not always a subset of conflict-serializable.

More DBMS and SQL questions

Exams that ask this topic