Skip to content

CZ4031-Group40/B_Plus_Tree_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

B+ Tree Project

Setup to run

Windows:

  1. make sure cmake is installed (>=3.26). Check by running
    cmake --version
    
    Otherwise can install from https://cmake.org/download/
  2. Go to project directory and create a new directory build
    mkdir build
    cd build
    
  3. Run these two command to compile and build the exe file
    cmake ..
    cmake --build .
    
  4. An exe file should be created inside the Debug folder run this exe in console by running:
    .\Debug\B_Plus_Tree_Project.exe
    
    This exe file will run the main.cpp file for internal testing of the B+ Tree functions. To get the experiments results, please follow the steps below.

Mac

  1. Install CMake through
    sudo apt-get update
    sudo apt-get install cmake
    Alternatively you can use brew,
    brew install cmake
  2. In the project directory, create dir named 'build' and navigate into it. This is to keep the source directory clean.
    mkdir build && cd build
  3. Run this command to generate build files and build the project
    cmake .. && make
    
  4. Run the executable
    ./B_Plus_Tree_Project
    This exe file will run the main.cpp file for internal testing of the B+ Tree functions. To get the experiments results, please follow the steps below.

Experiments

The script related to experiment is located in /src/experiment.cpp. When the script is run, it will print out all the results relevant to the experiments.

Windows

To run this script follow step 1 to 3 on top replace step 4 with

.\Debug\Experiment.exe

Mac

To run this script, run ./experiment in the /build folder. Ensure you have done the setup above before running the script.

If the script is not running whitin expectation please email twijaya001@e.ntu.edu.sg

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •