All Topics  
Space-filling curve

 

   Email Print
   Bookmark   Link

 

Space-filling curve


 
 

Space-filling curves or Peano curves are curveCurve

In mathematics, the concept of a curve tries to capture the intuitive idea of a geometrical one-dimensional and con...
s, first described by Giuseppe PeanoGiuseppe Peano

Giuseppe Peano was the leading Italian mathematician of his day, whose work is of exceptional philosophical value....
 (1858–1932), whose ranges contain the entire 2-dimensional unit squareUnit square

The unit square in a Cartesian coordinate system with coordinates is defined as the square consisting of the points where bo...
 (or the 3-dimensional unit cube).

Intuitively, a "continuous curve" in the 2-dimensional plane or in the 3-dimensional space can be thought of as the "path of a continuously moving point". To eliminate the inherent vagueness of this notion, JordanCamille Jordan

Marie Ennemond Camille Jordan was a French mathematician, known both for his foundational work in group theory and for his ...
 in 1887 introduced the following rigorous definition, which has since been adopted as the precise description of the notion of a "continuous curve":

A curveCurve

In mathematics, the concept of a curve tries to capture the intuitive idea of a geometrical one-dimensional and con...
 (with endpoints) is a continuous functionContinuous function

In mathematics, a continuous function is a function for which, intuitively, small changes in the input result in small chang...
 whose domain is the unit intervalUnit interval

In mathematics, the unit interval is the interval [0,1], that is the set of all real numbers x such that zero is less th...
 [0,1].


In the most general form, the range of such a function may lie in an arbitrary topological space, but in the most common cases, the range will lie in a Euclidean spaceEuclidean space

Around 300 BC, the Greek mathematician Euclid laid down the rules of what has now come to be called "plane Euclidean geometry", wh...
 such as the 2-dimensional plane (a "plane curve") or the 3-dimensional space ("space curve").

Sometimes, the curve is identified with the range or image of the function (the set of all possible values of the function), instead of the function itself. It is also possible to define curves without endpoints to be a continuous function on the real line (or on the open unit interval (0,1)).

In 1890, Peano discovered a densely self-intersecting curve which passed through every point of the unit square. This was the first example of a space-filling curve. Peano's purpose was to construct a continuous mapping from the unit intervalUnit interval

In mathematics, the unit interval is the interval [0,1], that is the set of all real numbers x such that zero is less th...
  onto the unit squareUnit square

The unit square in a Cartesian coordinate system with coordinates is defined as the square consisting of the points where bo...
, motivated by Georg CantorGeorg Cantor

Georg Ferdinand Ludwig Philipp Cantor was a German mathematician who is best known as the creator of set theory....
's earlier counterintuitive result that the infinite number of points in a unit intervalUnit interval

In mathematics, the unit interval is the interval [0,1], that is the set of all real numbers x such that zero is less th...
 is the same cardinalityCardinality

In mathematics, the cardinality of a set is a measure of the "number of elements of the set"....
 as the infinite number of points in any finite-dimensional manifoldManifold

A manifold is an abstract mathematical space in which every point has a neighborhood which resembles Euclidean space, but in...
, such as the unit squareUnit square

The unit square in a Cartesian coordinate system with coordinates is defined as the square consisting of the points where bo...
.

It was common to associate the vague notions of "thinness" and "1-dimensionality" to curves; all normally encountered
curves were piecewisePiecewise

In mathematics, a function f of a real number variable x is defined piecewise, if it is continuous on all but a fini...
 smooth (that is, have piecewise continuous derivatives), and such curves cannot fill up the entire unit square. Therefore, Peano's space filling curve was found to be highly counterintuitive.

From Peano's example, it was easy to deduce continuous curves whose ranges contained the n-dimensional hypercubeHypercube

In geometry, a hypercube is an n-dimensional analogue of a square and a cube ....
 (for any
positive integer n). It was also easy to extend Peano's example to continuous curves without endpoints which filled the entire n-dimensional Euclidean space (where n is 2, 3, or any other positive integer).

Most well-known space-filling curves are constructed iteratively as the limit of a sequence of piecewise linearPiecewise linear Overview

In mathematics, a piecewise linear function...
 continuous curves.

Outline of the construction of a space-filling curve

Let denote the Cantor spaceCantor space Summary

In mathematics, the term Cantor space is sometimes used to denote...

.

We start with a continuous function from the Cantor spaceCantor space

In mathematics, the term Cantor space is sometimes used to denote...
  onto the entire unit interval . (The restriction of the Cantor functionCantor function

In mathematics, the Cantor function, named after Georg Cantor, is a function c : [0,1] → [0,1] defined as follows:...
 to the Cantor setCantor set

The Cantor set, introduced by German mathematician Georg Cantor, is a construction of a set of points lying on a single lin...
 is an example of such a function.) From it, we get a continuous function from the topological product onto the entire unit square by setting

