zcurve
Z-curve, also known as Morton order or Morton code, is a space-filling curve used to map multi-dimensional data to one dimension while preserving locality. It was introduced by G. H. Morton in 1966 as a method for sorting two-dimensional locations for efficient storage and retrieval. The curve is constructed by recursively subdividing a d-dimensional space into 2^d hypercubes and visiting them in a Z-shaped order, which translates into interleaving the binary digits of each coordinate.
In practice, the Morton code for a d-dimensional point is obtained by interleaving the bits of its
Variations: the concept extends to any number of dimensions. In computing and databases, the Morton order is
Limitations and comparisons: while Z-curve preserves locality to some extent, it is generally less locality-preserving than