Skip to main content

No project description provided

Project description

py-simple-trees

This package is a implementation collection of tree data structures.

Test Publish Coverage Package version Downloads

PyPI - Python Version


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


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 details)

Uploaded Source

Built Distribution

py_simple_trees-0.1.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for py_simple_trees-0.1.3.tar.gz
Algorithm Hash digest
SHA256 616e4c4dc322bfbc65c2bb924364e70f2146bf3364f0ba368ac68863f681a3c7
MD5 0b66c3e6e5c76ab09cb0ed70cf728684
BLAKE2b-256 e47cc709a0c6c29b48f105c86420fcd58bf2bbde62bf2e61af0ef789354212bc

See more details on using hashes here.

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

Hashes for py_simple_trees-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 99b48a26d831a48bf2c92249a9bf3cc0be7fd4db460e04069a8c295cb4ced425
MD5 b13ed819d46d4a283fa1bb4b3e0e7bc6
BLAKE2b-256 f24ef4043cbf98b1ab24a28e7cb6f803b1760df54d681319b6383b364f38770e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page