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
-------------------------------------------------------------------
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
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
segmenttreenode-0.0.1.tar.gz
(2.0 kB
view details)
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 segmenttreenode-0.0.1.tar.gz.
File metadata
- Download URL: segmenttreenode-0.0.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0438c770d39124170ea1cced4275f9c1688d70e2ced78f9ecca3f9087f40f7fa
|
|
| MD5 |
34b7ebe54d543d370e1c6e282369fa2c
|
|
| BLAKE2b-256 |
dafd78ff95bafa88c215cb12798302ecea4e3df096e47971c491525983c63593
|
File details
Details for the file segmenttreenode-0.0.1-py2.7.egg.
File metadata
- Download URL: segmenttreenode-0.0.1-py2.7.egg
- Upload date:
- Size: 3.5 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4972cbbbf532a1abe41b713288383487b9c37f1676464c033f2309526b4a813
|
|
| MD5 |
0ac64abc1677d7dcf6e926a0cd050ff7
|
|
| BLAKE2b-256 |
863732bbd31e0ce7caf0d91fccd9d330e6c6c945e92bf006390f0ee6919f1ae9
|