Skip to content
GATEiit

GATE CSE 2022 Q39: Serial schedule conflict equivalent to a four-transaction schedule

Question

Let Ri(z)R_i(z) and Wi(z)W_i(z) denote read and write operations on a data element zz by a transaction TiT_i, respectively. Consider the schedule S with four transactions.

S: R4(x)R2(x)R3(x)R1(y)W1(y)W2(x)W3(y)R4(y)R_4(x) R_2(x) R_3(x) R_1(y) W_1(y) W_2(x) W_3(y) R_4(y)

Which one of the following serial schedules is conflict equivalent to S?

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 2/3 mark in GATE.
Show answer and explanation

Answer: A (official GATE 2022 final answer key)

Concept used: Build the precedence graph from conflicting pairs (same item, different transactions, at least one write) and topologically sort it.

First step: List conflicts on x (reads before W2(x)W_2(x)) and on y (R1/W1R_1/W_1 before W3W_3, and both before R4(y)R_4(y)).

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2022 CS question paper and final answer key, organised by IIT Kharagpur. Question paper · Answer key