GateMCQSCIENTIFIC PREP LAB
PlanSign Up
INTERMEDIATEFrequently Tested 4 min read 21 views

Conflict Serializability (Precedence Graph) & B+ Tree Order Math

Testing conflict serializability via cycle detection, counting topological serial equivalents, and B vs B+ tree node equations.

Conflict Serializability & Precedence Graph

Two operations conflict if they belong to different transactions, access the same data item XX, and at least one is a WRITE(X) (RW, WR, or WW).

  1. Build directed graph G=(T,E)G = (T, E) with edge Ti→TjT_i \to T_j whenever an operation in TiT_i precedes and conflicts with one in TjT_j.
  2. Schedule SS is Conflict Serializable   ⟺  G\iff G has NO directed cycle (is a DAG)!
  3. Every Conflict Serializable schedule is View Serializable, not vice-versa (blind writes can create view-serializable schedules with cycles).
Key Formulas Summary
B+ Tree Internal Node Order p
p⋅Pblock+(p−1)⋅Kkey≤Block Sizep \cdot P_{\text{block}} + (p - 1) \cdot K_{\text{key}} \le \text{Block Size}
Note: Internal nodes store NO data record pointers in a B+ Tree!
B-Tree Node Order p
p⋅Pblock+(p−1)(Kkey+Precord)≤Block Sizep \cdot P_{\text{block}} + (p - 1)(K_{\text{key}} + P_{\text{record}}) \le \text{Block Size}
Note: Every key in a B-Tree carries a data record pointer!
#DBMS#Transactions#B+ Tree#Indexing

Practice Questions on This Chapter (3)

Q1GATE CS DBMS NATNATMEDIUM
+2M • 0 Neg

In a B+B^+ tree index, disk block size is 1024 bytes1024\text{ bytes}, search key size is 12 bytes12\text{ bytes}, block pointer is 8 bytes8\text{ bytes}, and data record pointer is 10 bytes10\text{ bytes}. What is the maximum order pp (maximum block pointers) of an internal (non-leaf) node?

Q2GATE CS 2023NATMEDIUM
+2M • 0 Neg

In a B+B^+ tree, search keys are 12 bytes12\text{ bytes}, disk block pointers are 8 bytes8\text{ bytes}, record pointers are 10 bytes10\text{ bytes}, and disk block size is 512 bytes512\text{ bytes}. What is the maximum order pp (maximum number of block pointers) of an internal node?

Q3GATE CS 2021 Set-1MCQMEDIUM
+2M • -0.67

Consider schedule S:r1(X),  r2(Y),  w1(Y),  r3(X),  w2(X),  w3(Y)S: r_1(X),\; r_2(Y),\; w_1(Y),\; r_3(X),\; w_2(X),\; w_3(Y). Is SS Conflict Serializable, and if so, what is its equivalent serial order?

⚡ Click an option above to verify instantly
Previous TopicFunctional Dependencies, Candidate Keys & Normalization (1NF–BCNF)Next Topic DBMS 2027 Rank-Decider: Relational Division (R ÷ S), SQL Double-NOT-EXISTS & ARIES WAL Recovery