iteration algorithm
play

ITERATION ALGORITHM TO CREATE FRACTALS UNIVERSITY OF MARYLAND - PowerPoint PPT Presentation

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


  1. USING THE RANDOM ITERATION ALGORITHM TO CREATE FRACTALS UNIVERSITY OF MARYLAND DIRECTED READING PROGRAM FALL 2015 BY ADAM ANDERSON

  2. 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?

  3. 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

  4. 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( Ξ΅ ) ∝ Ξ΅

  5. 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

  6. 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 + 𝜁

  7. 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 + 𝜁

  8. The Sierpinski Gasket is β‰ˆ 1.585 dimensional A set with non-integer capacity dimension is called a fractal.

  9. 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)

  10. 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.

  11. 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

  12. LET’S DRAW SOME FRACTALS!

  13. 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

  14. 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

  15. 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 𝑦, 𝑧 = 𝑦 βˆ’ 𝑧

  16. 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

  17. 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 𝑦, 𝑧

  18. 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

  19. 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

  20. 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 𝑀, 𝐢

  21. 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 𝐡, 𝐢

  22. HAUSDORFF METRIC The Hausdorff metric on K is defined as: D 𝐡, 𝐢 =maximum of d 𝐡, 𝐢 and d 𝐢, 𝐡 B d 𝐢, 𝐡 d 𝐡, 𝐢 𝑐 d 𝐢, 𝐡 A D 𝐡, 𝐢 = d 𝐢, 𝐡 𝑏 d 𝐡, 𝐢

  23. 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

  24. 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

  25. 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

  26. 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%

  27. 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

  28. THANKS Mentor – Kasun Fernando Author and Book Provider – Denny Gulick Some IFS Formulas from Agnes Scott College Graphs Created with Desmos Graphing Calculator

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend