GithubHelp home page GithubHelp logo

bestsonny / bplustree Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 24 KB

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

License: MIT License

CMake 3.58% C++ 94.64% Makefile 1.79%
b-plus-tree advanced-data-structures

bplustree's Introduction

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

bplustree's People

Contributors

bestsonny avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.