BestSonny / BplusTree

Deprecated, refer to https://github.com/BestSonny/B-plusTree Implementation of B+ Tree (In-memory)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BPlusTree

Implementation of B+ Tree (In-memory)

Installation

  1. Get the code.
git clone https://github.com/BestSonny/BplusTree.git
cd BplusTree
  1. Build and run the code. Either with Cmake or Make
make
./treesearch file_name

or

mkdir build
cd build
cmake ../
make
./treesearch file_name

Sample file

  1. We provide a sample file (located at ./data folder)
Insert(3.55,Value1)
Insert(4.01,Value10)
Insert(39.56,Value2)
Insert(-3.95,Value23)
Insert(-3.91,Value54609)
Insert(3.55,Value67)
Insert(0.02,Value98)
Search(3.55)
Search(-3.91,30.96)
Insert(3.26,Value56089)
Insert(121.56,Value1234)
Insert(-109.23,Value43234)
Search(3.71)
  1. Run ./treesearch ../data/sample.txt, the result should be
Value1, Value67
(-3.91, Value54609),(0.02, Value98),(3.55, Value1),(3.55, Value67),(4.01, Value10)
Null

About

Deprecated, refer to https://github.com/BestSonny/B-plusTree Implementation of B+ Tree (In-memory)

License:MIT License


Languages

Language:C++ 94.6%Language:CMake 3.6%Language:Makefile 1.8%