concept

Morton Curve

The Morton Curve, also known as Z-order curve, is a space-filling curve that maps multi-dimensional data to a one-dimensional linear order while preserving spatial locality. It is commonly used in computer science for spatial indexing, data compression, and parallel computing to improve cache efficiency and reduce memory access latency. The curve recursively partitions space into quadrants (in 2D) or octants (in 3D) and assigns a linear order based on interleaved bits of coordinates.

Also known as: Z-order curve, Z-curve, Morton order, Z-order, Morton code
🧊Why learn Morton Curve?

Developers should learn about the Morton Curve when working on applications that require efficient spatial queries, such as geographic information systems (GIS), computer graphics (e.g., ray tracing, texture mapping), or database indexing for multi-dimensional data. It is particularly useful in high-performance computing and game development to optimize data access patterns, reduce cache misses, and enable parallel processing by grouping spatially close data together in memory.

Compare Morton Curve

Learning Resources

Related Tools

Alternatives to Morton Curve