Algorithm 781: Generating Hilbert's space-filling curve by recursion

被引:48
|
作者
Breinholt, G [1 ]
Schierz, C [1 ]
机构
[1] ETH Zurich, Inst Hyg & Appl Physiol, CH-8092 Zurich, Switzerland
来源
关键词
recursion;
D O I
10.1145/290200.290219
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
An efficient algorithm for the generation of Hilbert's space-filling curve is given. The algorithm implements a recursive procedure that involves simple integer operations and quickly converges to the set of points that make the Hilbert curve. The algorithm is elegant, short. and considerably easier to implement than previous recursive and nonrecursive algorithms and can be efficiently implemented in all programming languages that have integer operations and allow recursion. The fundamental Hilbert shape (a line joining the four corners of a square) is represented by two variables with values of either 0 or 1. This coding technique could be successfully applied to the generation of other regular space-filling curves, such as the Peano curve.
引用
收藏
页码:184 / 189
页数:6
相关论文
共 50 条