Tuesday, 4 December 2012

Trouble with Recursion - Snowflake

When talking about repetitive patterns, I had some trouble trying to understand the fact that with three Koch Curves (an example of a fractal) we can form a snowflake. First, to approach the problem, I did some reading on the issue of fractals, that in fact gave me the idea that it is a kind of system that shows self-similarity. Having an idea of what the Koch Curve was, I started making possible connections with the appearance of a snowflake. In this process I took the silhouette of a snowflake, to have an idea of what the end product of my work should be, and I also took a piece of paper and a pen to start drawing the Koch curve. Moreover, I was following a piece of code in DrRacket that the professor gave us about the snowflake. Then, from this piece of code I had in mind that I need just 3 Koch curves to compose my snowflake. So, I started to draw three Koch curves in the first stage of the fractal, that is to say _/\_ , and I got a 'David Star'. From here, I started to do recursion, that is to use the same curve in each of its fragments, until I got what would be the snowflake. In overall, to solve my problem I used "Deep Simplicity" by John Gribbin (which I highly recommend if you are interested in the nature of fractals and life), and I also used the piece of code given by the professor. Also, as I am a read-write learner, I had to follow every step of the fractal in a piece of paper to better absorb the progress of my understanding regarding fractals.

No comments:

Post a Comment