Coder Social home page Coder Social logo

bplustree's Introduction

BPlusTree

Build Status

A simple B+ tree implemented in cpp. Fully unit-tested.

Implementations

BTree.cpp is automatically generated with source file from src/ folder. For original implementation, you should refer to src/.

Container: some basic containers implementation including Vector and Set.

LRU: least recently used cache, eliminating memory usage when processing huge chunks.

Persistence: manage so-called 'pages', which store BTree data.

Iterator: B+Tree iterators

Partially ported to upstream https://github.com/peterzheng98/CS158-DS_Project

Limitations

Number of pages in memory must be larger than those required for a single search, because page swapping is done after one operation.

Todo

  • Reduce overhead in serialize and deserialize by passing istream as argument
  • 4k align
  • Reduce page offload overhead by introducing read-only page request
  • Use HashMap to store pages in memory to store larger dataset.
  • Implement copy constructor and assign
  • Implement iterator and const iterator
  • Reuse deleted pages
  • Port to upstream: size, empty, iterator, return value of query and insert.

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.