USING THE RANDOM ITERATION ALGORITHM TO CREATE FRACTALS UNIVERSITY OF MARYLAND DIRECTED READING PROGRAM FALL 2015 BY ADAM ANDERSON
THE SIERPINSKI GASKET 2 Stage 1: Stage 0: Stage 2: Stage n: 2 π 2 2 1 3 1 2 A 0 = 2 3 3 2 A n = A 1 = 1 β A 2 = 4 β 2 4 2 2 2 4 1 3 3 9 π = 1 β 3 = 4 β 16 = = 0 lim A 0 =1 4 16 4 πββ 3 2 A 1 = 3 A 2 = 4 4 Sierpinski Gasket has zero area?
CAPACITY DIMENSION AND FRACTALS Let S β β π where n = 1, 2, or 3 z n-dimensional box β’ n = 1: Closed interval y β’ n = 2: Square x β’ n = 3: Cube Let N( Ξ΅ ) = smallest number of n-dimensional boxes of side length Ξ΅ necessary to cover S
CAPACITY DIMENSION AND FRACTALS Ξ΅ n = 1 Boxes of length Ξ΅ to cover line of length L: Length = L If L = 10cm and Ξ΅ = 1cm, it takes 10 boxes to cover L If Ξ΅ = 0.5cm, it takes 20 boxes to cover L β¦ 1 N( Ξ΅ ) β Ξ΅
CAPACITY DIMENSION AND FRACTALS Ξ΅ n = 2 Boxes of length Ξ΅ to cover square S of side length L If L = 20cm, area of S = 400 cm 2 Ξ΅ = 2cm: each box has area 4 cm 2 β’ It will take 100 boxes to cover S Ξ΅ = 1cm: each box has area 1cm 2 β’ It will take 400 boxes to cover S 1 N( Ξ΅ ) β Ξ΅ 2
CAPACITY DIMENSION AND FRACTALS πΈ 1 N( Ξ΅ ) = π· π 1 ln ( N(Ξ΅)) = D ln π + ln(π·) ln π π βln π· D = C just depends on scaling of S ln 1 π ln π π Capacity Dimension: dim c S = lim ln 1 πβ0 + π
CAPACITY DIMENSION AND FRACTALS 1 1 Ξ΅ = 2 Stage n: Stage 1: Stage 2: 1 1 1 If Ξ΅ = 2 π , N π = 3 π If Ξ΅ = 2 , N π = 3 If Ξ΅ = 4 , N π = 9 1 π = 2 π ln 3 π ln π π π ln 3 ln 3 lim = lim ln 2 π = π ln 2 = ln 2 β 1.5849625 ln 1 πβ0 + πβ0 + π
The Sierpinski Gasket is β 1.585 dimensional A set with non-integer capacity dimension is called a fractal.
ITERATED FUNCTION SYSTEMS An Iterated Function System (IFS) F is the union of the contractions T 1 , T 2 β¦ T n THEOREM: Let F be an iterated function system of contractions in β 2 . Then there exists a unique compact subset π΅ F in β 2 such that for any compact set B, the sequence of iterates πΊ π πΆ β converges in π=1 the Hausdorff metric to π΅ F π΅ F is called the attractor of F . This means that if we iterate any compact set in β 2 under F , we will obtain a unique attractor (attractor depends on the contractions in F)
ITERATED FUNCTION SYSTEMS A function T : β 2 β β 2 is affine if it is in the form f π¦ π¦ f = aπ¦ + bπ§ + e π§ + e π§ = a b cπ¦ + dπ§ + f c d (linear function followed by translation) We will deal with iterated function systems of affine contractions.
RANDOM ITERATION ALGORITHM Drawing an attractor of IFS F : 1. Choose an arbitrary initial point π€ β β 2 2. Randomly select one of the contractions T n in F 3. Plot the point T n ( π€) 4. Let T n ( π€) be the new π€ 5. Repeat steps 2-4 to obtain a representation of π΅ F 20,000 Iterations 1000 Iterations 5000 Iterations
LETβS DRAW SOME FRACTALS!
ITERATIONS AND FIXED POINTS π π¦ = π¦ 2 + 1 Iterating = repeating the same procedure Let π(π¦) be a function. = π 2 π¦ is the second iterate of x under π. π π π¦ π π(π( π¦ ) = π 3 π¦ is the third iterate of x under π Example: π π¦ = π¦ 2 + 1 π 2 π¦ = (π¦ 2 +1) 2 + 1 π 5 = 26 = π 2 5 = π 26 = 677 π π 5
ITERATIONS AND FIXED POINTS A point p is a fixed point for a function f if its iterate is itself π π = π π π¦ = π¦ 2 Example: π π¦ = π¦ 2 π 0 = 0 = π 2 0 = π 0 = 0 π π 0 Therefore 0 is a fixed point of f
METRIC SPACES Let S be a set. A metric is a distance function d π¦, π§ that satisfies 4 axioms β π¦, π§ β S 1. d π¦, π§ β₯ 0 2. d π¦, π§ = 0 if and only if π¦ = π§ 3. d π¦, π§ = d π§, π¦ 4. d π¦, π¨ β€ d π¦, π§ + d π§, π¨ x y Example: Absolute Value β d π¦, π§ = π¦ β π§ β, d is a metric space d π¦, π§ = π¦ β π§
METRIC SPACES Let S, d be a metric space. A sequence π¦ π π=1 β in S converges to x β S if lim πββ d π¦ π , π¦ = 0 This means that terms of the sequence approach a value s A sequence is Cauchy if for all π > 0 there exists a positive integer N such that whenever n, m β₯ N , d π¦ π , π¦ π < π This means that terms of the sequence get closer together S, d is a complete metric space if every Cauchy sequence in S converges to a member of S
CONTRACTION MAPPING THEOREM Let S, d be a metric space. A function T: S β S is a contraction if β π β 0,1 such that d T(π¦), T(π§) β€ q β d(π¦, π§) T d T(π¦), T(π§) = q β d(π¦, π§) d π¦, π§
CONTRACTION MAPPING THEOREM Contraction Mapping Theorem: If S, d is a complete metric space, and T is a contraction, then as n β β, T π π¦ β unique fixed point π¦ β β π¦ β S T T
HAUSDORFF METRIC A set S is closed if whenever x is the limit of a sequence of members of T, x actually is in T. A set S is bounded if it there exists x β S and r > 0 such that β π‘ β S , d x, π‘ < r Means S is contained by a βballβ of finite radius A set S β β π is compact if it is closed and bounded Let K denote all compact subsets of β 2
HAUSDORFF METRIC If B is a nonempty member of K , and π€ is any point in β 2 , the distance from π€ to B is π€, πΆ = minimum value of d π€ β π β π β πΆ (distance from point to a compact set) B π€ d π€, πΆ
HAUSDORFF METRIC If A and B are members of K , then the distance from A to B is d π΅, πΆ = maximum value of d π, πΆ for π β π΅ (distance between compact sets) Means we take the point in A that is most distant from any point in B and find the minimum distance between it an any point in B B A π d π΅, πΆ
HAUSDORFF METRIC The Hausdorff metric on K is defined as: D π΅, πΆ =maximum of d π΅, πΆ and d πΆ, π΅ B d πΆ, π΅ d π΅, πΆ π d πΆ, π΅ A D π΅, πΆ = d πΆ, π΅ π d π΅, πΆ
Iterated Function System: 1 2 1 2 β π¦ π¦ π π§ = 1 π§ 1 2 1 2 1 2 1 2 β β π¦ π¦ π§ + 1 π π§ = 2 1 2 1 2 0 β Render Details: Point size: 1px # of iterations: 100,000
Iterated Function System: 1 2 0 π¦ π¦ π π§ = 1 π§ 1 2 0 1 2 0 1 2 π¦ π¦ π π§ = π§ + 2 1 2 0 0 π¦ π¦ 0 β1/2 1 π π§ = π§ + 3 1/2 0 1/2 Render Details: Point size: 1px # of iterations: 100,000
Iterated Function System: 1 3 0 π¦ π¦ π§ + 2/3 π π§ = 1 1 3 2/3 0 1 3 0 π¦ π¦ 2/3 π π§ = π§ + 2 1 3 β2/3 0 1 3 0 π¦ π¦ π§ + β2/3 π π§ = 3 1 3 2/3 0 1 3 0 π¦ π¦ π§ + β2/3 π π§ = 4 1 3 β2/3 0 13 40 13 40 π¦ π¦ π π§ = 5 π§ β13 40 13 40 Render Details: Point size: 1px # of iterations: 100,000
Iterated Function System: π¦ π¦ π§ = 0 0 π 1 π§ 0 .16 π¦ π¦ .85 .04 0 π π§ = π§ + 2 1.6 β.04 .85 π¦ π¦ .2 β.26 0 π π§ = π§ + 3 .23 .22 1.6 π¦ π¦ π§ = β.15 .28 0 π π§ + 4 .26 .24 .44 Probabilities: f 1 : 1% f 2 : 85% f 3 : 7% f 4 : 7%
Iterated Function System: β 3 1 2 π¦ π¦ 6 π π§ = 1 π§ 3 1 2 6 1 3 0 π¦ π¦ π§ + 1/ 3 π π§ = 2 1 3 1/3 0 1 3 0 π¦ π¦ π§ + 1/ 3 π π§ = 3 1 3 β1/3 0 1 3 0 π¦ π¦ π§ + β1/ 3 π π§ = 4 1 3 1/3 0 1 3 0 π¦ π¦ π§ + β1/ 3 π π§ = 5 1 3 β1/3 0 1 3 0 π¦ π¦ 0 π π§ = π§ + 6 1 3 2/3 0 1 3 0 π¦ π¦ 0 π π§ = π§ + 7 β2/3 1 3 0
THANKS Mentor β Kasun Fernando Author and Book Provider β Denny Gulick Some IFS Formulas from Agnes Scott College Graphs Created with Desmos Graphing Calculator
Recommend
More recommend