|
Algorithm 1 Generating Binary Encoding for the Hilbert Curve |
-
1:
Input: Area size (assumed ), Point coordinates
-
2:
Output: Binary encoding of each point on the Hilbert curve
-
3:
For each point do
-
4:
-
5:
-
6:
,
-
7:
while do
-
8:
-
9:
-
10:
-
11:
if then
-
12:
if then
-
13:
-
14:
end if
-
15:
-
16:
end if
-
17:
-
18:
end while
-
19:
Output binary representation of
|