Hilbert CurvesSlide 1 Introduction to the Hilbert Curves This slide sequence will show several different ways to view the recursive Hilbert curves invented.

Slides:



Advertisements
Similar presentations
The Function Concept DEFINITION: A function consists of two nonempty sets X and Y and a rule f that associates each element x in X with one.
Advertisements

1 Fractal Dust and Schottky Dancing Fractal Dust and nSchottky Dancing University of Utah GSAC Colloquium Josh Thompson.
Exponential Functions Logarithmic Functions
COUNTING AND PROBABILITY
Mathematics as a Second Language Mathematics as a Second Language Mathematics as a Second Language © 2007 Herbert I. Gross An Innovative Way to Better.
Copyright © Cengage Learning. All rights reserved.
Induction and recursion
Copyright © Cengage Learning. All rights reserved. CHAPTER 1 SPEAKING MATHEMATICALLY SPEAKING MATHEMATICALLY.
Spatial indexing PAMs (II).
15 PARTIAL DERIVATIVES.
Evaluating Hypotheses
INFINITE SEQUENCES AND SERIES
16 MULTIPLE INTEGRALS.
7 INVERSE FUNCTIONS.
LIMITS 2. LIMITS 2.4 The Precise Definition of a Limit In this section, we will: Define a limit precisely.
Copyright © Cengage Learning. All rights reserved.
APPLICATIONS OF DIFFERENTIATION 4. In Sections 2.2 and 2.4, we investigated infinite limits and vertical asymptotes.  There, we let x approach a number.
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2011 Hawkes Learning Systems. All rights reserved. Hawkes Learning Systems: College Algebra.
Bearing & Azimuth. Bearing Bearing describes the direction of a line; in highway design, we call it “tangent” It cannot be larger than 90 o It is measured.
1/25 Pointer Logic Changki PSWLAB Pointer Logic Daniel Kroening and Ofer Strichman Decision Procedure.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved. CHAPTER 11 ANALYSIS OF ALGORITHM EFFICIENCY ANALYSIS OF ALGORITHM EFFICIENCY.
Solving Systems of Equations. Rule of Thumb: More equations than unknowns  system is unlikely to have a solution. Same number of equations as unknowns.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Copyright © Cengage Learning. All rights reserved. 3 Applications of Differentiation.
Copyright © Cengage Learning. All rights reserved. 6 Inverse Functions.
The importance of sequences and infinite series in calculus stems from Newton’s idea of representing functions as sums of infinite series.  For instance,
February 12, 2015Applied Discrete Mathematics Week 2: Functions and Sequences 1Exercises Question 1: Given a set A = {x, y, z} and a set B = {1, 2, 3,
Sequences & Summation Notation 8.1 JMerrill, 2007 Revised 2008.
Chapter Twelve Multiple Integrals. Calculus Section 12.1 Double Integrals Over Rectangles Goals Goals Volumes and double integrals Volumes and double.
LIMITS AND DERIVATIVES 2. In Sections 2.2 and 2.4, we investigated infinite limits and vertical asymptotes.  There, we let x approach a number.  The.
APPLICATIONS OF DIFFERENTIATION 4. A polynomial behaves near infinity as its term of highest degree. The polynomial behaves like the polynomial Near infinity.
Copyright © Cengage Learning. All rights reserved. 6 Normal Probability Distributions.
Introduction to CS Theory Lecture 3 – Regular Languages Piotr Faliszewski
Copyright © 2011 Pearson Education, Inc. Slide Sequences A sequence is a function that has a set of natural numbers (positive integers) as.
Contouring in C ATS 315. How Contours Really Work Contours may LOOK like curves, but they are really just straight line segments.
Chapter 6 Graph Theory R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001.
In Sections 2.2 and 2.4, we investigated infinite limits and vertical asymptotes.  There, we let x approach a number.  The result was that the values.
Vectors and the Geometry of Space 9. Three-Dimensional Coordinate Systems 9.1.
Copyright © Cengage Learning. All rights reserved. 2 Limits and Derivatives.
The Game of Algebra or The Other Side of Arithmetic The Game of Algebra or The Other Side of Arithmetic © 2007 Herbert I. Gross by Herbert I. Gross & Richard.
Mathematics Conditional Probability Science and Mathematics Education Research Group Supported by UBC Teaching and Learning Enhancement Fund
Copyright © Cengage Learning. All rights reserved.
1 12/2/2015 MATH 224 – Discrete Mathematics Formally a graph is just a collection of unordered or ordered pairs, where for example, if {a,b} G if a, b.
Mathematical Preliminaries
Infinite Series 9 Copyright © Cengage Learning. All rights reserved.
Quadtrees: Non-Uniform Mesh Generation Universidad de Puerto Rico – Mayagüez Mathematics Department Computational Geometric Course Course Professor: Robert.
Copyright © Cengage Learning. All rights reserved. 1 Functions and Models.
Map Skills Directions – Where do I go???. How can you tell what direction you are facing? Watch the movement of the sun or stars. Watch the movement of.
Copyright © Cengage Learning. All rights reserved. 2 Limits and Derivatives.
VECTORS AND THE GEOMETRY OF SPACE 10. VECTORS AND THE GEOMETRY OF SPACE In this chapter, we introduce vectors and coordinate systems for three-dimensional.
1 1 Devon M. Simmonds University of North Carolina, Wilmington CSC133 Discrete Mathematical Structures TIME: Tuesday/Thursday 9:30 – 10:45am in Office.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Fractions and Rational Numbers
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Chapter 2 1. Chapter Summary Sets The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions and sequences.
FUNCTIONS.
Maps, Keys, and Legends.
Copyright © Cengage Learning. All rights reserved.
Vectors and the Geometry
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Mathematical Induction Recursion
Copyright © Cengage Learning. All rights reserved.
Vectors and the Geometry
RECURSION Annie Calpe
Bearing and Azimuth.
Presentation transcript:

Hilbert CurvesSlide 1 Introduction to the Hilbert Curves This slide sequence will show several different ways to view the recursive Hilbert curves invented by the mathematician David Hilbert about 100 years ago. The slides will be organized as a sequence of images and the mathematical explanation will follow at the end. The Hilbert curves were used as an illustration of the power of recursion in the famous text: Nicklaus Wirth, “Algorithms + Data Structures = Programs”, Prentice-Hall, The images in this presentation were created in Java using the Java Power Tools developed at Northeastern University in Boston. Copyright 2001, Richard Rasala.

Hilbert CurvesSlide 2 Hilbert Curve at Recursion Level 1

Hilbert CurvesSlide 3 Hilbert Curve at Recursion Level 2

Hilbert CurvesSlide 4 Hilbert Curve at Recursion Level 3

Hilbert CurvesSlide 5 Hilbert Curve at Recursion Level 4

Hilbert CurvesSlide 6 Hilbert Curve at Recursion Level 5

Hilbert CurvesSlide 7 Hilbert Curve at Recursion Level 6

Hilbert CurvesSlide 8 Hilbert Curve at Recursion Level 7

Hilbert CurvesSlide 9 Hilbert Curve at Recursion Level 8

Hilbert CurvesSlide 10 Hilbert Curve at Recursion Level 9

Hilbert CurvesSlide 11 Composite View of Hilbert Curves from Levels 1 to 5

Hilbert CurvesSlide 12 Hilbert at Level 1 Showing North, East, South, West Views

Hilbert CurvesSlide 13 Hilbert at Level 2 Showing North, East, South, West Views

Hilbert CurvesSlide 14 Hilbert at Level 3 Showing North, East, South, West Views

Hilbert CurvesSlide 15 Hilbert at Level 4 Showing North, East, South, West Views

Hilbert CurvesSlide 16 Hilbert at Level 1 as a Visitor to a Planar Tiling

Hilbert CurvesSlide 17 Hilbert at Level 2 as a Visitor to a Planar Tiling

Hilbert CurvesSlide 18 Hilbert at Level 3 as a Visitor to a Planar Tiling

Hilbert CurvesSlide 19 Hilbert at Level 4 as a Visitor to a Planar Tiling

Hilbert CurvesSlide 20 Hilbert at Level 5 as a Visitor to a Planar Tiling

Hilbert CurvesSlide 21 Hilbert at Level 6 as a Visitor to a Planar Tiling

Hilbert CurvesSlide 22 The Base 4 Hilbert Numbering: Level 1

Hilbert CurvesSlide 23 The Base 4 Hilbert Numbering: Level 2

Hilbert CurvesSlide 24 The Base 4 Hilbert Numbering: Level 3

Hilbert CurvesSlide 25 The Base 4 Hilbert Numbering: Level 4

Hilbert CurvesSlide 26 The Base 4 Hilbert Numbering from Levels 1 to 2

Hilbert CurvesSlide 27 The Base 4 Hilbert Numbering from Levels 1 to 3

Hilbert CurvesSlide 28 The Base 4 Hilbert Numbering from Levels 1 to 4

Hilbert CurvesSlide 29 Mathematics of the Hilbert Curves The Hilbert Curves were invented by the mathematician David Hilbert about 100 years ago to answer the Space Filling Curves Problem. In its simplest version, the Space Filling Curves Problem asks if there exists a continuous function from the unit interval [0, 1] that maps onto the unit square in the plane. The answer to this question is Yes. The sequence of Hilbert curves give a constructive definition of the function from the unit interval to the unit square. To obtain this function, one must “pass to the limit” as the level N of recursion goes to infinity. Is it possible to understand the limiting function that maps the unit interval onto the unit square in a concrete fashion? Yes -- Use the base 4 numbering scheme!

Hilbert CurvesSlide 30 Explanation of the Base 4 Numbering Scheme For each finite level N of recursion, the Hilbert curve contains 4 N points that lie at the centers of a tiling of the unit square into 4 N squares. Thus, at level 1, there are 4 points; at level 2, there are 16 points; at level 3, there are 64 points; at level 4, there are 256 points; etc. The base 4 numbering scheme numbers the 4 N points at level N using a sequence of N digits in base 4. At level 1, the points are numbered 0, 1, 2, 3. At level 2, the points are numbered 00, 01, 02, 03, 10, 11, 12, 13, 20, 21, 22, 23, 30, 31, 32, 33. At level 3, all 3 digit sequences abc in base 4 are used. At level 4, all 4 digit sequences abcd in base 4 are used. Etc.

Hilbert CurvesSlide 31 Explanation of the Base 4 Numbering Scheme: Level 1 Think of the base 4 numbers as the leading digits in the base 4 expansion of a fraction between 0 and 1. This is similar to the “decimal expansion” except that base 4 is used. Let us call the base 4 expansion the “4-mal expansion”. Consider the Hilbert curve of level 1 (next slide). The 4 points numbered 0, 1, 2, 3 are centered in 4 squares. We can now say the following about the limiting Hilbert mapping: –All points x in [0, 1] whose 4-mal expansion begins with 0 will map to a point in the square labeled with 0. –All points x in [0, 1] whose 4-mal expansion begins with 1 will map to a point in the square labeled with 1. –All points x in [0, 1] whose 4-mal expansion begins with 2 will map to a point in the square labeled with 2. –All points x in [0, 1] whose 4-mal expansion begins with 3 will map to a point in the square labeled with 3.

Hilbert CurvesSlide 32 Explanation of the Base 4 Numbering Scheme: Level 1

Hilbert CurvesSlide 33 Explanation of the Base 4 Numbering Scheme: Level 2 Consider the Hilbert curve of level 2 (next slide). The 16 points numbered 00, 01, 02, 03, 10, 11, 12, 13, 20, 21, 22, 23, 30, 31, 32, 33 are centered in 16 squares. We can now say the following about the limiting Hilbert mapping: –All points x in [0, 1] whose 4-mal expansion begins with a pair of digits ab will map to a point in the square labeled with ab. –Notice that the squares labeled with ab for some b all lie within the larger square labeled by a at level 1.

Hilbert CurvesSlide 34 Explanation of the Base 4 Numbering Scheme: Level 2

Hilbert CurvesSlide 35 Explanation of the Base 4 Numbering Scheme: Level 3 Consider the Hilbert curve of level 3 (next slide). The 64 points numbered by sequences abc are centered in 64 squares. We can now say the following about the limiting Hilbert mapping: –All points x in [0, 1] whose 4-mal expansion begins with a triple of digits abc will map to a point in the square labeled with abc. –Notice that the squares labeled with abc for some c all lie within the larger square labeled by ab at level 2.

Hilbert CurvesSlide 36 Explanation of the Base 4 Numbering Scheme: Level 3

Hilbert CurvesSlide 37 Explanation of the Base 4 Numbering Scheme: Level 4 We can now “pass to the limit” in our minds and develop the following rule for specifying the limiting Hilbert mapping. To determine the image of a point x in the interval [0, 1] under the limiting Hilbert mapping to within an accuracy of 1/2 N in the x and y directions, find the 4-mal expansion of x with N digits: d 1 d 2 …d N. Then, the image of x will lie within the square labeled by d 1 d 2 …d N when the Hilbert curve of level N is drawn. The manner in which increasing the number of 4-mal digits of a number leads to nested squares within the unit square is shown very well by the next slide.

Hilbert CurvesSlide 38 Explanation of the Base 4 Numbering Scheme: Level 4

Hilbert CurvesSlide 39 The Hilbert Mapping on Particular Points Looking at the diagrams that show the nesting of squares and the base 4 numbering, it is possible to deduce the image of various points under the Hilbert mapping …Maps to SW corner of the main square 1/ …Maps to the center of the S edge of the main square 1/ …Maps to the center of the main square 1/ …Maps to the center of the W edge of the main square 1/ …Maps to NW corner of the main square 5/ …Maps to the center of the N edge of the main square 1/ …Maps to the center of the main square 7/ …Maps to the center of the N edge of the main square 2/ …Maps to NE corner of the main square 3/ …Maps to the center of the E edge of the main square 5/ …Maps to the center of the main square 11/ …Maps to the center of the S edge of the main square …Maps to SE corner of the main square

Hilbert CurvesSlide 40 Concluding Remarks The Hilbert mapping maps the unit interval onto the unit square but the mapping is not 1-to-1. As shown in the preceding table, several points in the interval map to the center of the main square. Hilbert curves can be applied to storing 2-dimensional data in databases. Imagine the planar region of the data divided into a number of small square tiles as in the Hilbert images. Then use the base 4 numbering to define a database key for storing the associated data. The nice property of this key system is that, for most subsets of the region, data that is geographically close will also be physically close in the database. Exceptions to this nice situation occur at places such as the center of the main square at which several branches of the Hilbert curve converge.