A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pypi.python.org/pypi/bintrees below:

bintrees·PyPI

Binary Tree Package

Bintrees Development Stopped

Use sortedcontainers instead: https://pypi.python.org/pypi/sortedcontainers

see also PyCon 2016 presentation: https://www.youtube.com/watch?v=7z2Ki44Vs4E

Advantages:

Abstract

This package provides Binary- RedBlack- and AVL-Trees written in Python and Cython/C.

This Classes are much slower than the built-in dict class, but all iterators/generators yielding data in sorted key order. Trees can be uses as drop in replacement for dicts in most cases.

Source of Algorithms

AVL- and RBTree algorithms taken from Julienne Walker: http://eternallyconfuzzled.com/jsw_home.aspx

Trees written in Python
Trees written with C-Functions and Cython as wrapper

All trees provides the same API, the pickle protocol is supported.

Cython-Trees have C-structs as tree-nodes and C-functions for low level operations:

Constructor
Methods
slicing by keys

start/end parameter:

The step argument of the regular slicing syntax T[s:e:step] will silently ignored.

TreeSlice is a tree wrapper with range check and contains no references to objects, deleting objects in the associated tree also deletes the object in the TreeSlice.

TreeSlice methods:

prev/succ operations
Heap methods
Set methods (using frozenset)
Classmethods
Helper functions
Installation

from source:

python setup.py install

or from PyPI:

pip install bintrees

Compiling the fast Trees requires Cython and on Windows is a C-Compiler necessary.

Download Binaries for Windows

https://github.com/mozman/bintrees/releases

Documentation

this README.rst

bintrees can be found on GitHub.com at:

https://github.com/mozman/bintrees.git

NEWS

Version 2.1.0 - 2020-01-02

Version 2.0.7 - 2017-04-28

Version 2.0.6 - 2017-02-04

Version 2.0.5 - 2017-02-04

Repository moved to GitHub: https://github.com/mozman/bintrees.git

Version 2.0.4 - 2016-01-09

Version 2.0.3 - 2016-01-06

Version 2.0.2 - 2015-02-12

Version 2.0.1 - 2013-10-01

Version 2.0.0 - 2013-06-01

Version 1.0.3 - 2013-05-01

Version 1.0.2 - 2013-04-01

Version 1.0.1 - 2013-02-01

Version 1.0.0 - 2011-12-29

Version 0.4.0 - 2011-04-14

Version 0.3.2 - 2011-04-09

Version 0.3.1 - 2010-09-10

Version 0.3.0 - 2010-05-11

Version 0.2.1 - 2010-05-06

Version 0.2.0 - 2010-05-03

Version 0.1.0 - 2010-04-27


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4