Skip to content

fhorn97/bplustree-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

B+ Tree Implementation (C++)

A complete B+ tree data structure implementation in C++ built for a database systems course at Boston University. Supports insertion, search, and range queries.

Features

  • Generic B+ tree with configurable order
  • Internal and leaf node separation
  • Efficient search and range query operations
  • File-based input for bulk operations

Building

make
./treesearch

Structure

├── src/
│   ├── main.cpp          # Entry point, file I/O
│   ├── tree.cpp          # B+ tree operations (insert, search)
│   ├── node.cpp          # Base node class
│   ├── internalnode.cpp  # Internal node (keys + child pointers)
│   └── leafnode.cpp      # Leaf node (keys + values + sibling pointers)
├── inc/
│   └── main.h            # Header definitions
├── Makefile
└── input_file.txt        # Sample input

Tech

  • C++11
  • Object-oriented design with inheritance (Node → InternalNode / LeafNode)

About

B+ Tree data structure implementation in C++ — insertion, search, range queries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors