Skip to main content

Data structure for Segment Tree

Project description

segmenttreenode
-------------------------------------------------------------------
link: https://pypi.python.org/pypi/segmenttreenode
Data structure for Segment Tree.

-------------------------------------------------------------------
Install:
Use 'pip' or 'easy_install' to install the package.

sudo pip install segmenttreenode
sudo easy_install segmenttreenode

-------------------------------------------------------------------
Usage:
In Python File:
from segmenttreenode import SegmentTreeNode
arr = [1, 3, 5, 7, 9, 11]
root = SegmentTreeNode.SegmentTreeNode(arr, 0, len(arr) - 1)
# Use this segment tree through the root.
# ... ...

-------------------------------------------------------------------
Explanation:
There are three necessary arguments to
initialize a segment tree node instance from SegmetTreeNode class.

[1] one dimensional list
[2] start index
[3] end index

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

segmenttreenode-0.0.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

segmenttreenode-0.0.1-py2.7.egg (3.5 kB view details)

Uploaded Egg

File details

Details for the file segmenttreenode-0.0.1.tar.gz.

File metadata

File hashes

Hashes for segmenttreenode-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0438c770d39124170ea1cced4275f9c1688d70e2ced78f9ecca3f9087f40f7fa
MD5 34b7ebe54d543d370e1c6e282369fa2c
BLAKE2b-256 dafd78ff95bafa88c215cb12798302ecea4e3df096e47971c491525983c63593

See more details on using hashes here.

File details

Details for the file segmenttreenode-0.0.1-py2.7.egg.

File metadata

File hashes

Hashes for segmenttreenode-0.0.1-py2.7.egg
Algorithm Hash digest
SHA256 e4972cbbbf532a1abe41b713288383487b9c37f1676464c033f2309526b4a813
MD5 0ac64abc1677d7dcf6e926a0cd050ff7
BLAKE2b-256 863732bbd31e0ce7caf0d91fccd9d330e6c6c945e92bf006390f0ee6919f1ae9

See more details on using hashes here.

Supported by

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