Skip to content

ProcessedCarbon/CZ4031_BPTree_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CZ4031_BPTree_Project

Setup

  • Clone this repository using git clone <REPO_URL>

  • cd to repository and open it using code .

  • Ensure that you have a C++ compiler. (clang++/g++ for MAC, not sure for Windows.)

  • Ensure all C++ files are included in compilation by:

    VSCode Instructions: Include the following args in tasks.json to ensure all C++ files are compiled on build:

    "tasks": [
      {
        "args": [
          "-g",
          "-Wall",
          "-Wextra",
          "-Wpedantic",
          "${fileDirname}/*.cpp",
          "-o",
          "${fileDirname}/${fileBasenameNoExtension}",
          "-std=c++11"
        ],
      }
    ]
    
  • Select run build task with the main.cpp file selected and select your C++ Compiler.

  • After compilation open a new terminal, cd to src folder using the command cd src

  • Run code using ./main.

Development Notes

  1. There should be some warnings, but for now it can be ignored, it should not affect the compilation.
  2. If the compilation is successful, that should be the following user input prompt:
    Select Block Size (Enter 1 or 2):
  3. Upon selecting a block size, something like this template will be printed (May differ based on Block Size Selected)
===================================================================
Experiment 1 Results
===================================================================
The number of blocks used is: 42813
The database size (in B) based on blocks is: 21406500
The database size (in B) based on records is: 21406360
The database size (in MB) based on blocks is: 21.4065
The database size (in MB) based on records is: 21.4064

List of contributors:

Name Github Profile
Joshua suenalaba
Gregory ProcessedCarbon
Ryan raiseu
Joei jyzy-here
Chee Yang sleepy-pan-da

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages