Hilbert and Moore Fractal Curves

The Hilbert curve and the Moore curve are two famous plane-filling curves. They have similar recursive constructions, constructed here using L-systems. Such curves map points in multi-dimensional space to points on a one-dimensional line, and thus have properties that make them useful for certain types of data manipulation (such as image processing).

(12 lines omitted)

Snapshot 1: Viewing multiple iterations at once can assist in making the recursive construction of the curves clearer.
Snapshot 2: One way in which the Hilbert curve and Moore curve differ is in the relative positions of the start and end points of the curve. While the Hilbert curve begins and ends in adjacent corners of the bounding square, the Moore curve begins and ends in adjacent points in the resulting grid.
Snapshot 3: In this Demonstration, the Hilbert curve and the Moore curve begin with the same initial shape; it can be illuminating to switch between the Hilbert and Moore figures for a given iteration level.
The Lebesgue curve has similar properties; while the Lebesgue mapping is easier to compute, the Hilbert curve is often desirable in that no two consecutive points are very far apart.
comments
 
Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. Your message and contact information may be shared with the author of any specific Demonstration for which you give feedback, but will not otherwise be published or distributed.
Privacy Policy »

Note: To run this Demonstration you need the free
Mathematica Player
or Mathematica 7+
Download or upgrade to Mathematica Player 7
I already have Mathematica Player or Mathematica 7+