Skip to main content

Flexible python implementation of red black trees

Project description

A pair of python modules implementing red black trees is provided.

Red-black trees are a little slower than treaps (some question this), but they give a nice low standard deviation in operation times, and this code is rather flexible.

A module is provided for red black trees that enforce uniqueness. They allow for set-like use and dictionary-like use.

This code is known to work on CPython 2.x, CPython 3.x, Pypy and Jython.

Much of the work here was done by Duncan G. Smith. Dan just put some finishing touches on it.

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

red-black-tree-mod-1.20.tar.gz (28.6 kB view details)

Uploaded Source

File details

Details for the file red-black-tree-mod-1.20.tar.gz.

File metadata

File hashes

Hashes for red-black-tree-mod-1.20.tar.gz
Algorithm Hash digest
SHA256 2448e6fc9cbf1be204c753f352c6ee49aa8156dbf1faa57dfc26bd7705077e0a
MD5 305720c6b841efdd67c33b05acc4dee5
BLAKE2b-256 3412944f61bc67a1e918953741c0b3b75a28f96d8060d08fd3614233309ced3b

See more details on using hashes here.

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