Crates.io | rust_black_tree |
lib.rs | rust_black_tree |
version | 0.1.5 |
source | src |
created_at | 2020-03-03 18:18:20.666106 |
updated_at | 2020-03-03 23:17:47.336684 |
description | Please don't use this in something serious lol |
homepage | |
repository | https://github.com/Arunscape/ECE421-GroupProject1/tree/master/rust_black_tree |
max_upload_size | |
id | 215078 |
size | 124,143 |
cargo run
cargo
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