Skip to content
GATEiit

GATE CSE 2020 Q47: Schedule conflict equivalent to a given two-transaction schedule

Question

Consider a schedule of transactions T1T_1 and T2T_2 (time runs left to right):

Given schedule
T1T_1RARCWDWBCommit
T2T_2RBWBRDWCCommit
Schedule (A)
T1T_1RARCWDWBCommit
T2T_2RBWBRDWCCommit
Schedule (B)
T1T_1RARCWDWBCommit
T2T_2RBWBRDWCCommit
Schedule (C)
T1T_1RARCWDWBCommit
T2T_2RBWBRDWCCommit
Schedule (D)
T1T_1RARCWDWBCommit
T2T_2RBWBRDWCCommit

Here, RX stands for "Read(X)" and WX stands for "Write(X)". Which one of the following schedules is conflict equivalent to the above schedule?

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 2020 final answer key)

Concept used: Two schedules are conflict equivalent if every pair of conflicting operations appears in the same order in both.

First step: List the conflicting pairs in the given schedule: T2T_2's RB and WB before T1T_1's WB, T2T_2's RD before T1T_1's WD, and T1T_1's RC before T2T_2's WC. Check each option against them.

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 2020 CS question paper and final answer key, organised by IIT Delhi. Question paper · Answer key