Space-Filling Curves
Shihan Kanungo
TL;DR
Space-filling curves provide continuous surjections from a one-dimensional interval to higher-dimensional spaces, challenging intuition about curves. The paper reviews, formalizes, and compares Hilbert's (a simple Peano variant) and Lebesgue's space-filling curves, and presents the Hahn-Mazurkiewicz theorem as a classification of attainable sets as continuous images of $[0,1]$. It constructs the Hilbert curve via a dyadic correspondence that preserves adjacency and proves key properties, including a Hölder condition with exponent $1/2$ and measure-preservation on subintervals. It also discusses the general theorem that any compact, connected, weakly locally-connected set is a continuous image of $[0,1]$, and emphasizes practical applications such as Google's $S2$ cells and GPU locality-preserving codes. The work highlights the deep connections between topology, fractal constructions, and real-world spatial indexing.
Abstract
We examine space-filling curves, which are surjective continuous maps from $[0,1]$ to some higher-dimensional space, usually the unit square $[0,1]^2$. In particular, we define Peano's curve and Lebesgue's curve, and state some of their properties. We also discuss the Hahn-Mazurkiewicz theorem, which characterizes those subsets of $\mathbb{R}^n$ that are the image of a space-filling curve. Finally, we discuss real-world applications of Hilbert curves, in particular Google's $S2$ Cells.
