GATE Computer Science · Databases, Theory of Computation, and Compiler Design · hard
Consider two concurrent transactions T1 and T2 in schedule S: R1(X), W2(X), W1(Y), R2(Y). Which two statements about the conflict precedence (serialization) graph of schedule S are true? (Select two.)
Published · Last updated · checked before publication — how we verify questions
Options
Answers: A. Both conflicting pairs on X and Y induce the directed edge T1 -> T2; C. The schedule is conflict-serializable and equivalent to T1 followed by T2
For data item X: R1(X) precedes W2(X), creating a conflict edge T1 -> T2. For data item Y: W1(Y) precedes R2(Y), also creating the edge T1 -> T2. There is no edge T2 -> T1, so the precedence graph is acyclic and S is conflict-serializable (equivalent to the serial order T1 followed by T2).
Why the other options are wrong
- B. The schedule contains a cycle T1 -> T2 -> T1 and is not conflict-serializable — Both conflicts (R1(X) before W2(X) and W1(Y) before R2(Y)) have T1 before T2, so there is no T2 -> T1 edge.
- D. The schedule is conflict-equivalent to the serial order T2 followed by T1 — In T2 then T1, W2(X) would precede R1(X), reversing the read-write order on X.
More Databases, Theory of Computation, and Compiler Design questions
- Which two statements regarding formal language classes and bottom-up LR parsers are always true? (Select two.)
- Consider a relation schema R(A, B, C, D, E) with the functional dependency set F = {AB -> C, C -> D, D -> B, D -> E}…
- Consider a relation R(A, B, C) with functional dependencies F = {AB -> C, C -> B}. What is the highest normal form…
All Databases, Theory of Computation, and Compiler Design questions and the topic overview →
GATE is a mark of the Indian Institute of Science and the Indian Institutes of Technology. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by the GATE Committee.