Coder Social home page Coder Social logo

panpapag / b-plus-tree Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nikosgalanis/b-plus-tree

2.0 1.0 0.0 486 KB

💾🌳Implementation of a generic 2-field disk file, with B+ indexing. The file system is based on a BlockFile library.

Makefile 1.08% C 98.81% Shell 0.10%

b-plus-tree's Introduction

B+ Tree file

This project is an implementation of a generic 2-field disk file, with B+ indexing, based on a BlockFile library. It has AM(Access method) functions, to properly handle a file with primary indexing, which is made possible with a perfectly balanced tree index. The file can store integer, float or string values.

The most significant functions to handle the B+ tree file are:

  • AM_CreateIndex(..) Used to create a new B+ tree file.
  • AM_DestroyIndex(..) Used to destroy a B+ tree file.
  • AM_OpenIndex(..) Used to open a previously created B+ tree file.
  • AM_CloseIndex(..) Used to close a previously opened B+ tree file.
  • AM_Insert_Entry(..) Used to insert an entry into the file. All the entries must be of the same type, else, an error will be returned
  • AM_FindNextEntry(..) Used to find the next entry that satisfies the condition of a previously opened search
  • AM_PrintError(..) Used for error handling.

Getting Started

Make sure you have a gcc compiler

Downloading

Download source code by typing:

git clone https://github.com/nikosgalanis/B-Plus-Tree.git

Examples

In the directory examples, there is a simple main aimed to insert entries in the file, and then search for one of them.

Compiling and running

There are 2 main functions implemented to test the functionability of the B+ Tree. You can run either main by: ./run.sh or ./main.sh

Contributors

Nikos Galanis.

Pantelis Papageorgiou.

Sofoklis Strompolas.

This project was implemented for the needs of the course "Implementation of Database Management Systems"

b-plus-tree's People

Contributors

nikosgalanis avatar panpapag avatar sofost avatar

Stargazers

 avatar  avatar

Watchers

 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.