|
As a total aside, I have found that methodically drawing the Sierpinski triangle during boring lectures greatly relieves stress. If more boring lectures are anticipated, draw a huge one, like one that spans an entire sheet of regular paper drawn to painstaking detail. After a few lectures your boredom will be greatly relieved, your stress will go down, chicks (or hunks, as the case may be) will dig you, and you'll end up with a really, really impressively detailed (and large) Sierpinski Triangle which people will be really impressed with.
That's it! Sierpinski's Triangle. To get any sort of worthwhile picture, of course, hundreds to thousands of points need to be plotted. In fact, usually the first twenty or so points are off track and need not be plotted. However, the algorithm outlined above is amazingly simple to do, and incredibly easy to implement on any machine. I have written Sierpinski programs for every graphing calculator under the sun, as well as for most desktop computers as well. Try it yourself in BASIC or on a graphing calculator. You'll surprise yourself at how easy it is to impress people with a graphing calculator. :)
- Begin by selecting three vertices in the two-dimensional plane. Note their coordinates.
- Next, select an initial point--best if within the bounds of the triangle formed by the three vertices, but this is not a requirement.
The main procedure goes as follows.
- Select one of the three vertices at random. Roll a six sided die and integer-divide by two, flip three coins and take the exception, or ask a friendly computer for help.
- From the current location of the point, calculate the midpoint of the line connecting the point and the vertex just selected.
- Move to this midpoint, and plot the point.
Iterate ad infinitum.
![[Pascal]](http://victorian.fortunecity.com/orwell/433/pascal.gif)
How Long is the Coast?
A long, long time ago, fractal god Benoit Mandelbrot posed a whimsical question: How long is the coastline of Britain? His mathematical colleagues were miffed, to say the least, at such annoying waste of their amazing computation powers on this insignificant minutae. They told him to look it up.
Of course, Mandelbrot had a reason for his peculiar question. Quite an interesting reason. Look up the coastline of Britain yourself, in some encyclopedia. Whatever figure you get, it is wrong. Quite simply, the coastline of Britain is infinite.
You protest that this is impossible. Well, consider this. Consider looking at Britain on a very large-scale map. Draw the simplest two-dimensional shape possible, a triangle, which circumscribes Britain as closely as possible. The perimeter of this shape approximates the perimeter of Britain.
However, this area is of course highly inaccurate. Increasing the amount of vertices of the shape going around the coastline, and the area will become closer. The more vertices there are, the closer the circumscribing line will be able to conform to the dips and the protrusions of Britain's rugged coast.
There is one problem, however. Each time the number of vertices increases, the perimeter increases. It must increase, because of the triangle inequality. Moreover, the number of vertices never reaches a maximum. There is no point at which one can say that a shape defines the coastline of Britain. After all, exactly circumscribing the coast of Britain would entail encircling every rock, every tide pool, every pebble which happens to lie on the edge of Britain.
Thus, the coastline of Britain is infinite.