Links

Content Skeleton

This Page

Previous topic

Cuda Threads and Blocks

Next topic

Hardware

Bounding Volume Hierarchy (BVH)

Background

A function which maps multidimensional data to one dimension while preserving locality of the data points

The z-value of a point in multidimensions is simply calculated by interleaving the binary representations of its coordinate values. Once the data are sorted into this ordering, any one-dimensional data structure can be used such as binary search trees, B-trees, skip lists or (with low significant bits truncated) hash tables. The resulting ordering can equivalently be described as the order one would get from a depth-first traversal of a quadtree; because of its close connection with quadtrees, the Z-ordering can be used to efficiently construct quadtrees and related higher dimensional data structures.