msg00607.html
1999Q1/msg00607.html · 7.6 KB
From the archive 1999Q1.zip
Download the archive « Back to the archive contents
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD-Dev] Naming and Directories? -->
<!--X-From-R13: [vx Qynexr <zvxpyexNvoz.arg> -->
<!--X-Date: Tue, 16 Mar 1999 04:27:30 -0800 -->
<!--X-Message-Id: 36EECCD0.F6E3E47A#ibm,net -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199903140649.WAA19927#erdos,Stanford.EDU -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Naming and Directories?</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:mikclrk#ibm,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="msg00606.html">Previous</a>
| <a href="msg00608.html">Next</a>
]
Thread:
[ <a href="msg00594.html">Previous</a>
| <a href="msg00613.html">Next</a>
]
Index:
[ <A HREF="author.html#00607">Author</A>
| <A HREF="#00607">Date</A>
| <A HREF="thread.html#00607">Thread</A>
]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Naming and Directories?</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>: Re: [MUD-Dev] Naming and Directories?</LI>
<LI><em>From</em>: Mik Clarke <<A HREF="mailto:mikclrk#ibm,net">mikclrk#ibm,net</A>></LI>
<LI><em>Date</em>: Tue, 16 Mar 1999 21:27:44 +0000</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#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>
Mark Gritter wrote:
> Mik Clarke writes:
> > Given a task of sending a message to a specific player, when that player could be
> > located anywhere within the mud, how do you propose to do it faster than by running
> > the list of all connected players? Sure, a binary index by name might help, but I
> > suspect you'd have trouble seeing the saving...
> >
>
> Hans Staerfeldt suggest "search tries" in his response to my original e-mail.
> The idea is that each node stores a name and 26 pointers to child nodes. The
> tree is searched by using successive letters as an index to the array of
> pointers. You can search for abbreviations easily in this scheme--- if
> you run out of letters and the node has only one child, you've found the
> full name.
Ummm. Yick. 26 4 byte pointers by, say 16 characters long just to index 100-200 names?
Even with a sensible implementation you're going to end up wasting 90% of the storage you
allocate (and a ten letter name means you have to allocate 1K pointers, each different
name then requires another 900 bytes or so).
You might have more luck with a binary tree, which just has a 2 way split (or even a
binary search of a sorted list). The Diku search actually does a linear search, but it
compares first characters only first. If they match (about 1 in 20) it goes on to
compare the whole string.
Mik
_______________________________________________
MUD-Dev maillist - MUD-Dev#kanga,nu
<A HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>
</PRE>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00625" HREF="msg00625.html">Re: [MUD-Dev] Naming and Directories?</A></strong>
<ul compact><li><em>From:</em> "Jon A. Lambert" <jlsysinc#ix,netcom.com></li></ul>
<li><strong><A NAME="00613" HREF="msg00613.html">Re: [MUD-Dev] Naming and Directories?</A></strong>
<ul compact><li><em>From:</em> Mark Gritter <mark#erdos,Stanford.EDU></li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00578" HREF="msg00578.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
<UL><LI><EM>From:</EM> Mark Gritter <mark#erdos,Stanford.EDU></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00606.html">Re: [MUD-Dev] Elder Games</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00608.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00594.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00613.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00607"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00607"><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>Re: [MUD-Dev] Naming and Directories?</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00578" HREF="msg00578.html">Re: [MUD-Dev] Naming and Directories?</A></strong>,
Mark Gritter <a href="mailto:mark#erdos,Stanford.EDU">mark#erdos,Stanford.EDU</a>, Sat 13 Mar 1999, 22:57 GMT
<UL>
<LI><strong><A NAME="00582" HREF="msg00582.html">Re: [MUD-Dev] Naming and Directories?</A></strong>,
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Sun 14 Mar 1999, 11:44 GMT
<UL>
<LI><strong><A NAME="00593" HREF="msg00593.html">Re: [MUD-Dev] Naming and Directories?</A></strong>,
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Mon 15 Mar 1999, 14:07 GMT
<UL>
<LI><strong><A NAME="00594" HREF="msg00594.html">Re: [MUD-Dev] Naming and Directories?</A></strong>,
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Mon 15 Mar 1999, 15:37 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00607" HREF="msg00607.html">Re: [MUD-Dev] Naming and Directories?</A></strong>,
Mik Clarke <a href="mailto:mikclrk#ibm,net">mikclrk#ibm,net</a>, Tue 16 Mar 1999, 12:27 GMT
<UL>
<LI><strong><A NAME="00613" HREF="msg00613.html">Re: [MUD-Dev] Naming and Directories?</A></strong>,
Mark Gritter <a href="mailto:mark#erdos,Stanford.EDU">mark#erdos,Stanford.EDU</a>, Tue 16 Mar 1999, 13:46 GMT
</LI>
<LI><strong><A NAME="00625" HREF="msg00625.html">Re: [MUD-Dev] Naming and Directories?</A></strong>,
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Wed 17 Mar 1999, 00:54 GMT
<UL>
<LI><strong><A NAME="00626" HREF="msg00626.html">Re: [MUD-Dev] Naming and Directories?</A></strong>,
Hans-Henrik Staerfeldt <a href="mailto:hhs#cbs,dtu.dk">hhs#cbs,dtu.dk</a>, Wed 17 Mar 1999, 02:48 GMT
</LI>
<LI><strong><A NAME="00628" HREF="msg00628.html">Re: [MUD-Dev] Naming and Directories?</A></strong>,
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Wed 17 Mar 1999, 08:43 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</ul>
</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>