Professional Documents
Culture Documents
Curves
An Introduction
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
f ( A) B
with
f ( A) f ( x) Ran f | x A Dom f
the image of A under the function f
JASS 2005 Saint Petersburg
x1 x2 f ( x1 ) f ( x2 )
3.
Basic notations
n
Subsets of
Binary notation:
I 0,1 ,
0,1
02 b1b2b3... b1 / 2 b2 / 22 b3 / 23 ..., bj 0 or 1
Ternary notation:
Periods
Finite binaries
02 b1b2b3 ...bn 02 b1b2b3 ...bn 000...
02 b1b2b3 ...bnb 02 b1b2b3 ...bn (b 1)1, b 1
e.g.
021 0202
because
1
1
n 2i 2n1
Curve definition
f : a, b
n is continuous, then f ([ a, b])
If
is called a curve. Without loss of generality we can assume the
domain to be I, f(0) and f(1) are the beginning and endpoint.
Notation:
f (t ) x ( x1 , x2 (, x3 )), t I
x2 (t )
( x (t ))
3
JASS 2005 Saint Petersburg
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
2/
3/
4/
1
1/
16
2/
16
3/
16
4/
1,1
16
1,1
16/
16
0,0
16
0,0
1st iteration
2nd iteration
3rd iteration
6th iteration
JASS 2005 Saint Petersburg
is nowhere differentiable.
Use complex representation z , and affine transformations to wich will be subjected recursively.
Give an orientation to each subsquare such that the exit point
of a subsquare coincides with the entry point of the next
subsquare.
0th iteration
1
2
1st iteration
1
4
1
2
3
4
2nd iteration
1
1 i
h2 z z
2
2 2
x1 1 0
: h0
x2 2 1
x1 1 1
: h1
x2 2 0
x1 1 1
: h2
x2 2 0
1
i
h3 z zi 1
2
2
x1 1 0 1 x1 1 2 1
x1 1
: h3
H 3 h3
x2 2 1 0 x2 2 1 2
x2 2
1
h0 z zi
2
1
i
h1 z z
2
2
1 x1 1 0 1
x1 1
H 0 h0
0 x2 2 0 2 x2 2
0 x1 1 0 1 x1 1
H1 h1
1 x2 2 1 2 x2 2
0 x1 1 1 1
x1 1
H 2 h2
1 x2 2 1 2
x2 2
0
f h (04 q1q2 q3 ... qn ) hq1 hq2 hq3 ...hqn
0
JASS 2005 Saint Petersburg
continued...
n
0
1
hq1 hq2 hq3 ...hqn ... j
j 1 2
0
1
f h (04 q1q2 q3 ...) j
j 1 2
f h is cont .
H q0 H q1 H q2 H q3 ...H q j1 hq j
H q0 H q1 H q2 H q3 ...H q j1 hq j
1
f h (04 q1q2 q3 ...) j
j 1 2
e0 j e3 j
H 0 H 3 hq j ,
0 5/ 8
f h (04 203) h2 h0 h3
0
3/
4
h2
(5 / 8,3/ 4)
h0
(0,0)
h3
JASS 2005 Saint Petersburg
k
k 1
k 1
k
2n
pn : I : pn (t ) 2 (t 2 n ) f h ( 2 n ) 2 (t 2 n ) f h ( 2 n ),
2
2
2
2
for k / 22 n t (k 1) / 22 n , k 0,1, 2,3,...22 n 1
2n
3 dimensional SFCs
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
fp : I
with
03 t1 (k t2 t3 )(k t2 t4 t5 )...
f p (03 t1t2t3t4 ...)
0 (k t1 t )(k t1 t3 t )...
2
4
3
030 23 4 ...
f p (0301t3t4t5 ...)
031 2 3 4 ...
030 2 3 4 ...
1
3
3
2
3
1 2 fp 1 1 2
t ,
0, ,
9 9
3 3 3
1 fp 1 1
t 0,
0, 0,
9
3 3
...
1
3
2
3
1st iteration
2nd iteration
3rd iteration
1
1
1 i
Define similarity transforms: p0 z z, p1 z z ,...
3
3
3 3
x1 1 x1 1
with p j Pj p j , j 0,1,...8
x2 3 x2 3
JASS 2005 Saint Petersburg
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
(0, 0)
(2, 0)
n=1
n=0
n=2
1
S q0 S q1 S q2 ...S q j1 sq j
j
j 1 2
x1 1 1 0 x1 1 0 1 x1 1
: S0
S0 s0
x2 2 0 1 x2 2 0 2 x2 2
x1 1 0 1 x1 1 2 1 x1 1
: S1
S1 s1
x2 2 1 0 x2 2 0 2 x2 2
x1 1 0 1 x1 1 2 1 x1 1
: S2
S2 s2
x2 2 1 0 x2 2 2 2 x2 2
x1 1 1 0 x1 1 2 1 x1 1
: S3
S3 s3
x2 2 0 1 x2 2 0 2 x2 2
(1,1)
(0, 0)
(2, 0)
n=0
n=1
n=2
n=3
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
1.
1 2
0, ,1
3 3
2.
1 2 1 2 7 8
0, , , ,1
9 9 3 3 9 9
3.
...
1
27
2 1
27 9
2
9
7
27
8
27
1
3
2
3
7
9
8
9
02 t1t3t5 ...
f (03 (2t1 )(2t2 )(2t3 )...)
02 t2t4t6 ...
and extend f continuously into I by linear interpolation in every
interval that is removed in the generation of :
1
fl (t )
f (an )(bn t ) f (bn )(t an ) , an t bn
bn an
1st iteration
2nd iteration
4th iteration
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
Contents
1. Introductory section
2. Types of space-filling curves
1.
2.
3.
4.
Acceptable computational complexity is required in implementing computational grids. Especially for adaptively refined grids
the manipulation part cannot be too expensive choice of appropriate data structures is important.
Often applied: space trees of which the leaves correspond to the
grid cells that are enumerated by a discrete SFC. For adaptively
refined grids we use different iterates depending on the level of
refinement.
JASS 2005 Saint Petersburg
Consequences:
{xi | s j f 1 ( xi ) s j 1}
S
j
Ij
j
List of references
[1] Hans Sagan, Space-Filling Curves, Springer-Verlag, 1994.
[2] Michael Bader, Raumfllende Kurven, Institut fr Informatik
der Technischen Universitt Mnchen, 2004.
[3] F. Gnther, M. Mehl, M. Pgl, C. Zenger, A cache-aware
algorithm for PDEs on hierarchical data structures based on
space-filling curves.
[4] Gerhard Zumbusch, Adaptive Parallel Multilevel Methods for
Partial Differential Equations.
[5] R. Dafner, D. Cohen-Or, Y. Matias, Context-based Space
Filling Curves, 2000.
[6] www.wikipedia.org
JASS 2005 Saint Petersburg