cargo run
change directory into the project's root, and then run
cargo install --path .
The command-line application will then be installed and can be run:
rust_black_tree <new | add | delete | print | clear | quit>
Allows for creation of a Red Black tree, AVL tree, or Binary Search tree
new rb
new avl
new bst
create rb
n avl
c bst
Insert a value into the tree
add 5
insert 2
i 6
a 9
Delete a value from the tree
delete 5
del 2
remove 6
d 9
r 10
Note: non-existent values in the tree passed to the delete command will be ignored
Print the current tree
print
p
Removes everything in the tree
clear
clr
Exit the CLI
quit
exit
cargo test
Benchmark reports can be found in `target/criterion/report/index.html
cargo bench
cargo bench bench_rbtree
cargo bench bench_avltree
Documentation can be easily generated by running
cargo doc --open