Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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.

Release 1.39 is pylint’d and is known to run on at least CPython 2.x, CPython 3.x and Pypy, Pypy3 (beta) and Jython.

Release history Release notifications

This version
History Node

1.39

History Node

1.38

History Node

1.37

History Node

1.35

History Node

1.34

History Node

1.33

History Node

1.32

History Node

1.31

History Node

1.30

History Node

1.23

History Node

1.22

History Node

1.21

History Node

1.20

History Node

1.00

History Node

0.995

History Node

0.99

History Node

0.9

History Node

0.8

History Node

0.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
treap-1.39.tar.gz (106.9 kB) Copy SHA256 hash SHA256 Source None Jun 1, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page