Re: AVL trees vs. Red-Black trees

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Sun, 28 Nov 1999 14:45:03 +0100


Oliver Xymoron wrote:
> > If somebody find this interesting I can provide a patch to add the
> > include/linux/rbtree.h and lib/rbtree.c that will provde rbtree support.
>
> I'd like to take a look at this, I've been looking at putting some more
> uniform tree structures in the kernel (post 2.4).

fwiw, I did a splay tree (aka. self-adjusting tree) for similar reasons
that anyone is welcome to take a peek at. The self-adjusting property
should theoretically provide cache-like behaviour when most of the
lookups are to relatively few nodes in the tree. The downside is that
the tree is modified by lookups.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/