Skip to main content

Pure Python scapegoat tree nodule

Project description

A pure python scapegoat splay tree class is provided. It is thoroughly unit tested, passes pylint, and is known to run on CPython 2.x, CPython 3.x, Pypy 2.2 and Jython 2.7b2.

This scapegoat tree looks like a dictionary that’s always sorted by key. It also reorganizes itself on every put.

Perhaps the most interesting thing about a scapegoat tree, is it is balanced even for ordered keys, without any storage overhead (unlike treaps and red-black trees).

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

scapegoat_mod-1.0.tar.gz (14.5 kB view details)

Uploaded Source

File details

Details for the file scapegoat_mod-1.0.tar.gz.

File metadata

  • Download URL: scapegoat_mod-1.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scapegoat_mod-1.0.tar.gz
Algorithm Hash digest
SHA256 e8cc35061ba880e239d2eeb3ee50177f1262e0bfd3d22bdd07f150fb0848abf3
MD5 93a4c1f2f21461744a330da4ebdbdf26
BLAKE2b-256 450771f04baa56b2559032e555760c956c443f71690799dd0dca446313d51244

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