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.3.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for py_simple_trees-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99b48a26d831a48bf2c92249a9bf3cc0be7fd4db460e04069a8c295cb4ced425 |
|
MD5 | b13ed819d46d4a283fa1bb4b3e0e7bc6 |
|
BLAKE2b-256 | f24ef4043cbf98b1ab24a28e7cb6f803b1760df54d681319b6383b364f38770e |