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

Uploaded Source

Built Distribution

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

Uploaded Source

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