./devel/ruby-rbtree, Sorted associative collection using Red-Black Trees for Ruby

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2013Q4, Version: 0.4.1nb1, Package name: ruby193-rbtree-0.4.1nb1, Maintainer: pkgsrc-users

RBTree is a sorted associative collection using Red-Black Tree as
the internal data structure. The elements of RBTree are ordered
and the interface is the almost same as Hash, so simply you can
consider RBTree sorted Hash.

Red-Black Tree is a kind of binary tree that automatically balances
by itself when a node is inserted or deleted. Thus the complexity
for insert, search and delete is O(log N) in expected and worst
case. On the other hand the complexity of Hash is O(1). Because
Hash is unordered the data structure is more effective than Red-Black
Tree as an associative collection.

The interface of RBTree is the almost same as Hash although there
are some limitations.


Required to run:
[lang/ruby193-base]

Master sites: (Expand)

SHA1: 720c11cd7ff5b317236e2f89197a33f15ca6718c
RMD160: a6a8525525ba5de981f297caee4b03934845cf18
Filesize: 27.5 KB

Version history: (Expand)