B+ Tree Index & Range Scan Visualizer
B+ Trees power relational database indexes (PostgreSQL, MySQL InnoDB, SQLite) by storing all data pointers in a doubly linked leaf layer and keeping internal nodes purely for high-fanout routing.
Technical Reference & Equations
- Order-m Node Key Capacity:
\left\lceil \frac{m}{2} \right\rceil - 1 \le k \le m - 1(Every non-root node stays at least 50% full, guaranteeing balanced disk utilization.) - B+ Tree Height Bound:
h \le \left\lfloor \log_{\lceil m/2 \rceil}\left(\frac{N + 1}{2}\right) \right\rfloor + 1(Point queries descend root-to-leaf in exactly h disk page reads.) - Range Scan Disk I/O Cost:
\mathrm{IO}_{\text{range}} = h + L_{\text{leaves}} - 1(Descends once to the lower bound key, then follows horizontal leaf sibling pointers.)
View full Databases & Storage Formula Sheet | Constants Table
Related Databases Calculators
- AVL Self-Balancing Tree & Rotations: Insert and delete keys with live per-node balance factors, heights, automatic LL/RR/LR/RL rotations, and a step-by-step rotation audit log.
- Binary Search Tree Visualizer: Insert, delete, and search nodes on a live binary search tree with in-order, pre-order, and post-order traversals.
- Hash Table & Collision Resolution Simulator: Compare Linear Probing, Quadratic Probing, Double Hashing, and Separate Chaining with live load factor, probe sequences, and clustering metrics.
- CPU Cache Address Slicer: Slice any 32-bit memory address into Tag, Set Index, and Block Offset bits.
- Page Replacement Simulator: Simulate LRU, FIFO, and Optimal virtual memory frame allocation with hit/fault matrix.
- Base & Two’s Complement Converter: Convert between Binary, Octal, Decimal, Hex, and signed 8/16-bit Two’s Complement with interactive bit toggles.