Skip to content

Commit fc73271

Browse files
committed
Add initial AVL tree implementation.
1 parent 59d70c7 commit fc73271

File tree

5 files changed

+628
-0
lines changed

5 files changed

+628
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ Cargo.lock
88

99
# These are backup files generated by rustfmt
1010
**/*.rs.bk
11+
/target/
12+
**/*.rs.bk
13+
Cargo.lock

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
language: rust
2+
rust: stable

Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "avl-tree"
3+
version = "0.1.0"
4+
authors = ["Gabriela Alexandra Moldovan <[email protected]>"]
5+
6+
[dependencies]
7+
rand = "0.3"
8+
clippy = {version = "*", optional = true}
9+
10+
[features]
11+
default = []

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
# avl-tree-rust
22
An AVL tree implementation in Rust.
3+
4+
The current implementation stores the nodes in a `vec` inside the
5+
`SearchTree` struct. The parent and children of a node are referenced
6+
using their index in the `vec`.
7+
8+
### Supported operations:
9+
* insert
10+
* lookup

0 commit comments

Comments
 (0)