A couple of weeks ago I came across a creation of the Polish mathematician Warclaw Sierpinski and was amazed by its simplicity and beauty. The Sierpinski Triangle is a self-similar fractal figure created by following a very simple algorithm. In fact, the algorithm is so simple that you can draw it on a sheet of paper while reading this post:
- First draw an equilateral triangle the size of the palm of your hand
- Choose a random point inside the triangle and mark that point with a pen or pencil.
- Randomly choose a corner of the triangle.
- Mark a new point halfway from the last point you drew and the previously chosen corner.
- Randomly choose a new corner (it may be the same one you chose before).
- Repeat steps 4 and 5 indefinitely (do this a couple of times).
Note: You
probably won´t notice anything extraordinary by doing 10 or even 50 iterations.
I would recommend you draw a couple of points
in order to understand the algorithm but leave the ‘indefinitely’ part to a
machine. At Continente Siete we modelled this simple algorithm and will leave it for you to discover what emerges from the seemingly trivial steps you have
followed.
You can run the model by following these three
steps:
- After starting the model, click inside the displayed triangle to select an initial point
- Repeatedly click on the ‘Add point(s)’ button located on the upper right of the window (select the ‘Auto Add Point(s)’ checkbox to do this automatically).
- Observe the emerging pattern (note: speed up the process by adding several points at a time with the ‘Add points’ slider located on the upper right of the window).
We welcome
you to discover and experiment with the other features included in the model.
Maybe the
next time you eat broccoli you´ll take a closer look and appreciate the
mathematics behind nature.
No hay comentarios:
Publicar un comentario