Python implementation of treaps
Project description
A set of python modules implementing treaps is provided.
Treaps perform most operations in O(log2(n)) time, and are innately sorted. They’re very nice for keeping a collection of values that needs to always be sorted, or for optimization problems in which you need to find the p best values out of q, when p is much smaller than q.
A module is provided for treaps that enforce uniqueness.
A pure python version is included, as is a Cython-enhanced version for performance.
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
pyx_treap-2.0.20.tar.gz
(126.0 kB
view details)
File details
Details for the file pyx_treap-2.0.20.tar.gz.
File metadata
- Download URL: pyx_treap-2.0.20.tar.gz
- Upload date:
- Size: 126.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4786a92ae9c54e05fd9c8f1b4b1aba0373f65d635c88245d99e75714a43852a0
|
|
| MD5 |
dd4fd96e62a03d05050fa73c2b21d3fd
|
|
| BLAKE2b-256 |
b846f1c0bdcb0c95cef881f553fdba937676fba268bbc4ec9729eaf34b297a22
|