GATE / CS ARCHIVE

GATE CSE 2016 SET 2 / QUESTION 22

GATE CSE 2016 Set 2 Q22

Database Management Systems · Transactions & Concurrency Control · Full GATE CSE 2016 Set 2 paper

GATE 2016 Set 2, Q22 1 mark · MCQ
Report issue

Transactions & Concurrency Control

Question 22, GATE 2016: Build a schedule’s precedence graph with transactions as vertices and conflicts as directed edges. If the schedule is “serializable,” which vertex order guarantees a serial schedule? A topological; B depth-first; C breadth-first; D increasing transaction index. Explain the intended meaning of serializable.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Our answer: A under conflict-serializability interpretation

An acyclic precedence graph admits a topological order, and placing transactions in that order respects every conflicting pair, yielding a conflict-equivalent serial schedule. Thus A. The word serializable must mean conflict-serializable here: view-serializable schedules can have cyclic conflict graphs (for example blind writes w1(X), w2(X), w1(X)), so a topological order need not exist under that broader meaning.

An edge Ti→Tj says a conflicting operation of Ti precedes one of Tj and that order must be preserved. A topological sort respects every such edge; ordinary traversal orders need not. For example an edge T2→T1 rules out increasing index order. Graph acyclicity is both necessary and sufficient for conflict serializability, not for every broader serializability notion.

Original paper, page 31 · Answer key