Skip to content

Commit

Permalink
ds: Begin on adding AVLTree
Browse files Browse the repository at this point in the history
  • Loading branch information
rHermes committed Jun 10, 2024
1 parent f0cd1e5 commit 3d05d8f
Show file tree
Hide file tree
Showing 6 changed files with 532 additions and 3 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,28 @@ Planned datastructures:
- Index based linked list, with a skip list
- Interval map, built on top of

#### AVLTree

An AVLTree implementation, currently in the process of being completed. Features are:

- Full iterator support
- Node pooling
- Supports most of the same functionality as `std::map`


#### TODO

##### AVLTREE
- Add `generation` tag to all nodes in debug mode, and check this tag when accessing through
an iterator, to detect dangling pointers!
- Add examples and tests for this


##### General
- Also implement a redblack tree
- Add some benchmarks for all trees
- Add a B-Tree?

### Utility library

This is not implemented yet, but here are some components I want:
Expand Down
Loading

0 comments on commit 3d05d8f

Please sign in to comment.