Representation of Fractal Curves by Means of L Systems
by Manuel Alfonseca (Manuel.Alfonseca@ii.uam.es) and Alfonso Ortega
Abstract
Fractals can be represented by means of L-systems (Development Grammars), together with a graphic interpretation. Two families of graphic interpretations have been used: turtle graphics and vector graphics. This paper describes an APL2/PC system able to draw fractals represented by L-systems, with both graphic interpretations. A theorem has been proved on the equivalence conditions for both interpretations. Another point shown is the fact that supposed deficiencies in L-systems that have prompted proposals of extensions are really deficiencies in the graphic translation scheme.
Fractals
In 1890, the italian mathematician Giuseppe Peano described a certain curve, now known by his name, which displayed several monstruous properties, suchs as filling a surface (in the sense of passing through every point in it), and having a tangent at no point. Another monstruous line (the snowflake curve) was described in 1904 by Helge von Koch.
In 1919, H. Hausdorff introduced a new concept of dimension, different from the ordinary geometric dimension. According to his definition, later refined by Besicovitch, ordinary lines have a dimension of 1 and ordinary surfaces a dimension of 2, but the monstruous curves have a fractional dimension greater than 1. In fact, the Peano curve has a Hausdorff-Besicovich dimension of 2, while its value for the Koch snowflake is 1,2618595071429...
In 1975, Benoit B. Mandelbrot [Man 82] defined a fractal as an object whose Hausdorff-Besicovitch dimension is greater than its geometric dimension. Fractals have special properties, such as self-similarity (containing copies of themselves) and underivability at every point. They are appropriate for the description of natural shapes.
There are three main kinds of fractals:
- Those obtained as the limit between the domains of convergence and divergence of a family of recursive mathematical equations, such as the Mandelbrot set.
- Those obtained by means of a transformation (the generator) applied recursively to an initial shape (the iniciator). This group includes the Peano and the Koch snowflake curves. Depending on the definition of the generator, it is possible to obtain deterministic, random or caotic fractals.
- Those obtained through the emulation of a Brownian movement. In this paper, we are mainly interested in the second family of fractals.
L systems
In 1968, Aristid Lindenmayer [Lin 68] defined a new type of grammar (the parallel derivation grammar), which differs from the normal Chomsky grammars (sequential derivation grammars) because the grammar rules are applied simultaneously, rather than one at a time.
Parallel derivation grammars, also called L systems, can be classified in different ways:
- Context sensitive (IL systems) versus context free (0L systems).
- Deterministic (DL systems) versus non-deterministic.
- Propagative (PL systems) versus non-propagative.
- EL systems, with extensions.
- TL systems, with tables, where the set of production rules includes two or more complete subsets of 0L rules, that will be applied alternatively in each successive derivation.
These types may be combined: A D0L system is a deterministic context free system; a PD0L system is propagative, deterministic and context free; an EIL system is context sensitive with extensions; and so forth. A D0L system, for instance, is the three-fold (, P, w), where is an alphabet (a finite non-empty set of symbols); P is a set of production rules of the form A::=x, where A is a symbol in the alphabet and x