Top 2.2% dependent packages on proxy.golang.org
Top 1.7% dependent repos on proxy.golang.org
Top 6.4% forks on proxy.golang.org
proxy.golang.org : github.com/ancientlore/go-avltree
Package avltree implements a height-balanced binary tree with array-like indexing capability. An AVL tree (Adel'son-Vel'skii & Landis) is a binary search tree in which the heights of the left and right subtrees of the root differ by at most one and in which the left and right subtrees are again AVL trees. With each node of an AVL tree is associated a balance factor that is Left High, Equal, or Right High according, respectively, as the left subtree has height greater than, equal to, or less than that of the right subtree. The AVL tree is, in practice, balanced quite well. It can (at the worst case) become skewed to the left or right, but never so much that it becomes inefficient. The balancing is done as items are added or deleted. This version is enhanced to allow "indexing" of values in the tree; however, the indexes are not stable as the tree could be resorted as items are added or removed. It is safe to iterate or search a tree from multiple threads provided that no threads are modifying the tree. See also: Robert L. Kruse, Data Structures and Program Design, 2nd Ed., Prentice-Hall
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/ancientlore/go-avltree
Keywords:
avl-tree
, golang
, tree
License: MIT
Latest release: over 2 years ago
First release: over 7 years ago
Namespace: github.com/ancientlore
Dependent packages: 6
Dependent repositories: 10
Stars: 29 on GitHub
Forks: 10 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago