Authors: Irene Brugnara, Roberto Corti.
Folder bst contains all the header files for the binary search tree implementation:
bst.hppdefines thebstclassbst_bits.hppimplements the methods ofbstnode.hppdefines theNodeclass and its methodsiterator.hppdefines the_iteratorclass and its methods.
File test.cpp checks if all bst methods are properly working. File benchmark.cpp performs a benchmark of our bst compared to std::map; the result is presented in Report.md.
A Makefile is used to compile automatically. To obtain the executables test and benchmark, simply type make.
To have the plot for the benchmark, we used gnuplot . After executing benchmark, a file data_benchmark.txt is generated. To generate the plot of this data, the command gnuplot graph_benchmark.gp will produce the file plot_benchmark.png.