Precedence graph and conflict serializability November 2022

December 4, 2026 · Team EasyExamNotes · 1 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CS-502 DBMS November 2022 solved question paper

RGPV CS-502 (GS) | November 2022 | Q7(a) | 7 marks

Question (restated): Construct the precedence graph for the supplied schedule and determine conflict serializability.

Answer

Precedence graph and conflict serializability November 2022
Precedence graph and conflict serializability November 2022
Step T1 T2 T3
1 R(A)
2 R(A)
3 R(B)
4 R(B)
5 W(A)
6 W(B)
7 W(B)

Two operations conflict when they belong to different transactions, access the same item and at least one is a write. A precedence edge points from the earlier conflicting operation’s transaction to the later one.

Conflict Edge
R1(A) before W2(A) T1→T2
R1(B) before W3(B) T1→T3
R3(B) before W1(B) T3→T1
W3(B) before W1(B) T3→T1

Read-read pairs do not conflict. T2 accesses only A and T3 only B, so no edge joins them. The graph contains the directed cycle T1→T3→T1. A precedence graph admits a topological ordering if and only if it is acyclic. Here T1 must precede T3 because of the read-write conflict, but T3 must precede T1 because of the other conflicts. Both requirements cannot hold simultaneously.

Answer: The schedule is not conflict serializable. This conclusion concerns conflict equivalence, not necessarily every other definition of serializability.

Further reading: Silberschatz, Korth and Sudarshan, Database System Concepts.

← RGPV CS-502 DBMS November 2022 solved question paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion