The purpose of this library is to provide APIs that allows users to create memory efficient binary search tree, red-black tree and AVL tree. Besides, by using this library, users can investigate the performance difference between red-black tree and avl tree, which helps them deeply understand the algorithms.
```rust use tree_collections::prelude::*;
let mut rbtree = RBTree::new(); rbtree.insert(1); rb_tree.delete(1);
let mut avltree = AVLTree::new(); avltree.insert(1); avl_tree.delete(1);
```
Building the documentation using
$ cargo doc
Find the API doc at
./target/doc/tree_collections/index.html
Run the user promote
$ cargo run
List of operations
$ insert
$ delete
$ count
$ height
$ inorder print
$ preorder print
$ empty
$ search
$ print tree
$ exit
Run the tests using
$ cargo test
Run the Benchmark using
$ cargo bench