Skip to main content

Flexible python implementation of red black trees

Project description

A set 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 quite flexible.

Modules are provided for red black trees that enforce uniqueness, and red black trees that allow duplicates. They also allow for set-like use and dictionary-like use.

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.0.tar.gz (1.0 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for red-black-tree-mod-1.0.tar.gz
Algorithm Hash digest
SHA256 8043bda992880e9d0e1722066e9333863469e2a32ec0df12aa9cc098c8c87baa
MD5 6f5bd931e0b9f73c30fd5cb11c75b8c3
BLAKE2b-256 d161238ae5e794853c2a1a25fd788187be80c57519a91c3ad0feca83e1f87736

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page