An open API service indexing awesome lists of open source software.

https://github.com/somebadcode/avltree

AVL tree, a balancing search tree
https://github.com/somebadcode/avltree

avl avl-tree avl-tree-implementation avl-tree-implementations avltree balancing balancing-tree bst btree go golang search search-tree tree

Last synced: about 1 month ago
JSON representation

AVL tree, a balancing search tree

Awesome Lists containing this project

README

        

# AVL tree for key-value store

This package implements an AVL tree for key-value store.

## What is an AVL tree?

An AVL tree is a self-balancing binary search tree.

## Features

| Feature | Implemented |
|-------------------------|-------------|
| Insertion | yes |
| Deletion | yes |
| Searching | yes |
| Get inorder successor | yes |
| Get inorder predecessor | yes |
| Inorder traversal | yes |
| Preorder traversal | yes |
| Postorder traversal | yes |
| Balancing | yes (AVL) |

Serialization of the tree will not be implemented since the key and value can be an arbitrary type. It would be better
for the caller to implement the serialization that fits the use case the best.