msg00118.html
1999Q4/msg00118.html · 10.4 KB
From the archive 1999Q4.zip
Download the archive « Back to the archive contents
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev] Physics"] -->
<!--X-From-R13: "Quevfgbcure Oyyra" <QuevfgbcureONExbgbf.arg> -->
<!--X-Date: Thu, 04 Nov 1999 13:15:46 -0800 -->
<!--X-Message-Id: NDBBIGFBGLEIKKPEAHIBMEDODNAA.ChristopherA#Skotos,net -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: E11iqJ9-00051P-00#under,eng.cp.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mu</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:ChristopherA#Skotos,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="msg00117.html">Previous</a>
| <a href="msg00119.html">Next</a>
]
Thread:
[ <a href="msg00105.html">Previous</a>
| <a href="msg00120.html">Next</a>
]
Index:
[ <A HREF="author.html#00118">Author</A>
| <A HREF="#00118">Date</A>
| <A HREF="thread.html#00118">Thread</A>
]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev] Physics"]</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>>, <<A HREF="mailto:dgd#list,imaginary.com">dgd#list,imaginary.com</A>></LI>
<LI><em>Subject</em>: Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev] Physics"]</LI>
<LI><em>From</em>: "Christopher Allen" <<A HREF="mailto:ChristopherA#Skotos,net">ChristopherA#Skotos,net</A>></LI>
<LI><em>Date</em>: Thu, 4 Nov 1999 13:04:15 -0800</LI>
<LI><em>Importance</em>: Normal</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>
Recently on the Mud-Dev list <<A HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>> there
has been some discussion of Physics, including properties of physical spaces,
and on the DGD-List <<A HREF="http://list.imaginary.com/mailman/listinfo/dgd">http://list.imaginary.com/mailman/listinfo/dgd</A>> the
discussion recently is on how to have rooms with a view.
There is an excellent article in July 1999 issue of Dr. Dobbs 'Space-Filling
Curves in Geospatial Applications' by Ron Gutman on page 115, with the summary
"B-Tree databases are very efficient with one-dimensional data. Ron shows how
Hilbert curves can be used to efficiently manage multidimensional data, with no
changes to the underlying database".
Regrettably, it is not one of the free articles on their website, but you can
buy it for $4 at <<A HREF="http://www.ddj.com/articles/1999/9907/9907toc.htm">http://www.ddj.com/articles/1999/9907/9907toc.htm</A>>. More
importantly, though, there is free source code available at
<<A HREF="http://www.ddj.com/ftp/1999/1999_07/aa799.txt">http://www.ddj.com/ftp/1999/1999_07/aa799.txt</A>>.
The problem that Hilbert curves solve are when you have a number of items in a
2D space, and you want to find all the other items that are nearby. In mud
terms, these problems include how far you a shout can be heard, determine if the
tower in the distance is visible, etc. Using a *-tree index to answer these 2-D
space problems is very inefficient.
Instead, the 2D space is stretched out into a one dimensional list where every
2D cell is mapped to an ordered list. Items in 2D space are mapped to where on
that 1D string the item exists. Then a standard *-tree index can be used to
quickly find the items.
The trick is how to turn the 2D space into a 1D list that is efficient for
finding the items. There are several techniques, in particular Morton keys, that
have been used to do this as they offer a quad hierarchy. However, Hilbert
curves (which look similar to fractal curves) are even more efficient, in
particular for square 2D source regions, and square search regions. There is an
excellent primer on Hilbert curves at
<<A HREF="http://www.dcs.napier.ac.uk/~andrew/hilbert.html">http://www.dcs.napier.ac.uk/~andrew/hilbert.html</A>>, and some other Hilbert
source code in the Numerical Math Class Library at
<<A HREF="http://www.kanga.nu/mirrors/www.lh.com/%257Eoleg/ftp/LinAlg.README.txt">http://www.kanga.nu/mirrors/www.lh.com/%257Eoleg/ftp/LinAlg.README.txt</A>>.
The article also hints at the end that Hilbert curves can also be used for 3D
cubic spaces and as an efficient (but non-optimal) solution to the traveling
salesman problem. The author Ron Gutman also claims but does not describe a
variant called "Hilbert R-Tree" that combines both Hilbert and R-Tree
techniques.
I searched the Mud-Dev list <<A HREF="http://www.kanga.nu/search.php3">http://www.kanga.nu/search.php3</A>> on the topic of
Hilbert curve. There are some discussions of merits of Morton curves on Mud-Dev
already <<A HREF="http://www.kanga.nu/archives/MUD-Dev-L/1997Q1/msg00025.html">http://www.kanga.nu/archives/MUD-Dev-L/1997Q1/msg00025.html</A>>, but I
have not seen any discussion of Hilbert curves for spatial keys other then that
they are "kinda odd and computationally a bit nasty to work with" -- I hope that
people find them useful.
If anyone implements anything interesting with Hilbert curves, I'd be pleased to
find out about it.
------------------------------------------------------------------------
.. Christopher Allen Skotos Tech Inc. ..
.. 1512 Walnut St., Berkeley, CA 94709-1513 ..
.. <<A HREF="http://www.Skotos.net">http://www.Skotos.net</A>> o510/649-4030 f510/649-4034 ..
_______________________________________________
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="00123" HREF="msg00123.html">[MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></strong>
<ul compact><li><em>From:</em> Ola Fosheim Grøstad <olag#ifi,uio.no></li></ul>
<li><strong><A NAME="00120" HREF="msg00120.html">[MUD-Dev] Re: Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev]Physics"]</A></strong>
<ul compact><li><em>From:</em> Ola Fosheim Grøstad <olag#ifi,uio.no></li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00105" HREF="msg00105.html">Re: [MUD-Dev] Physics</A></STRONG>
<UL><LI><EM>From:</EM> J C Lawrence <claw#cp,net></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00117.html">Re: [MUD-Dev] historians</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00119.html">[MUD-Dev] Re Hilbert Curves</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00105.html">Re: [MUD-Dev] Physics</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00120.html">[MUD-Dev] Re: Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev]Physics"]</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00118"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00118"><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><A NAME="00116" HREF="msg00116.html">[MUD-Dev] ADMIN: Archives are back again</A></strong>,
J C Lawrence <a href="mailto:claw#cp,net">claw#cp,net</a>, Thu 04 Nov 1999, 00:32 GMT
<LI><strong><A NAME="00110" HREF="msg00110.html">[MUD-Dev] Language Independence Article.</A></strong>,
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Wed 03 Nov 1999, 17:48 GMT
<LI><strong><A NAME="00104" HREF="msg00104.html">[MUD-Dev] Physics</A></strong>,
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Tue 02 Nov 1999, 18:35 GMT
<UL>
<LI><strong><A NAME="00105" HREF="msg00105.html">Re: [MUD-Dev] Physics</A></strong>,
J C Lawrence <a href="mailto:claw#cp,net">claw#cp,net</a>, Wed 03 Nov 1999, 02:37 GMT
<UL>
<LI><strong><A NAME="00118" HREF="msg00118.html">Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev] Physics"]</A></strong>,
Christopher Allen <a href="mailto:ChristopherA#Skotos,net">ChristopherA#Skotos,net</a>, Thu 04 Nov 1999, 21:15 GMT
<UL>
<LI><strong><A NAME="00120" HREF="msg00120.html">[MUD-Dev] Re: Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev]Physics"]</A></strong>,
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Thu 04 Nov 1999, 23:03 GMT
<UL>
<LI><strong><A NAME="00122" HREF="msg00122.html">Re: [MUD-Dev] Re: Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev] Physics"]</A></strong>,
J C Lawrence <a href="mailto:claw#cp,net">claw#cp,net</a>, Thu 04 Nov 1999, 23:48 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00123" HREF="msg00123.html">[MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></strong>,
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Fri 05 Nov 1999, 02:36 GMT
<UL>
<LI><strong><A NAME="00124" HREF="msg00124.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></strong>,
Christopher Allen <a href="mailto:ChristopherA#skotos,net">ChristopherA#skotos,net</a>, Fri 05 Nov 1999, 03:16 GMT
</LI>
</UL>
</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>