A curve is continuous function whose domain is an interval of the real numbers
(often the unit interval
An example curve
Background
The unit interval and the unit square were proved to have the same cardinality
by Cantor: let
We can build an injective map to the unit interval by taking
But we can simply build
Thus,
His reaction to this very counterintuitive result was: Je le vois, mais je ne le crois pas! (I see it, but I don't believe it!). 1
Cantor did eventually find a bijective function, using continued fractions. It was later proved that such functions are necessarily discontinuous.
Space-filling curves
Peano, motivated by this result, presented a continuous, surjective map from the unit interval to the unit square, now called a space-filling curve.
This was (and still is, at least for me) very ground-breaking as well. We have a line, which we intuitively think as 1D, that completely fills a plane, which we think as 2D. This led mathematicians to rethink about the concept of dimension.
Anyway, the Peano curve is not injective, so the curve must intersect itself. These curves are generally defined as the limit of a sequence of iteratively constructed, piecewise linear, continuous curves.
Another construction of a space-filling curve was provided by Hilbert.
First iterations of a Hilbert curve
The production rules are the following:
Production rules of a Hilbert curve