• Non ci sono risultati.

Fractals Fractals

N/A
N/A
Protected

Academic year: 2021

Condividi "Fractals Fractals"

Copied!
26
0
0

Testo completo

(1)

Fractals Fractals

Moreno Marzolla

Dip. di Informatica—Scienza e Ingegneria (DISI) Università di Bologna

http://www.moreno.marzolla.name/

(2)

Complex Systems 2

(3)

Geometric Objects

Man-made objects are geometrically simple (e.g., rectangles, circles, triangles...).

Those simple objects seem appropriate for describing many artifacts (e.g., this screen is roughly rectangular, tires are circular, power lines are long lines, etc.

What about natural objects? (snowflake, tree, mountain, clouds...)

These objects have been considered exceptions to the rule

(4)

Complex Systems 4

Fractals

The term fractal was coined by the mathematician Benoit B. Mandelbrot to differentiate geometric figures with other figures that can not be easily classified in conventional

terms

Benoît B. Mandelbrot (1924 – 2010)

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.

—Mandelbrot, in his introduction to The Fractal Geometry of Nature

(5)

Fractals

Benoit B. Mandelbrot, The Fractal Geometry of Nature, W. H. Freeman and Company, ISBN 978-0716711865

Benoit B. Mandelbrot, Gli Oggetti Frattali, Einaudi, 2000,

ISBN 9788806155667

(6)

Complex Systems 6

(7)

Fractals

Self-similarity

Fractals are self-similar at several scales, meaning that a small portion of a fractal looks similar to the whole object

Fractional dimension

Fractals have fractional dimension: a fractal object with

dimension 1.5 is somewhat more than a line (dimension 1) and less than a plane (dimension 2)

(8)

Complex Systems 8

(9)

The Cantor Set

Start with the interval [0,1]

Remove the middle third: [0,1/3] U [2/3,1]

Remove the middle third for each interval:

[0, 1/9] U [2/9, 1/3] U [2/3, 7/9] U [8/9, 1]

Iterate the procedure forever

(10)

Complex Systems 10

Measure of the Cantor set

We want to measure the “width” of the Cantor set

At step n (starting from n = 0) the Cantor set contains 2n intervals of width 1/3n each; total width is (2/3)n

For n → +∞ the total width becomes 0

(11)

Points in the Cantor set

Which points belong to the Cantor set?

We use base 3 notation, e.g., (0.102)3 = 1/3 + 0/32 + 2/33

Since we always remove the middle third of each interval, the points belonging to the Cantor set are those admitting at least one representation in base 3 with no digit “1”

E.g., 0.0202 belongs to the Cantor set, but 0.0221 does not

Note that 0.0222.. does belong to the Cantor set, even if 0.0222... = 0.1

The Cantor set has uncountably many points

(12)

Complex Systems 12

Cantor set: summary

The Cantor set has zero measure

The Cantor set contains uncountable many points

(13)

The Koch curve

Construction

Start with a line of unitary length

Remove the middle third, and replace id with two segments of length 1/3

Iterate

At stage n the curve has 4n segments of length

1/3n

Total length: (4/3)n

(14)

Complex Systems 14

The Koch curve

The Koch curve does not admit a tangent at any point

the curve is made entirely of corners

The Koch curve has infinite length

Extension: Koch snowflake

Finite area, infinite perimeter

(15)

The Peano curve

Single step of the Peano curve

(16)

Complex Systems 16

Recap

Cantor set

Point-like (zero measure)

Koch curve

Line-like (infinite length)

Peano curve

Space-filling curve

(17)

Other similar figures

Sierpinski Carpet (zero area)

Monger Sponge

(18)

Complex Systems 18

Drawing the Sierpinski carpet

/* Returns 1 iff pixel at coordinates (x,y) belongs to the interior of the sierpinski carpet, and therefore the

corresponding pixel must be filled */

int sierpinski(int x, int y) {

while ( x>0 || y>0 ) {

if ( x%3==1 && y%3==1 ) /* at center of square */

return 0;

x /= 3;

y /= 3;

}

/* If all square levels are checked and the pixel is not in the center of any, it must be filled */

return 1;

}

Adapted from http://en.wikipedia.org/wiki/Sierpinski_carpet

(19)

Fractal dimension

Suppose that we have a stick of length a, and use it to measure an object. If the object is N units of length a each, its measure is N  a

If we reduce the length a of the stick, N grows

Line

a N

1 1

1 / 2 2 1 / 3 3 1 / 4 4

Square

a N

1 1

1 / 2 4 1 / 3 9 1 / 4 16

Cube

a N

1 1

1 / 2 8 1 / 3 27 1 / 4 64

N = ( 1 a )

D

D= log N 1

(20)

Complex Systems 20

Fractal dimension of the Cantor set

N=1 sticks of length a=1

N=2 sticks of length a=1 / 3

N=4 sticks of length a=1 / 9

Cantor set

stage a N

0 1 1

1 1 / 3 2

2 1 / 9 4

n 1 / 3n 2n

D= log N log 1 a

= log 2

n

log 3

n

= log 2

log 3 ≈ 0.63

(21)

Fractal dimension of the Koch curve

N=1 sticks of length a=1

N=4 sticks of length a=1 / 3

N=16 sticks of length a=1 / 9

Koch curve

stage a N

0 1 1

1 1 / 3 4

2 1 / 9 16

n 1 / 3n 4n

D= log N log 1 a

= log 4

n

log 3

n

= log 4

log 3 ≈ 1.26

(22)

Complex Systems 22

Fractal dimension of the Peano curve

N=1 sticks of length a=1

N=9 sticks of length a=1 / 3

N=81 sticks of length a=1 / 9

Peano curve

stage a N

0 1 1

1 1 / 3 9

2 1 / 9 81

n 1 / 3n 9n

D= log N log 1 a

= log 9

n

log 3

n

= log 9

log 3 = 2

The Peano curve is a “line- like” object with the same

dimension of a surface!

(23)

Self-similarity: stock market

GOOG: 1 day GOOG: 1 month

GOOG: 6 months GOOG: 1 year

(24)

Complex Systems 24

Recursive generator of stock prices

Benoit B. Mandelbrot, A Multifractal Walk Down Wall Street, Scientific, American, Feb 6, 1999

(25)

Example: mountains

(26)

Complex Systems 26

Examples: diffusion limited aggregation

NetLogo: Sample Models → Chemistry and Physics → Diffusion Limited Aggregation → DLA Simple

Riferimenti

Documenti correlati

When subjects, all of whom used the right hand, reached out to take hold of the cylinder to place its right end against a target, they were less and less likely to grab hold of

We show that the property of a planar parametric curve of being simple, is preserved by an approximation when the curve is piecewise smooth and generalized regular, provided that

Experimental tests show that the eigenvalues of P are all grouped in a circle with center in the origin and radius about 0.3 except one which is near 1.. Moreover, they show that

Unit 11: aggettivi possessivi Unit 12: genitivo sassone Unit 13:pronomi possessivi Unit 14: pronomi complemento Unit 15: i numeri, le date e l’ora Unit 16: preposizioni di tempo

Three-valued logics are apparently simple; they are straightforward general- izations of Boolean logic based on the most simple bipolar scale {0, 1 2 , 1} where 1 (resp. Further,

A cura di Anna Carmelitano docente specializzata al sostegno didattico: annacarmelitano@libero.it

stretch it temporally too. In fact, due to the mentioned nomological speed limits, every phenomenon extended in space is also ex- tended in time. 44 Thus,

More generally, I expect time and space fractals to develop from discontinuous initial states in quantum systems that are not billiards—for example smooth potentials—and, more