31
Introduction to Natural Computation Lecture 20 Fractals Alberto Moraglio Fractals

Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Introduction to Natural Computation

Lecture 20

Fractals

Alberto Moraglio

Fractals

Page 2: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Overview of Lecture

• What are Fractals?

• Fractals in Nature

• Classic Fractals

• How Long is the Coast of Britain?• How Long is the Coast of Britain?

• Mandelbrot Set

• Generation of Fractals

• Applications

Page 3: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

What are Fractals ?

“Clouds are not spheres, mountains are not cones, coastlines are not circles and bark is not smooth, nor does lightning travel in a straight line.”

Benoit Mandelbrot

Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided into parts, each of which is exactly, or statistically a reduced-size copy of the whole.

Benoit Mandelbrot

Page 4: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Fractal Properties

• Self-similarity

• Fractal dimension

• Iterative formation

Page 5: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Fractals in Nature

Electrical Discharge from

Tesla Coil

Page 6: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Fractals in Nature

Fern grown by natureFerns grown in a computer

Page 7: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Fractals in Nature

Romanesco

(a cross between broccoli and

Cauliflower)

Page 8: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Fractals in Nature

Blood vessels in lungBlood vessels in lung

Page 9: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Classic Fractal - The Koch curve

• One of simplest

fractals

• Start with line• Start with line

• Replace centre 1/3

with 2 sides of ƥ Repeat

Animation: http://classes.yale.edu/fractals/IntroToFrac/InitGen/KochGen.html

Page 10: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Classic Fractal - The Koch Snowflake

• Start with equilateral triangle

• Apply Koch curve to each edgeeach edge

• Perimeter increases by 4/3 at each iteration � ∞

• Area bounded by circle

Page 11: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Classic Fractal - Sierpinski gasket

Animation: http://classes.yale.edu/fractals/IntroToFrac/SelfSim/Gasket.html

Page 12: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Classic Fractals

Page 13: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

How Long is the Coast of Britain?

• coastline paradox: the measured length of a stretch of coastline depends on the scale of

measurement

• the measured length increases without limit as the measurement scale decreases

towards zero

Unit = 200 km, length =

2400 km (approx.)

Unit = 50 km, length =

3400 km (approx.)

Page 14: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Dimensions of Objects

• Consider objects in 1,2,3 dimensions

• Reduce length of ruler by factor 1/r

• D is dimension• D is dimension

• N is number of self-similar objects to cover the original object

• Quantity increases by N = rD

• Take logs:( )( )r

ND

log

log=

Page 15: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

• using a ruler of length L (green) - total length = 3L

Fractal Dimension of Koch SnowflakeWhen reducing the length

of the ruler by a factor 1/3

(r=3), the number of self-

similar objects (rulers) to

cover the original object is

4 (N=4)

• using a ruler of length L (green) - total length = 3L

• using a ruler of length 3

L (red) - total length = 4L

• using a ruler of length 9

L (blue) - total length =

3

L16

To find the fractal dimension, either plot a graph of log(total length) against log(ruler length) - the gradient is (1-D)

Or ( ) ( ) 26134rND .)log()log(loglog ===

Page 16: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Coastlines and Fractal Dimensions

• Relationship between length of national

boundary and scale size

• Linear on log-log plot

Page 17: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

The Mandelbrot set:

the most famous of all fractals?

Page 18: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

The Mandelbrot Set

• Explored in 1980s by B. Mandelbrot

• Definition: a point in the plane c (a complex number) is part of the Mandelbrot set (in black) if, when starting with z0 = 0 and applying the iteration z � z 2+c repeatedly, the absolute

0

iteration zn+1 � zn2+c repeatedly, the absolute

value of zn remains small however large n gets.

• In other words, stability of iterated function at c:

– zn+1 � zn2+c

– z0 = 0

– Stable if |z|<2

Page 19: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Self Similarity of Mandelbrot set

• Increasing magnification shows embedded ‘copies’ of main set

• Similar but not identical

• Infinitely complex image produced by an extremely simple formula

Page 20: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

The Mandelbrot Monk

• Udo of Achen

• 1200-1270AD

• Nativity scene• Nativity scene

• Discovered by Bob

Schpike 1999

Page 21: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Generation of Fractals

• Initiators and Generators is the simplest

method for producing fractals.

• It is the oldest, dating back 5000 years to

south India.south India.

• Other popular methods:

– Iterated Function Systems

– L-Systems

Page 22: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Initiators & Generators

• One way to guarantee self-similarity is to build a shape by applying the same process over smaller and smaller scales. This idea can be realized with a process called initiators and generators.

• The initiator is the starting shape. • The initiator is the starting shape.

• The generator is a collection of scaled copies of the initiator.

• The rule is this: in the generator, replace each copy of the initiator with a scaled copy of the generator (specifying orientations where necessary).

Page 23: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Initiators & Generators - Examples

Sierpinski gasket Spinning gaskets

Koch curve Fractal trees

Page 24: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Iterated Function Systems

A fractal is generated by the union of rescaled copies of itself, where

the rescaling may be by different amount in different directions.

Transformations: rescaling, translation, reflection, rotation

Page 25: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Iterated Function Systems

Page 26: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Fractal Applications

• Categorization of phenomena using fractal dimension (e.g., coast lines, stock market).

• Simulation of coast lines, stream patterns, surfaces and terrain, etc.

Image compression.• Image compression.

• Art.

• Many more: http://classes.yale.edu/fractals/Panorama/welcome.html

Page 27: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Fractal Simulations

Page 28: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Fractals in Technology

• Fractal

antennae for

radio comms

• Many length

scales �

broadband

Page 29: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Fractals in Art

Visage of War

Salvador Dali (1940)

Page 30: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

Fractals in Art

The great wave

Katsushika Hokusai (1930)

Page 31: Fractals - University of Birmingham · 2012-12-05 · Fractals are geometric shapes that model structures in nature. They are rough or fragmented geometric shapes that can be subdivided

References

• Flake, Gary W. (1998). The Computational Beauty of Nature: Computer

Explorations of Fractals, Chaos, Complex Systems, and Adaptation.

Cambridge, The MIT Press.

• Mandelbrot, Benoit B. (1983). The Fractal Geometry of Nature.

New York, W. H. Freeman and Company.

• Fractal Geometry @ Yale University: http://classes.yale.edu/fractals/