Space filling curves are a way to fill a grid with line that preserves locality - that is, two close points at the line are also 2 close points on space.
Is there any fast (O(1)
) algorithm to map between an N-dimensional coordinate and the index on the corresponding N-dimensional space-filling curve?