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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_simple_trees-0.1.3.tar.gz.
File metadata
- Download URL: py_simple_trees-0.1.3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1019-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
616e4c4dc322bfbc65c2bb924364e70f2146bf3364f0ba368ac68863f681a3c7
|
|
| MD5 |
0b66c3e6e5c76ab09cb0ed70cf728684
|
|
| BLAKE2b-256 |
e47cc709a0c6c29b48f105c86420fcd58bf2bbde62bf2e61af0ef789354212bc
|
File details
Details for the file py_simple_trees-0.1.3-py3-none-any.whl.
File metadata
- Download URL: py_simple_trees-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1019-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99b48a26d831a48bf2c92249a9bf3cc0be7fd4db460e04069a8c295cb4ced425
|
|
| MD5 |
b13ed819d46d4a283fa1bb4b3e0e7bc6
|
|
| BLAKE2b-256 |
f24ef4043cbf98b1ab24a28e7cb6f803b1760df54d681319b6383b364f38770e
|