aboutsummaryrefslogblamecommitdiff
path: root/devel/py-rbtree/pkg-descr
blob: 9a1e28fa0ce678bb78c75780c8b47e32b83ec7a1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                     
                                                 
An RBTree is a fast, balanced efficient data structure with the
following properties:

get          O(log n)
set          O(log n)
delete       O(log n)
min          O(log n)
max          O(log n)
contains     O(log n)

Because the worst case timing is minimal across the range of standard
dict and ordered data operations it makes sense to use this when you
have volatile/dynamic sorted data.

In common usage its nearly as fast as the Python dict impl but has a
slightly more expensive usage of the compare function as the keys are
ordered and not hashed.

WWW:	http://cheeseshop.python.org/pypi/rbtree/