public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Skip lists and splay trees
@ 1998-08-25  9:37 Colin Plumb
  1998-08-25 12:14 ` Richard Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Colin Plumb @ 1998-08-25  9:37 UTC (permalink / raw)
  To: linux-kernel

Jamie Lokier (lkd@tantalophile.demon.co.uk) wrote:
> I would definitely recommend a skip list or splay tree. Both are very
> fast. Both are very short code. (_Much_ shorter and simpler than the
> AVL code was).
> 
> The skip list has the advantage that it's fairly simple to code and
> nothing is written (cache advantage).
> 
> The splay tree has the advantage that it automatically caches the
> recently used entries. So much so that there's no need for a one entry
> cache in front of it.

Skip lists have the notable disadvantage that nodes are variable-sized
(due to the random number of pointers in them), which complicates
memory management, a great kernel preoccupation.

Splay trees are amenable to a number of heuristics like self-adjusting
lists, like move-to-front or move-forward-one.  They might be worth
playing with a bit.
-- 
	-Colin

-
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.altern.org/andrebalsa/doc/lkml-faq.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Skip lists and splay trees
  1998-08-25  9:37 Skip lists and splay trees Colin Plumb
@ 1998-08-25 12:14 ` Richard Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Jones @ 1998-08-25 12:14 UTC (permalink / raw)
  To: linux-kernel

Those of you wondering what splay trees are might want
to look at a on-line demo, at:

http://gs213.sp.cs.cmu.edu/prog/splay

For balance, there are papers on skiplists at:

ftp://ftp.cs.umd.edu/pub/skipLists/

Rich.

-- 
Richard Jones rjones@orchestream.com Tel: +44 171 598 7557 Fax: 460 4461
Orchestream Ltd.  125 Old Brompton Rd. London SW7 3RP PGP: www.four11.com
"boredom ... one of the most overrated emotions ... the sky is made
of bubbles ..."   Original message content Copyright © 1998

-
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.altern.org/andrebalsa/doc/lkml-faq.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-08-25 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-25  9:37 Skip lists and splay trees Colin Plumb
1998-08-25 12:14 ` Richard Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox