No project description provided
Project description
py-simple-trees
This package is a implementation collection of tree data structures.
Documentation: https://lpthong90.dev/py-simple-trees
Source Code: https://github.com/lpthong90/py-simple-trees
This package is a implementation collection of tree data structures.
Installation
$ pip install py-simple-trees
---> 100%
Successfully installed py-simple-trees
Tree Types
- Binary Tree
- Binary Search Tree (BST)
- AVL Tree
Basic Usage
from py_simple_trees import AVLTree
if __name__ == "__main__":
tree = AVLTree()
tree.insert(1, 1)
tree.insert(2, 2)
tree.insert(3, 3)
tree.insert(4, 4)
tree.insert(5, 5)
tree.insert(6, 6)
tree.insert(7, 7)
tree.print()
Output
4 --L--> 2
4 --R--> 6
2 --L--> 1
2 --R--> 3
6 --L--> 5
6 --R--> 7
License
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_simple_trees-0.1.2.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for py_simple_trees-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e12e1e4374e6b48e00ec9b9987513a65e73455a01aa33399b2ee37a063ffd57 |
|
MD5 | 03f72b1964eaa1d657b644213be2a259 |
|
BLAKE2b-256 | 4eab1322f8e5092b0cef0860501a5d142c662aefba64da981ea15152866ebf92 |