This project implements a B-Tree indexing system in C++. The B-Tree is a self-balancing tree data structure that maintains sorted data and allows for efficient insertion, deletion, and search operations.
B-Tree indexing is widely used in file management systems because it provides efficient searching and retrieval of records from large datasets. The self-balancing nature of B-Trees ensures that the tree remains balanced, leading to predictable and fast search times. This makes B-Tree indexing suitable for applications where data needs to be organized and accessed quickly, such as file systems, databases, and filesystem directories.
- 📥 Insert records with unique keys.
- 🗑️ Delete records based on keys.
- 🔍 Search for records using keys.
- 🌐 Display the B-Tree structure.
-
Clone the repository:
git clone https://github.com/Charantej07/B-Tree-Indexing
-
Navigate to the repository
cd B-Tree-Indexing
-
Compile the source code
g++ main.cpp B_Tree.cpp -o btree
-
Run the compiled executable
./btree
- 📄 B_Tree.h: Header file containing class declarations for Key, Node, and BTree.
- 📄 B_Tree.cpp: Implementation file for the BTree class.
- 📄 main.cpp: Main program implementing a StorageEngine class for user interaction.
Feel free to contribute by forking the repository and make a pull request.
This project is licensed under the MIT License.