Space-Filling Curves

Stats

Curve typeHilbert
Order4
Grid16 × 16
Points256
Curve length255 steps
Hovered cell—
1D index d—
Hover or click a cell to read its 1D index d along the curve — the bijection d ↔ (x,y). Notice how the Hilbert curve keeps neighbouring indices close in 2D (good locality), while Z-order makes long diagonal jumps.