Since the Cantor setCantor set

The Cantor set, introduced by German mathematician Georg Cantor, is a construction of a set of points lying on a single lin...
 is homeomorphic to the product , there is a continuous bijection from the Cantor setCantor set

The Cantor set, introduced by German mathematician Georg Cantor, is a construction of a set of points lying on a single lin...
 onto . The composition of and is a continuous function mapping the Cantor setCantor set

The Cantor set, introduced by German mathematician Georg Cantor, is a construction of a set of points lying on a single lin...
 onto the entire unit square. (Alternatively, we could use the theorem that every compact metric space is a continuous image of the Cantor setCantor set

The Cantor set, introduced by German mathematician Georg Cantor, is a construction of a set of points lying on a single lin...
 to get the function .)

Finally, one can extend to a continuous function whose domain is the entire unit interval . This can be done either by using the Tietze extension theoremTietze extension theorem

The Tietze extension theorem in topology states that, if X is a normal topological space andis a continuous map from a c...
 on each of the components of , or by simply extending "linearly" (that is, on each of the deleted open interval in the construction of the Cantor setCantor set

The Cantor set, introduced by German mathematician Georg Cantor, is a construction of a set of points lying on a single lin...
, we define the extension part of on
to be the line segment within the unit square joining the values and ).

Properties

Approximation curves remain within a bounded portion of n-dimensional space, but their lengths increase without bound.

The space-filling curve is always self-intersecting, although the approximation curves in the sequence can be self-avoiding. There cannot be any non-self-intersecting (i.e. injective) continuous curve filling up the unit square, because that will make the curve a homeomorphismHomeomorphism

In the mathematical field of topology a homeomorphism or topological isomorphism is a special isomorphism between top...
 from the unit interval onto the unit square (any continuous bijectionBijection

In mathematics, a function f from a set X to a set Y is said to be bijective if for every y in Y there i...
 from a compact spaceCompact space

In mathematics, a subset of Euclidean space Rn is called compact if it is closed and bounded....
 onto a Hausdorff spaceHausdorff space

In topology and related branches of mathematics, a Hausdorff space, separated space or T2 space is a topological...
 is a homeomorphism), but the unit-square (which has no cut-point) is not homeomorphic to the unit interval (all points of which, except the endpoints, are cut-points).

Proof that a square and its side contain the same number of points

The highly counterintuitive result that the cardinalityCardinality

In mathematics, the cardinality of a set is a measure of the "number of elements of the set"....
 of a unit intervalUnit interval

In mathematics, the unit interval is the interval [0,1], that is the set of all real numbers x such that zero is less th...
 is the same as the cardinality of any finite-dimensional manifoldManifold

A manifold is an abstract mathematical space in which every point has a neighborhood which resembles Euclidean space, but in...
, such as the unit squareUnit square

The unit square in a Cartesian coordinate system with coordinates is defined as the square consisting of the points where bo...
, was first obtained by Cantor in 1878, but it can be more intuitively proved using space-filling curves.

Space-filling curves are always self-intersecting. This means that they are not injective, and as a consequence not bijective. Since a bijection between a set A and a set B is needed to prove that A and B have the same cardinality, space-filling curves are not a direct proof that a square (or cube or hypercube) has as many points as its side, but they can be used to obtain such a proof.

Intuitively, consider that the difficulty resided in showing that a function of the unit interval can fill a square or a cube or a hypercube, and this task was successfully accomplished by Peano. Indeed, being self-intersecting, his curves even manage to "overfill" the square. In other words, although Peano curves are not injective (because they overfill the space), they are surjective (because they fill it).

More formally, consider a space-filling curve which maps a unit interval [0,1] onto a unit square [0,1]×[0,1]. One can define a right inverseInverse function

In mathematics, an inverse function is in simple terms a function which "does the reverse" of a given function....
 for it which will be an injection from [0,1]×[0,1] into [0,1]. And x goes to <x,0> is an injection from [0,1] into [0,1]×[0,1]. Using the Cantor–Bernstein–Schroeder theoremCantor–Bernstein–Schroeder theorem

In set theory, the CantorBernsteinSchroeder theorem, named after Georg Cantor, Felix Bernstein, and Ernst Schrder, states th...
, we get a bijection between [0,1] and [0,1]×[0,1]. We conclude that [0,1] and [0,1]×[0,1] have the same cardinality.

One advantage of this proof is that, since an explicit definition of the right inverse is easily given, it does not require the use of the axiom of choiceAxiom of choice

In mathematics, the axiom of choice, or AC, is an axiom of set theory....
. For example, in the Hilbert curve each point in the square is the imageImage (mathematics) Summary

