Skip to main content

Section An Application of Compactness: Fractals

Introduced by Felix Hausdorff in the early 20th century as a way to measure the distance between sets, the Hausdorff metric (also called the Pompeiu-Hausdorff metric) has since been widely studied and has many applications. For example, the United States military has used the Hausdorff distance in target recognition procedures. In addition, the Hausdorff metric has been used in image matching and visual recognition by robots, medicine, image analysis, and astronomy.
The basic idea in these applications is that we need a way to compare two shapes. For example, if a manufacturer needs to mill a specific product based on a template, there is usually some tolerance that is allowed. So the manufacturer needs a way to compare the milled parts to the template to determine if the tolerance has been met or exceeded.
The Hausdorff metric is also familiar to fractal aficionados for describing the convergence of sequences of compact sets to their attractors in iterated function systems. The variety of applications of this metric make it one that is worth studying.
To define the Hausdorff metric, we begin with the distance from a point x in a metric space X to a subset A of X as
d(x,A)=inf{d(x,a)∣a∈A}.
Since images will be represented as compact sets, we restrict ourselves to compact subsets of a metric space. In this case the infimum becomes a minimum and we have
d(x,A)=min{d(x,a)∣a∈A}.
We now extend that idea to define the distance from one subset of X to another. Let A and B be nonempty compact subsets of X. To find the distance from the set A to the set B, it seems reasonable to consider how far each point in A is from the set B. Then the distance from A to B should measure how far we have to travel to get from any point in A to B.

Definition 17.16.

Let (X,d) be a metric space and let A and B be nonempty compact subsets of X. Then distance d(A,B) from A to B is
d(A,B)=maxa∈A{minb∈B{d(a,b)}}.
Note: since A and B are compact, d(A,B) is guaranteed to exist.

Activity 17.8.

(a)

A problem with d as in Definition 17.16 is that d is not symmetric. Find examples of compact subsets A and B of Rn with the Euclidean metric such that d(A,B)β‰ d(B,A).

(b)

Even though the function d in Definition 17.16 is not a metric, we can define the Hausdorff distance in terms of d as follows.
Definition 17.17.
Let (X,d) be a metric space and A and B nonempty compact subsets of X. Then Hausdorff distance between A and B is
h(A,B)=max{d(A,B),d(B,A)}.
Let A be the circle in R2 centered at the origin with radius 1, let B be the inscribed square, and let C={(1,0),(βˆ’1,0)} as shown in Figure 17.18.
Figure 17.18. Sets A, B, and C.
Determine h(A,B), h(A,C), and h(B,C), and verify that h(A,C)≀h(A,B)+h(B,C).

(c)

It may be surprising that h as in Definition 17.17 is actually a metric, but it is. The underlying space is the collection of nonempty compact subsets of X which we denote at H(X). Prove the following theorem.

(d)

One fun application of the Hausdorff metric is in fractal geometry. You may be familiar with objects like the Sierpinski triangle or the Koch curve. These objects are limits of sequences of sets in H(R2). We illustrate with the Sierpinski triangle. Start with three points v1, v2, and v3 that form the vertices of an equilateral triangle S0. For i=1,2, or 3, let vi=[aibi]. For i=1,2, or 3, we define Ο‰i:R2β†’R2 by
Ο‰i([xy])=[120012][xy]+[aibi].
Then Ο‰i, when applied to S0, contracts S0 by a factor of 2 and then translates the image of S0 so that the i th  vertex of S0 and the ith vertex of the image of S0 coincide. Such a map is called a contraction mapping with contraction factor equal to 12. Define S1,i to be Ο‰i(S0). Then S1,i is the set of all points half way between any point in S0 and vi, or S1,i is a triangle half the size of the original translated to the i th  vertex of the original. Let S1=⋃i=13S1,i. Both S0 and S1 are shown in Figure 17.20. We can continue this procedure replacing S0 with S1. In other words, for i = 1, 2, and 3, let S2,i=Ο‰i(S1). Then let S2=⋃i=13S2,i. A picture of S2 is shown in Figure 17.20. We can continue this procedure, each time replacing Sjβˆ’1 with Sj. A picture of S8 is shown in Figure 17.20.
Figure 17.20. Si for i equal to 0, 1, 2, and 8.
To continue this process, we need to take a limit. But the Si are sets in H(R2), so the limit is taken with respect to the Hausdorff metric.
(i)
Assume that the length of a side of S0 is 1. Determine h(S0,S1). Then find h(Sk,Sk+1) for an arbitrary positive integer k.
(ii)
The Sierpinski triangle will exist if the sequence (Sn) converges to a set S (which would be the Sierpinski triangle). The question of convergence is not a trivial one.
(A)
Consider the sequence (an), where an=(1+1n)n for n∈Z+. Note that each an is a rational number. Explain why the terms in this sequence get arbitrarily close together, but the sequence does not converge in Q. Explain why the sequence (an) converges in R.
(B)
A sequence (xn) in a metric space (X,d) is a Cauchy sequence if given Ο΅>0 there exists N∈Z+ such that d(xn,xm)<Ο΅ whenever n,mβ‰₯N. Every convergent sequence is a Cauchy sequence. A metric space X is said to be complete if every Cauchy sequence in X converges to an element in X. For example, (R,dE) is complete while (Q,dE) is not. Although we will not prove it, the metric space (H(R2),h) is complete. Show that the sequence (Sn) is a Cauchy sequence in H(R2). The limit of this sequence is the famous Sierpinski triangle. The picture of S8 in Figure 17.20 is a close approximation of the Sierpinski triangle.