GateAI
Transactions and Concurrency Control

GATE CSE 2016 Set 2 · Q22

MCQ1 markEasy

Time

Suppose a database schedule SS involves transactions T1,…,TnT_1, \ldots, T_n. Construct the precedence graph of SS with vertices representing the transactions and edges representing the conflicts. If SS is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule? (A) Topological order (B) Depth-first order (C) Breadth-first order (D) Ascending order of transaction indices

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) Topological order

Transactions and Concurrency Control

If a schedule SS is conflict-serializable, its precedence (or serialization) graph is a Directed Acyclic Graph (DAG).

A topological sort of a DAG produces a linear ordering of its vertices such that for every directed edge (Ti,Tj)(T_i, T_j), transaction TiT_i appears before TjT_j. Executing the transactions in this topological order produces a serial schedule that preserves all conflict dependencies, ensuring equivalence to schedule SS.

Hence, the correct option is (A).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Transactions and Concurrency Control previous year question is Q22 of the GATE CSE 2016 Set 2 paper. Find more GATE CSE PYQs on Transactions and Concurrency Control in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Transactions and Concurrency Control PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Transactions and Concurrency Control in GATE CSE

Transactions and Concurrency Control has 25 GATE CSE PYQs across 20 papers from 2012 to 2026. 7 of them are 1-mark MCQs like this one, and GATE CSE 2016 Set 2 has 2.

How GATE tests Transactions and Concurrency Control

More from GATE CSE 2016 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2016 Set 2 · Q22 · MCQ

Suppose a database schedule S involves transactions T1, , Tn. Construct the precedence graph of S with vertices representing the transactions and edges representing the conflicts. If S is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule? (A) Topological order (B) Depth-first order (C) Breadth-first order (D) Ascending order of transaction indices

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.