In mathematics, image is a part of the set theoretic notion of function. ...
 of from one to four points in the line segment. When one of the coordinates is a rational number with a power of two in the denominator, that coordinate can be approached either from below or above giving two (not necessarily distinct) values for the preimage. Similarly, when both are such, then there are four (not necessarily distinct). Since the number of possible preimages for each point is finite (indeed less than or equal to four), one can just choose the smallest of them systematically, making the axiom of choice unnecessary.

Similarly, finite-dimensional space-filling curves can be used to prove, in general, that any finite-dimensional space contains the same number of points as any lineLine

The word line derives from the Latin lingui, meaning flax plant from which linen is produced; at one time, a stretch...
 or line segmentLine segment

In geometry, a line segment is a part of a line that is bounded by two end points, and contains every point on the line betw...
.

The Hahn-Mazurkiewicz theorem

The Hahn-Mazurkiewicz theorem is the following characterization of general continuous curves:

A Hausdorff topological space is a continuous image of the unit interval if and only if it is a compact, connectedConnected space

In topology and related branches of mathematics, a connected space is a topological space which cannot be written as the dis...
, locally connected second-countable spaceSecond-countable space

In topology, a second-countable space is a topological space satisfying the "second axiom of countability"....
.



Note: In many formulations of the Hahn-Mazurkiewicz theorem, "second-countable" is replaced by "metrizable". These two formulations are equivalent. In one direction a compact Hausdorff space is a normal spaceNormal space

In topology and related branches of mathematics, normal spaces, T4 spaces, and T5 spaces are particularly nice k...
 and, by the UrysohnPavel Samuilovich Urysohn

Pavel Samuilovich Urysohn, Pavel Uryson was a Russian mathematician who is best known for his contributions in the theory ...
 metrization theoremMetrization theorem

In topology and related areas of mathematics, a metrizable space is a topological space that is homeomorphic to a metric spa...
, second-countable then implies metrizable. Conversely a compact metric space is second-countable.

Literature

  • Hans Sagan, Space-Filling Curves, Springer-Verlag 1994. ISBN 0387942653.
  • B. B. Mandelbrot, The Fractal Geometry of Nature, Ch. 7, "Harnessing the Peano Monster Curves", W. H. Freeman, 1982
  • Douglas M. McKenna, "SquaRecurves, E-Tours, Eddies, and Frenzies: Basic Families of Peano Curves on the Square Grid", a chapter from The Lighter Side of Mathematics - Proceedings of the Eugene Strens Memorial Conference on Recreational Mathematics and its History, Math. Assoc. of America, 1994
  • G. Peano, Sur une courbe, qui remplit toute une aire plane. Math. AnnMathematische Annalen

    The Mathematische Annalen is a German mathematical research journal published by Springer Science+Business Media....
     36, 157-160.

See also

  • Dragon curveDragon curve

    A dragon curve is the generic name for any member of a family of self similar fractal curves, which can be approximated by r...
  • Gosper curveGosper curve Overview

    The Gosper curve, named after Bill Gosper, is a space-filling curve....
  • Hilbert curveHilbert curve

    A Hilbert curve is a continuous fractal space-filling curve first described by the German mathematician David Hilbert in 189...
  • Hilbert R-treeHilbert R-tree

    Hilbert R-tree, an R-tree variant, is an index for multidimensional objects like lines, regions, 3-D objects, or high dimens...
  • Moore curveMoore curve Overview

    A Moore curve is a continuous fractal space-filling curve with a construction similar to the Hilbert curve....
  • Sierpinski curveSierpinski curve

    Sierpinski curves are a recursively defined sequence of continuous closed plane fractal curves discovered by Waclaw Sierpins...
  • Z-order (curve)Z-order (curve)

    z-order is a space-filling curve which is often used in computer science: Due to its good locality preserving behaviour it i...
  • Self-similar fractalFractal

    In colloquial usage, a fractal is a shape that is recursively constructed or self-similar, that is, a shape that appears similar a...
  • List of fractals by Hausdorff dimensionList of fractals by Hausdorff dimension

    A fractal is a geometric object whose Hausdorff dimension strictly exceeds its topological dimension....


External links

  • at cut-the-knotCut-the-knot

    cut-the-knot is an educational website maintained by Alexander Bogomolny and devoted to popular exposition of a great variet...



Java applets:

  • at cut-the-knotCut-the-knot

    cut-the-knot is an educational website maintained by Alexander Bogomolny and devoted to popular exposition of a great variet...
  • at cut-the-knotCut-the-knot

    cut-the-knot is an educational website maintained by Alexander Bogomolny and devoted to popular exposition of a great variet...
  • at cut-the-knotCut-the-knot

    cut-the-knot is an educational website maintained by Alexander Bogomolny and devoted to popular exposition of a great variet...