SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a...
Transcript of SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a...
![Page 1: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/1.jpg)
SPACE-FILLING CURVES (SFC)By: Amirhessam Tahmassebi
Department of Scientific Computing
Florida State University
November 2015
1
![Page 2: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/2.jpg)
OVERVIEW
• Introduction
• Type of Space-Filling Curves
1. The Peano Space-Filling Curves
2. The Hilbert Space-Filling Curves
3. The Sierpinski Space-Filling Curves
4. The Lebesgue Space-Filling Curves
• Applications of Space-Filling Curves
2
![Page 3: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/3.jpg)
SURJECTIVE MAPPING:
The function is surjective (onto) if every element of the codomain is mappedto by at least one element of the domain.
Surjective map from A onto B :
f(a) = b
If f : A→B then f is said to be surjective if
Ɏ b Є B , Ǝ a Є A , f(a) = b
3
![Page 4: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/4.jpg)
INJECTIVE MAPPING:
An injective function or injection or one-to-one function is a function thatpreserves distinctness: it never maps distinct elements of its domain to thesame element of its codomain.
Injective map from A onto B :
f(a) = b
If f : A→B then f is said to be surjective if
Ɏ a , b Є A , f(a) = f(b) → a = b
or
Ɏ a , b Є A , a ≠ b → f(a) ≠ f(b)
4
![Page 5: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/5.jpg)
BIJECTIVE MAPPING:
A function is bijective if it is both injective and surjective. A function isbijective if and only if every possible image is mapped to by exactly oneargument.
If f : A→B then f is said to be bijective if
For all b Є B, there’s a unique a Є A
Such that f(a) = b
5
![Page 6: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/6.jpg)
SPACE-FILLING CURVE (SFC) DEFINITION:
Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thoughtof as the path of a continuously moving point.
6
![Page 7: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/7.jpg)
HISTORY OF THE HILBERT CURVES:
• Hilbert Curves are named after the German mathematician David Hilbert.They were first described in 1891.
• A Hilbert curve is a continuous space-filing curve. They are also fractal andare self-similar; If you zoom in and look closely at a section of a higher-ordercurve, the pattern you see looks just the same as itself.
• An easy way to imagine creation of a Hilbert Curve is to envisage you havea long piece of string and want to lay this over a grid of squares on a table.Your goal is to drape the string over board so that the string passes througheach square of the board only once.
7
![Page 8: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/8.jpg)
THE HILBERT CURVE: GEOMETRIC GENERATION:
• If I can be mapped continuously on Ω, then after partitioning I into four congruentsubintervals and Ω into four congruent subsquares, each subinterval can bemapped continuously onto one of the subsquares. This partitioning can be carriedout ad infinitum.
• The subsquares must be arranged such that adjacent subintervals are mappedonto adjacent subsquares.
• Inclusion relationship: if an interval corresponds to a square, then its subintervalsmust correspond to the subsquares of that square.
• This process defines a mapping 𝑓ℎ(𝐼), called the Hilbert space-filling curve.
8
![Page 9: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/9.jpg)
THE HILBERT CURVE: GEOMETRIC GENERATION:
9
1
2 3
4
3
21
4
16
3/41/4
2/44/4
04/16
3/162/16
1/1616/16
1
0,0 0,0
1,1 1,1
1st iteration 2nd iteration 3rd iteration
![Page 10: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/10.jpg)
6th Iteration
10
![Page 11: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/11.jpg)
11
![Page 12: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/12.jpg)
APPLICATION: 1D INTO 2D:
• We find that if we convert the distance (d) shown on the tape-measure to apair of (x,y) coordinates on the grid, then we find that other marks on thetape measure (close to d) have (x,y) coordinates that are very close.
• We have created a useful mapping function between one-dimension andtwo-dimensions that does a good job of preserving locality.
12
![Page 13: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/13.jpg)
• To the right you can see the rainbow painted, using a Hilbert Curve. Colorsthat are close to each other on the spectrum have similar (x,y)coordinates.
• For more info:
https://www.jasondavies.com/hilbert-curve/
13
![Page 14: SPACE-FILLING CURVES (SFC) - People · space-filling curve (sfc) definition: Intuitively, a continuous curve in 2 or 3 (or higher) dimensions can be thought of as the path of a continuously](https://reader030.fdocuments.us/reader030/viewer/2022041109/5f0d123e7e708231d438892d/html5/thumbnails/14.jpg)
HIGHER DIMENSIONS:
• The characteristics of Hilbert Curves can be extended to more than twodimensions. A 1D line can be wrapped up in as many dimensions as you canimagine.
• A rendering of a curve in 3D can is shown on the left.
In this shape, points on the line numerically close
to one another are also close in 3D space.
• It's easy to see how this can be
extended into higher dimensions.
14