Course: ECE 2215: Database Systems Student: Raidah (Roll: 2310035) Instructors: Mst. Nafia Islam Shishir (NIS MAM) & Md. Rakibul Islam (RI SIR) Topic Reference: Syllabus Unit 6 | subtopicwise_list.md T10 (51 marks · 8.0% · 7/7 · 🔴) Source Pages: Page 26 (Right), Page 27 (Left, Right), Page 28 (Left)
1. Conflict Serializability & Precedence Graphs
Two operations in a concurrent schedule conflict if they belong to different transactions, access the exact same data item Q, and at least one of them is a write(Q):
read(Q)−write(Q)⟹ Conflict
write(Q)−read(Q)⟹ Conflict
write(Q)−write(Q)⟹ Conflict
read(Q)−read(Q)⟹ Non-conflicting (can be reordered freely)
Interleaved Concurrent Schedule:
T1
T2
T3
R(x)
R(y)
R(z)
R(y)
R(z)
W(z)
W(y)
R(z)
W(x)
W(z)
Figure 26.2 — Precedence graph for conflict serializability (Page 26)
Precedence Graph Testing Rules:
A directed edge Ti→Tj is drawn if an operation of Ti conflicts with and executes before an operation of Tj.
Here: T2→T3 (due to W(z) in T2 conflicting with subsequent operations), T2→T1, and T3→T1.
In-degree concept:
In-degree 0 means no directed arrow enters that transaction node (0 incoming edges).
A transaction with in-degree 0 has no preceding dependencies, so it executes first in topological sorting.
Conflict Serializability Test:
If the precedence graph contains no cycle, the schedule is conflict serializable.
If a cycle exists, the schedule is not conflict serializable.
Equivalent Serial Order:T2⟶T3⟶T1
2. Blind Writes & View Serializability
Blind Write:
Executing a write on data item Q without reading it first:
T3:read(Q),T4:write(Q)(writing without prior reading is a blind write)
View Serializability Conditions:
Schedule S and serial schedule S′ are view equivalent if they satisfy three strict conditions:
Initial Read: For each data item Q, if transaction Ti reads the initial value of Q in schedule S, it must also read the initial value of Q in schedule S′.
Final Write: For each data item Q, if transaction Ti executes the final write on Q in schedule S, it must execute the final write on Q in schedule S′.
Intermediate Read (Update-Read): If transaction Ti reads a value of Q that was written by transaction Tj in schedule S, it must also read the value written by Tj in schedule S′.
Every conflict serializable schedule is view serializable, but not every view serializable schedule is conflict serializable.
Role of Blind Writes:
Schedules with blind writes can be view serializable without being conflict serializable (blind writes allow schedule equivalence without satisfying standard conflict swap conditions).
Schedules containing blind writes may be view serializable even if they fail conflict serializability.
Serial Execution Comparison:
A serializable concurrent schedule is equivalent to executing the transactions sequentially in serial order (T2→T3→T1), guaranteeing total isolation and consistency.