∑GateAndNet
Practice MCQs
GATE CS / Databases (DBMS)
Edit
INTERMEDIATE🔥 High-Yield Exam Topic 4 min read 4 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).
📐 Quick Revision Formula Sheet
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}
💡 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}
💡 Every key in a B-Tree carries a data record pointer!
#DBMS#Transactions#B+ Tree#Indexing

🎯 Practice PYQs on This Topic (1)

Q1.GATE CS DBMS NATNATMEDIUM
+2 Marks • No Negative

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?

Previous TopicFunctional Dependencies, Candidate Keys & Normalization (1NF–BCNF)Next Topic IPv4 CIDR Subnetting, CSMA/CD Minimum Frame & Sliding Window Math