msg00144.html
1998Q4/msg00144.html · 7.8 KB
From the archive 1998Q4.zip
Download the archive « Back to the archive contents
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD-Dev] Re: Red Black Tree ? -->
<!--X-From-R13: Pra Uerrne <terrneNploreuvtujnl.arg> -->
<!--X-Date: Fri, 9 Oct 1998 23:55:02 -0700 -->
<!--X-Message-Id: Pine.LNX.3.96.981009234957.19059B-100000#shamen,cyberhighway.net -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199810092305.RAA27384#darklock,com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Red Black Tree ?</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:greear#cyberhighway,net">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">
<font size="+4" color="#804040">
<strong><em>MUD-Dev<br>mailing list archive</em></strong>
</font>
<br>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
Date:
[ <a href="msg00143.html">Previous</a>
| <a href="msg00145.html">Next</a>
]
Thread:
[ <a href="msg00143.html">Previous</a>
| <a href="msg00134.html">Next</a>
]
Index:
[ <A HREF="author.html#00144">Author</A>
| <A HREF="#00144">Date</A>
| <A HREF="thread.html#00144">Thread</A>
]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Red Black Tree ?</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: Red Black Tree ? </LI>
<LI><em>From</em>: Ben Greear <<A HREF="mailto:greear#cyberhighway,net">greear#cyberhighway,net</A>></LI>
<LI><em>Date</em>: Fri, 9 Oct 1998 23:53:04 -0700 (MST)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Fri, 9 Oct 1998, Caliban Tiresias Darklock wrote:
> On 02:40 PM 10/9/98 -0600, I personally witnessed T. Alexander Popiel
> jumping up to say:
> >In message: <<A HREF="msg00141.html">199810092109.PAA07254#darklock,com</A>>
> > Caliban Tiresias Darklock <caliban#darklock,com> writes:
> >>
> >>In a red-black tree, data is stored only in the lowest-level nodes
> >>(leaves), other nodes in the tree being used only as an index,
> >
> >*cough*
> >
> >Where did you get this idea? I routinely store data in the internal
> >nodes of a red-black tree, with the leaves being represented by a
> >single sentinel. This is the recommended implementation from my
> >algorithms books, too, so I don't think I've unwittingly mutated
> >the algorithm...
>
> My understanding of red-black trees comes from the Binstock/Rex book
> "Practical Algorithms For Programmers" (1995)... where I find, on page 281:
> "A red-black tree is, at heart, a binary search tree. However, it makes use
> of two new concepts. First, in a red-black tree, data is stored only in the
> *leaves* of the tree. That is, only the nodes without children contain
> actual data. Interior nodes are purely for reference. Second, each node is
> thought of as being colored red or black."
For the record, I have no real understanding of RB Trees... However, I
implemented one in college...and we most certainly did use the internal
nodes as well. I can see no reason not to: You would be wasting half
of your space, and guaranteeing O(log(n)), whereas the other way (internal
storage), your average should be better (Though by a small amount.)
>
> And that's where it came from. My *formal* algorithmic training comes from
> the Tanenbaum/Augenstein text "Data Structures Using Pascal" (1981), which
> says exactly nothing about red/black trees. This is one of several
> deficiencies that led me to later purchase the Binstock/Rex volume.
Ben Greear (greear#cyberhighway,net) <A HREF="http://www.primenet.com/~greear">http://www.primenet.com/~greear</A>
Author of ScryMUD: mud.primenet.com 4444
<A HREF="http://www.primenet.com/~greear/ScryMUD/scry.html">http://www.primenet.com/~greear/ScryMUD/scry.html</A>
</PRE>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00143" HREF="msg00143.html">[MUD-Dev] Re: Red Black Tree ?</A></STRONG>
<UL><LI><EM>From:</EM> Caliban Tiresias Darklock <caliban#darklock,com></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00143.html">[MUD-Dev] Re: Red Black Tree ?</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00145.html">[MUD-Dev] Re: Marion's Tailor Problem</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00143.html">[MUD-Dev] Re: Red Black Tree ?</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00134.html">[MUD-Dev] Re: Marion's Tailor Problem</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00144"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00144"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: Red Black Tree ?</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00136" HREF="msg00136.html">[MUD-Dev] Re: Red Black Tree ?</A></strong>,
T. Alexander Popiel <a href="mailto:popiel#snugharbor,com">popiel#snugharbor,com</a>, Fri 09 Oct 1998, 18:08 GMT
</LI>
<LI><strong><A NAME="00141" HREF="msg00141.html">[MUD-Dev] Re: Red Black Tree ?</A></strong>,
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Fri 09 Oct 1998, 21:10 GMT
<UL>
<LI><strong><A NAME="00142" HREF="msg00142.html">[MUD-Dev] Re: Red Black Tree ?</A></strong>,
T. Alexander Popiel <a href="mailto:popiel#snugharbor,com">popiel#snugharbor,com</a>, Fri 09 Oct 1998, 21:42 GMT
<UL>
<LI><strong><A NAME="00143" HREF="msg00143.html">[MUD-Dev] Re: Red Black Tree ?</A></strong>,
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Fri 09 Oct 1998, 23:06 GMT
<UL>
<LI><strong><A NAME="00144" HREF="msg00144.html">[MUD-Dev] Re: Red Black Tree ?</A></strong>,
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sat 10 Oct 1998, 06:55 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00134" HREF="msg00134.html">[MUD-Dev] Re: Marion's Tailor Problem</A></strong>,
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Fri 09 Oct 1998, 14:59 GMT
<UL>
<LI><strong><A NAME="00145" HREF="msg00145.html">[MUD-Dev] Re: Marion's Tailor Problem</A></strong>,
Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Sat 10 Oct 1998, 08:21 GMT
<UL>
<LI><strong><A NAME="00239" HREF="msg00239.html">[MUD-Dev] Re: Marion's Tailor Problem</A></strong>,
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Sat 17 Oct 1998, 12:09 GMT
<UL>
<LI><strong><A NAME="00242" HREF="msg00242.html">[MUD-Dev] Re: Marion's Tailor Problem</A></strong>,
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Sat 17 Oct 1998, 23:56 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>
</ul>
<hr>
<center>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
</center>
<hr>
</body>
</html>