Authors: Irene Brugnara, Roberto Corti.
Folder bst
contains all the header files for the binary search tree implementation:
bst.hpp
defines thebst
classbst_bits.hpp
implements the methods ofbst
node.hpp
defines theNode
class and its methodsiterator.hpp
defines the_iterator
class 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
.