B-Tree Data Structure
Python
Algorithms
Data Structures
Disk-Based Storage
Disk I/O Optimization
Database Indexing
This project implements a disk-based B-Tree data structure that simulates how databases manage indexing when nodes must be persisted to disk instead of memory. The tree supports efficient insert(key, value) and find(key) operations while maintaining balanced height, sorted keys, and configurable branching factors (M and L). Each node is stored in its own disk block through a custom DISK interface, introducing strict constraints that resemble real storage systems.
insert(key, value): insert or overwrite keys while maintaining B-Tree invariantsfind(key): return the value for a key or NoneAll interactions occur through:DISK.new/write/read
"The future depends on what you do today."
- Mahatma Gandhi