
An L-system or Lindenmayer system is a
parallel rewriting system
In mathematics, computer science, and logic, rewriting covers a wide range of methods of replacing subterms of a formula with other terms. Such methods may be achieved by rewriting systems (also known as rewrite systems, rewrite engines, or reduc ...
and a type of
formal grammar
A formal grammar is a set of Terminal and nonterminal symbols, symbols and the Production (computer science), production rules for rewriting some of them into every possible string of a formal language over an Alphabet (formal languages), alphabe ...
. An L-system consists of an
alphabet
An alphabet is a standard set of letter (alphabet), letters written to represent particular sounds in a spoken language. Specifically, letters largely correspond to phonemes as the smallest sound segments that can distinguish one word from a ...
of symbols that can be used to make
string
String or strings may refer to:
*String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects
Arts, entertainment, and media Films
* ''Strings'' (1991 film), a Canadian anim ...
s, a collection of
production rules that expand each symbol into some larger string of symbols, an initial "
axiom
An axiom, postulate, or assumption is a statement that is taken to be true, to serve as a premise or starting point for further reasoning and arguments. The word comes from the Ancient Greek word (), meaning 'that which is thought worthy or ...
" string from which to begin construction, and a mechanism for translating the generated strings into geometric structures. L-systems were introduced and developed in 1968 by
Aristid Lindenmayer
Aristid Lindenmayer (17 November 1925 – 30 October 1989) was a Hungarian biologist. In 1968 he developed a type of formal language today called L-systems or Lindenmayer systems. Using those systems Lindenmayer modelled the behaviour of cells ...
, a Hungarian theoretical
biologist
A biologist is a scientist who conducts research in biology. Biologists are interested in studying life on Earth, whether it is an individual Cell (biology), cell, a multicellular organism, or a Community (ecology), community of Biological inter ...
and
botanist
Botany, also called plant science, is the branch of natural science and biology studying plants, especially Plant anatomy, their anatomy, Plant taxonomy, taxonomy, and Plant ecology, ecology. A botanist or plant scientist is a scientist who s ...
at the
University of Utrecht
Utrecht University (UU; , formerly ''Rijksuniversiteit Utrecht'') is a public research university in Utrecht, Netherlands. Established , it is one of the oldest universities in the Netherlands. In 2023, it had an enrollment of 39,769 students, a ...
. Lindenmayer used L-systems to describe the behaviour of plant cells and to model the growth processes of
plant development. L-systems have also been used to model the morphology of a variety of organisms and can be used to generate self-similar
fractal
In mathematics, a fractal is a Shape, geometric shape containing detailed structure at arbitrarily small scales, usually having a fractal dimension strictly exceeding the topological dimension. Many fractals appear similar at various scale ...
s.
Origins

As a biologist, Lindenmayer worked with
yeast
Yeasts are eukaryotic, single-celled microorganisms classified as members of the fungus kingdom (biology), kingdom. The first yeast originated hundreds of millions of years ago, and at least 1,500 species are currently recognized. They are est ...
and filamentous
fungi
A fungus (: fungi , , , or ; or funguses) is any member of the group of eukaryotic organisms that includes microorganisms such as yeasts and mold (fungus), molds, as well as the more familiar mushrooms. These organisms are classified as one ...
and studied the growth patterns of various types of
bacteria
Bacteria (; : bacterium) are ubiquitous, mostly free-living organisms often consisting of one Cell (biology), biological cell. They constitute a large domain (biology), domain of Prokaryote, prokaryotic microorganisms. Typically a few micr ...
, such as the cyanobacteria ''
Anabaena catenula''. Originally, the L-systems were devised to provide a formal description of the development of such simple multicellular organisms, and to illustrate the neighbourhood relationships between plant cells. Later on, this system was extended to describe higher plants and complex branching structures.
L-system structure
The
recursive
Recursion occurs when the definition of a concept or process depends on a simpler or previous version of itself. Recursion is used in a variety of disciplines ranging from linguistics to logic. The most common application of recursion is in m ...
nature of the L-system rules leads to
self-similarity
In mathematics, a self-similar object is exactly or approximately similar to a part of itself (i.e., the whole has the same shape as one or more of the parts). Many objects in the real world, such as coastlines, are statistically self-similar ...
and thereby,
fractal
In mathematics, a fractal is a Shape, geometric shape containing detailed structure at arbitrarily small scales, usually having a fractal dimension strictly exceeding the topological dimension. Many fractals appear similar at various scale ...
-like forms are easy to describe with an L-system. Plant models and natural-looking organic forms are easy to define, as by increasing the recursion level the form slowly 'grows' and becomes more complex. Lindenmayer systems are also popular in the generation of
artificial life
Artificial life (ALife or A-Life) is a field of study wherein researchers examine systems related to natural life, its processes, and its evolution, through the use of simulations with computer models, robotics, and biochemistry. The discipline ...
.
L-system grammars are very similar to the
semi-Thue grammar (see
Chomsky hierarchy
The Chomsky hierarchy in the fields of formal language theory, computer science, and linguistics, is a containment hierarchy of classes of formal grammars. A formal grammar describes how to form strings from a formal language's alphabet that are v ...
). L-systems are now commonly known as ''parametric'' L systems, defined as a
tuple
In mathematics, a tuple is a finite sequence or ''ordered list'' of numbers or, more generally, mathematical objects, which are called the ''elements'' of the tuple. An -tuple is a tuple of elements, where is a non-negative integer. There is o ...
:G = (''V'', ω, ''P''),
where
* V (the ''alphabet'') is a set of symbols containing both elements that can be replaced (''variables'') and those which cannot be replaced ("constants" or "terminals")
* ω (''start'', ''axiom'' or ''initiator'') is a string of symbols from V defining the initial state of the system
* P is a set of ''
production rules'' or ''productions'' defining the way variables can be replaced with combinations of constants and other variables. A production consists of two strings, the ''predecessor'' and the ''successor''. For any symbol A which is a member of the set V which does not appear on the left hand side of a production in P, the identity production A → A is assumed; these symbols are called ''constants'' or ''terminals''. (See
Law of identity
In logic, the law of identity states that each thing is identical with itself. It is the first of the traditional three laws of thought, along with the law of noncontradiction, and the law of excluded middle. However, few systems of logic are b ...
).
The rules of the L-system grammar are applied iteratively starting from the initial state. As many rules as possible are applied simultaneously, per iteration. The fact that each iteration employs as many rules as possible differentiates an L-system from a
formal language
In logic, mathematics, computer science, and linguistics, a formal language is a set of strings whose symbols are taken from a set called "alphabet".
The alphabet of a formal language consists of symbols that concatenate into strings (also c ...
generated by a
formal grammar
A formal grammar is a set of Terminal and nonterminal symbols, symbols and the Production (computer science), production rules for rewriting some of them into every possible string of a formal language over an Alphabet (formal languages), alphabe ...
, which applies only one rule per iteration. If the production rules were to be applied only one at a time, one would quite simply generate a string in a language, and all such sequences of applications would produce the language specified by the grammar. There are some strings in some languages, however, that cannot be generated if the grammar is treated as an L-system rather than a language specification. For example, suppose there is a rule S→SS in a grammar. If productions are done one at a time, then starting from S, we can get first SS, and then, applying the rule again, SSS. However, if all applicable rules are applied at every step, as in an L-system, then we cannot get this sentential form. Instead, the first step would give us SS, but the second would apply the rule twice, giving us SSSS. Thus, the set of strings produced by an L-systems from a given grammar is a subset of the formal language defined by the grammar, and if we take a language to be defined as a set of strings, this means that a given L-system is effectively a subset of the formal language defined by the L-system's grammar.
An L-system is ''context-free'' if each production rule refers only to an individual symbol and not to its neighbours. Context-free L-systems are thus specified by a
context-free grammar
In formal language theory, a context-free grammar (CFG) is a formal grammar whose production rules
can be applied to a nonterminal symbol regardless of its context.
In particular, in a context-free grammar, each production rule is of the fo ...
. If a rule depends not only on a single symbol but also on its neighbours, it is termed a ''context-sensitive'' L-system.
If there is exactly one production for each symbol, then the L-system is said to be ''deterministic'' (a deterministic context-free L-system is popularly called a ''
D0L system''). If there are several, and each is chosen with a certain probability during each iteration, then it is a ''stochastic'' L-system.
Using L-systems for generating graphical images requires that the symbols in the model refer to elements of a drawing on the computer screen. For example, the program ''
Fractint'' uses
turtle graphics
In computer graphics, turtle graphics are vector graphics using a relative cursor (the "turtle") upon a Cartesian plane (x and y axis). Turtle graphics is a key feature of the Logo programming language. It is also a simple and didactic way of d ...
(similar to those in the
Logo programming language
Logo is an educational programming language, designed in 1967 by Wally Feurzeig, Seymour Papert, and Cynthia Solomon. The name was coined by Feurzeig while he was at Bolt, Beranek and Newman, and derives from the Greek ''logos'', meaning 'word' ...
) to produce screen images. It interprets each constant in an L-system model as a turtle command.
Examples of L-systems
Example 1: algae
Lindenmayer's original L-system for modelling the growth of algae.
:variables : A B
:constants : none
:axiom : A
:rules : (A → AB), (B → A)
which produces:
: ''n'' = 0 : A
: ''n'' = 1 : AB
: ''n'' = 2 : ABA
: ''n'' = 3 : ABAAB
: ''n'' = 4 : ABAABABA
: ''n'' = 5 : ABAABABAABAAB
: ''n'' = 6 : ABAABABAABAABABAABABA
: ''n'' = 7 : ABAABABAABAABABAABABAABAABABAABAAB
Example 1: algae, explained
n=0: A start (axiom/initiator)
/ \
n=1: A B the initial single A spawned into AB by rule (A → AB), rule (B → A) couldn't be applied
/, \
n=2: A B A former string AB with all rules applied, A spawned into AB again, former B turned into A
/ , , , \
n=3: A B A A B note all A's producing a copy of themselves in the first place, then a B, which turns ...
/ , , , \ , \ \
n=4: A B A A B A B A ... into an A one generation later, starting to spawn/repeat/recurse then
The result is the sequence of
Fibonacci word
A Fibonacci word is a specific sequence of Binary numeral system, binary digits (or symbols from any two-letter Alphabet (formal languages), alphabet). The Fibonacci word is formed by repeated concatenation in the same way that the Fibonacci num ...
s. If one counts the length of each string, the
Fibonacci sequence
In mathematics, the Fibonacci sequence is a Integer sequence, sequence in which each element is the sum of the two elements that precede it. Numbers that are part of the Fibonacci sequence are known as Fibonacci numbers, commonly denoted . Many w ...
of numbers is obtained (skipping the first 1, due to the choice of axiom):
: 1 2 3 5 8 13 21 34 55 89 ...
If it is not desired to skip the first 1, axiom ''B'' can be used. That would place a ''B'' node before the topmost node (''A'') of the graph above.
For each string, if one counts the ''k''-th position from the left end of the string, the value is determined by whether a multiple of the
golden ratio
In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their summation, sum to the larger of the two quantities. Expressed algebraically, for quantities and with , is in a golden ratio to if
\fr ...
falls within the interval
. The ratio of A to B likewise converges to the golden mean.
This example yields the same result (in terms of the length of each string, not the sequence of ''A''s and ''B''s) if the rule (''A'' → ''AB'') is replaced with (''A'' → ''BA''), except that the strings are mirrored.
This sequence is a
locally catenative sequence because
, where
is the ''n''-th generation.
Example 2: fractal (binary) tree
* variables : 0, 1
* constants: "
, "
* axiom : 0
* rules : (1 → 11), (0 → 1
)
The shape is built by
recursively feeding the axiom through the production rules. Each character of the input string is checked against the rule list to determine which character or string to replace it with in the output string. In this example, a '1' in the input string becomes '11' in the output string, while '
[' remains the same. Applying this to the axiom of '0', one gets:
It can be seen that this string quickly grows in size and complexity. This string can be drawn as an image by using
turtle graphics
In computer graphics, turtle graphics are vector graphics using a relative cursor (the "turtle") upon a Cartesian plane (x and y axis). Turtle graphics is a key feature of the Logo programming language. It is also a simple and didactic way of d ...
, where each symbol is assigned a graphical operation for the turtle to perform. For example, in the sample above, the turtle may be given the following instructions:
* 0: draw a line segment ending in a leaf
* 1: draw a line segment
*
[: push position and angle, turn left 45 degrees
*
]: pop position and angle, turn right 45 degrees
The push and pop refer to a
LIFO stack (more technical grammar would have separate symbols for "push position" and "turn left"). When the turtle interpretation encounters a '
', the current position and angle are saved, and are then restored when the interpretation encounters a '">/nowiki>', the current position and angle are saved, and are then restored when the interpretation encounters a '/nowiki>'. If multiple values have been "pushed," then a "pop" restores the most recently saved values. Applying the graphical rules listed above to the earlier recursion, one gets:
Example 3: Cantor set
: variables : A B
: constants : none
: start : A
: rules : (A → ABA), (B → BBB)
Let ''A'' mean "draw forward" and ''B'' mean "move forward".
This produces the famous Cantor's fractal set on a real straight line R.
Example 4: Koch curve
A variant of the Koch curve which uses only right angles.
: variables : F
: constants : + −
: start : F
: rules : (F → F+F−F−F+F)
Here, F means "draw forward", + means "turn left 90°", and − means "turn right 90°" (see turtle graphics
In computer graphics, turtle graphics are vector graphics using a relative cursor (the "turtle") upon a Cartesian plane (x and y axis). Turtle graphics is a key feature of the Logo programming language. It is also a simple and didactic way of d ...
).
: ''n'' = 0:
:: F
::
: ''n'' = 1:
:: F+F−F−F+F
::
: ''n'' = 2:
:: F+F−F−F+F+F+F−F−F+F−F+F−F−F+F−F+F−F−F+F+F+F−F−F+F
::
: ''n'' = 3:
:: F+F−F−F+F+F+F−F−F+F−F+F−F−F+F−F+F−F−F+F+F+F−F−F+F+
::F+F−F−F+F+F+F−F−F+F−F+F−F−F+F−F+F−F−F+F+F+F−F−F+F−
:: F+F−F−F+F+F+F−F−F+F−F+F−F−F+F−F+F−F−F+F+F+F−F−F+F−
:: F+F−F−F+F+F+F−F−F+F−F+F−F−F+F−F+F−F−F+F+F+F−F−F+F+
:: F+F−F−F+F+F+F−F−F+F−F+F−F−F+F−F+F−F−F+F+F+F−F−F+F
::
Example 5: Sierpinski triangle
The Sierpinski triangle drawn using an L-system.
: variables : F G
: constants : + −
: start : F−G−G
: rules : (F → F−G+F+G−F), (G → GG)
: angle : 120°
Here, F and G both mean "draw forward", + means "turn left by angle", and − means "turn right by angle".
File:Sierpinski Triangle (from L-System, 2 iterations).png, n = 2
File:Sierpinski Triangle (from L-System, 4 iterations).png, n = 4
File:Sierpinski Triangle (from L-System, 6 iterations).png, n = 6
It is also possible to approximate the Sierpinski triangle using a Sierpiński arrowhead curve L-system.
: variables : A B
: constants : + −
: start : A
: rules : (A → B−A−B), (B → A+B+A)
: angle : 60°
Here, A and B both mean "draw forward", + means "turn left by angle", and − means "turn right by angle" (see turtle graphics
In computer graphics, turtle graphics are vector graphics using a relative cursor (the "turtle") upon a Cartesian plane (x and y axis). Turtle graphics is a key feature of the Logo programming language. It is also a simple and didactic way of d ...
).
Example 6: dragon curve
The dragon curve drawn using an L-system.
: variables : F G
: constants : + −
: start : F
: rules : (F → F+G), (G → F-G)
: angle : 90°
Here, F and G both mean "draw forward", + means "turn left by angle", and − means "turn right by angle".
Example 7: fractal plant
: variables : X F
: constants : + − : start : -X
: rules : (X → F+ XX]-F FXX), (F → FF)
: angle : 25°
First one needs to initialize an empty stack. This follows the LIFO (Last in, First Out) method to add and remove elements.
Here, F means "draw forward", − means "turn right 25°", and + means "turn left 25°". X does not correspond to any drawing action and is used to control the evolution of the curve. The square bracket " corresponds to saving the current values for position and angle, so the position and angle are pushed to the top of the stack, when the " token is encountered, the stack is popped and the position and angle are reset. Every " comes before every " token.

Variations
A number of elaborations on this basic L-system technique have been developed which can be used in conjunction with each other. Among these are stochastic grammar
A stochastic grammar (statistical grammar) is a grammar framework with a probabilistic notion of grammaticality:
*Stochastic context-free grammar
*Statistical parsing
*Data-oriented parsing
*Hidden Markov model (or stochastic regular grammar)
*Esti ...
s, context sensitive grammars, and parametric grammars.
Stochastic grammars
The grammar model we have discussed thus far has been deterministic—that is, given any symbol in the grammar's alphabet, there has been exactly one production rule, which is always chosen, and always performs the same conversion. One alternative is to specify more than one production rule for a symbol, giving each a probability
Probability is a branch of mathematics and statistics concerning events and numerical descriptions of how likely they are to occur. The probability of an event is a number between 0 and 1; the larger the probability, the more likely an e ...
of occurring. For example, in the grammar of Example 2, we could change the rule for rewriting "0" from:
:0 → 1
to a probabilistic rule:
:0 (0.5) → 1
:0 (0.5) → 0
Under this production, whenever a "0" is encountered during string rewriting, there would be a 50% chance it would behave as previously described, and a 50% chance it would not change during production. When a stochastic grammar is used in an evolution
Evolution is the change in the heritable Phenotypic trait, characteristics of biological populations over successive generations. It occurs when evolutionary processes such as natural selection and genetic drift act on genetic variation, re ...
ary context, it is advisable to incorporate a random
In common usage, randomness is the apparent or actual lack of definite pattern or predictability in information. A random sequence of events, symbols or steps often has no order and does not follow an intelligible pattern or combination. ...
seed into the genotype
The genotype of an organism is its complete set of genetic material. Genotype can also be used to refer to the alleles or variants an individual carries in a particular gene or genetic location. The number of alleles an individual can have in a ...
, so that the stochastic properties of the image remain constant between generations.
Context sensitive grammars
A context sensitive production rule looks not only at the symbol it is modifying, but the symbols on the string appearing before and after it. For instance, the production rule:
:b < a > c → aa
transforms "a" to "aa", but only if the "a" occurs between a "b" and a "c" in the input string:
:…bac…
As with stochastic productions, there are multiple productions to handle symbols in different contexts. If no production rule can be found for a given context, the identity production is assumed, and the symbol does not change on transformation. If context-sensitive and context-free productions both exist within the same grammar, the context-sensitive production is assumed to take precedence when it is applicable.
Parametric grammars
In a parametric grammar, each symbol in the alphabet has a parameter list associated with it. A symbol coupled with its parameter list is called a module, and a string in a parametric grammar is a series of modules. An example string might be:
:a(0,1) (0,0)(1,2)
The parameters can be used by the drawing functions, and also by the production rules. The production rules can use the parameters in two ways: first, in a conditional statement determining whether the rule will apply, and second, the production rule can modify the actual parameters. For example, look at:
:a(x,y) : x 0 → a(1, y+1)b(2,3)
The module a(x,y) undergoes transformation under this production rule if the conditional x=0 is met. For example, a(0,2) would undergo transformation, and a(1,2) would not.
In the transformation portion of the production rule, the parameters as well as entire modules can be affected. In the above example, the module b(x,y) is added to the string, with initial parameters (2,3). Also, the parameters of the already existing module are transformed. Under the above production rule,
:a(0,2)
Becomes
:a(1,3)b(2,3)
as the "x" parameter of a(x,y) is explicitly transformed to a "1" and the "y" parameter of a is incremented by one.
Parametric grammars allow line lengths and branching angles to be determined by the grammar, rather than the turtle interpretation methods. Also, if age is given as a parameter for a module, rules can change depending on the age of a plant segment, allowing animations of the entire life-cycle of the tree to be created.
Bi-directional grammars
The bi-directional model explicitly separates the symbolic rewriting system from the shape assignment. For example, the string rewriting process in the Example 2 (Fractal tree) is independent on how graphical operations are assigned to the symbols. In other words, an infinite number of draw methods are applicable to a given rewriting system.
The bi-directional model consists of 1) a forward process constructs the derivation tree with production rules, and 2) a backward process realizes the tree with shapes in a stepwise manner (from leaves to the root). Each inverse-derivation step involves essential geometric-topological reasoning. With this bi-directional framework, design constraints and objectives are encoded in the grammar-shape translation. In architectural design applications, the bi-directional grammar features consistent interior connectivity and a rich spatial hierarchy.
L-system Construction and Inference
Manual L-System Construction
Historically, the construction of L-systems relied heavily on manual efforts by experts,[Prusinkiewicz, P., & Lindenmayer, A. (2012). ''The algorithmic beauty of plants''. Springer Science & Business Media.][T. Nishida, K0L-system simulating almost but not exactly the same development-case of Japanese Cypress, Memoirs of the Faculty of Science, Kyoto University, Series B 8 (1) (1980) 97122.] requiring detailed measurements, domain knowledge, and significant time investment. The process often involved analyzing biological structures and encoding their developmental rules into L-systems, symbol by symbol. This labor-intensive method made creating accurate models for complex processes both tedious and error-prone.
A notable example is Nishida's work on Japanese Cypress trees, where he manually segmented branches from a series of images and identified 42 distinct growth mechanisms to construct a stochastic L-system. Despite the significant effort involved, the resulting system provided only an approximation of the tree's growth, illustrating the challenges of manually encoding such detailed biological processes. This arduous task was described as "tedious and intricate," underscoring the limitations of manual approaches.
The challenges of manual L-system construction are also well-documented in The Algorithmic Beauty of Plants by Przemyslaw Prusinkiewicz and Aristid Lindenmayerd. The book demonstrates how L-systems can elegantly model plant growth and fractal patterns, but the examples often required expert intervention to define the necessary rules.
Manual construction was further constrained by the need for domain-specific expertise, as seen in other applications of L-systems beyond biology, such as architectural design and urban modeling. In these fields, creating an accurate L-system required not only an understanding of the L-system formalism but also extensive knowledge of the domain being modeled.
L-system Inference
The idea of automating L-system inference emerged to address the inefficiencies of manual methods, which often required extensive expertise, measurements, and trial-and-error processes. This automation aimed to enable the inference of L-systems directly from observational data, eliminating the need for manual encoding of rules.
Initial algorithms primarily targeted deterministic context-free L-systems (D0L-systems), which are among the simplest types of L-systems. These early efforts demonstrated the feasibility of automatic inference but were severely limited in scope, typically handling only systems with small alphabets and simple rewriting rules.[Ryohei Nakano. Emergent induction of deterministic context-free L-system grammar. In Innovations in Bio-inspired Computing and Applications, pages 7584. Springer International Publishing, 2014.][Roger Curry. On the evolution of parametric L-systems. Technical report, University of Calgary, 2000.] For instance, Nakano's work highlighted the challenges of inferring L-systems with larger alphabets and more complex structures, describing the task as "immensely complicated".
Manual and Semi-Automated Tools
Early tools for L-system inference were often designed to assist experts rather than replace them. For example, systems that presented a population of potential L-systems to the user, allowing them to select aesthetically pleasing or plausible options, reduced some of the manual burden.[Fabricio Anastacio, Przemyslaw Prusinkiewicz, and Mario Costa Sousa. Sketch-based parameterization of L-systems using illustration-inspired construction lines and depth modulation. Computers & Graphics, 33(4):440451, 2009.] However, these tools relied heavily on human judgment and did not fully automate the inference process.
Domain-Specific Inference Approaches
Some early algorithms were tightly integrated into specific research domains mainly plant modeling. These approaches utilized domain knowledge to constrain the search space and achieve better results. However, their reliance on predefined domain-specific rules limited their generalizability and applicability to other areas.
Generalized Inference Algorithms
Attempts to create generalized algorithms for L-system inference began with deterministic context-free systems. Researchers aimed to infer L-systems from data alone, such as sequences of strings or temporal data from images, without relying on domain-specific knowledge. These algorithms encountered significant challenges, including:
* The exponential growth of the search space with increasing alphabet size and rule complexity.
* Dealing with imperfect or noisy data, which introduced errors in the inferred systems.
* Limitations in computational efficiency, as exhaustive search methods became intractable for all but the simplest cases.
Bernard's PhD dissertation, supervised by Dr. Ian McQuillan at the University of Saskatchewan, represents a significant advancement in L-system inference, introducing the Plant Model Inference Tools (PMIT) suite. Despite the name, this tool is problem agnostic, and is so-named due to the source of the original funding from the P2IRC project. These tools address the challenges of inferring deterministic, stochastic, and parametric L-systems:
Deterministic Context-Free L-Systems (D0L):
The PMIT-D0L tool improved the state-of-the-art by enabling the inference of L-systems with up to 31 symbols, compared to previous algorithms that managed only two. This was achieved through novel encoding techniques and search-space reduction methods.
Deterministic Context-Sensitive L-Systems (D(j,k)L):
The PMIT-DCSL tool further improved the inference of deterministic L-systems by demonstrating that the techniques worked in the context-sensitive case with little modification. This tool also presented further improvements allowing for the inference of deterministic L-systems with up to hundreds of symbols. Furthermore, this work and McQuillan's theoretical paper proves the complexity of context-sensitive L-systems inference. In an unpublished work, Bernard claims to show that context-sensitivity never changes the fundamental nature of the inference problem regardless of the selection rule. That is to say, inferring context-sensitive stochastic L-systems is possible if inferring context-free L-system is possible.
Stochastic L-Systems (S0L):
For stochastic L-systems, PMIT-S0L was developed, which uses a hybrid greedy and genetic algorithm approach to infer systems from multiple string sequences. The tool demonstrated the ability to infer rewriting rules and probabilities with high accuracy, a first in the field.
Temporal Parametric L-Systems:
McQuillan first realized that parametric L-systems could be thought of as stochastic L-systems; however, this did not solve the problem of inferring the parametric selection rules. Using Cartesian Genetic Programming, parametric L-systems could be inferred along with the parametric selection rules so long as the parameter set included time (in order to, provide a sequence to the parameters, but time is a reasonable parameter for any real process). This tool, PMIT-PARAM, successfully inferred complex systems with up to 27 rewriting rules, setting a new benchmark in L-system inference.
Open problems
There are many open problems involving studies of L-systems. For example:
* Characterisation of all the deterministic context-free L-systems which are locally catenative. (A complete solution is known only in the case where there are only two variables).
Types of L-systems
L-systems on the real line
A number line is a graphical representation of a straight line that serves as spatial representation of numbers, usually graduated like a ruler with a particular origin (geometry), origin point representing the number zero and evenly spaced mark ...
R:
* Prouhet-Thue-Morse system
Well-known L-systems on a plane R2 are:
* space-filling curve
In mathematical analysis, a space-filling curve is a curve whose Range of a function, range reaches every point in a higher dimensional region, typically the unit square (or more generally an ''n''-dimensional unit hypercube). Because Giuseppe Pea ...
s (Hilbert curve
The Hilbert curve (also known as the Hilbert space-filling curve) is a Geometric continuity, continuous fractal curve, fractal space-filling curve first described by the German mathematician David Hilbert in 1891, as a variant of the space-filling ...
, Peano's curves, Dekking's church, kolam
Kolam (, , ), also known as Muggu (), Tarai Alangaram () and Rangoli (), is a form of traditional decorative art that is drawn by using rice flour as per age-old conventions. It is also drawn using white stone powder, chalk or chalk powder, oft ...
s),
* median space-filling curves ( Lévy C curve, Harter-Heighway dragon curve, Davis-Knuth terdragon),
* tilings (sphinx tiling
In geometry, the sphinx tiling is a tessellation of the plane using the "sphinx", a pentagonal polyiamond, hexiamond formed by gluing six equilateral triangles together. The resultant shape is named for its reminiscence to the Great Sphinx of Giz ...
, Penrose tiling
A Penrose tiling is an example of an aperiodic tiling. Here, a ''tiling'' is a covering of two-dimensional space, the plane by non-overlapping polygons or other shapes, and a tiling is ''aperiodic'' if it does not contain arbitrarily large Perio ...
)
See also
* Digital morphogenesis
* Iterated function system
In mathematics, iterated function systems (IFSs) are a method of constructing fractals; the resulting fractals are often self-similar. IFS fractals are more related to set theory than fractal geometry. They were introduced in 1981.
IFS fractals ...
* that provides diffusing-chemical-reagent simulations (including Life-like)
* Stochastic context-free grammar
* '' The Algorithmic Beauty of Plants''
Notes
Books
* Przemysław Prusinkiewicz, Aristid Lindenmayer
Aristid Lindenmayer (17 November 1925 – 30 October 1989) was a Hungarian biologist. In 1968 he developed a type of formal language today called L-systems or Lindenmayer systems. Using those systems Lindenmayer modelled the behaviour of cells ...
– The Algorithmic Beauty of Plantsbr>PDF version available here for free
* Grzegorz Rozenberg
Grzegorz Rozenberg (born 14 March 1942, Warsaw) is a Polish and Dutch computer scientist.
His primary research areas are natural computing,
formal language and automata theory, graph transformations, and concurrent systems.
He is refer ...
, Arto Salomaa
Arto Kustaa Salomaa (6 June 1934 – 26 January 2025) was a Finnish mathematician and computer scientist. His research career, which spanned over 40 years, was focused on formal languages and automata theory.
Early life and education
Salomaa ...
– ''Lindenmayer Systems: Impacts on Theoretical Computer Science, Computer Graphics, and Developmental Biology''
* D.S. Ebert, F.K. Musgrave, et al. – ''Texturing and Modeling: A Procedural Approach'',
* Burry, Jane, Burry Mark, (2010). The New Mathematics of Architecture, New York: Thames and Hudson.
* Aristid Lindenmayer,
Mathematical models for cellular interaction in development
" J. Theoret. Biology, 18:280—315, 1968.
External links
Algorithmic Botany at the University of Calgary
L-Systems
A user friendly page to generate fractals and plants from L-Systems.
Branching: L-system Tree
��A Java applet
Java applets were applet, small applications written in the Java (programming language), Java programming language, or another programming language that Compiled language, compiles to Java bytecode, and delivered to users in the form of Ja ...
and its source code
In computing, source code, or simply code or source, is a plain text computer program written in a programming language. A programmer writes the human readable source code to control the behavior of a computer.
Since a computer, at base, only ...
(open source
Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
) of the botanical tree growth simulation using the L-system.
Fractint L-System True Fractals
OpenAlea
: an open-source software environment for plant modeling, which contain
L-Py
an open-source python implementation of the Lindenmayer systems
"powerPlant" an open-source landscape modelling software
An implementation of L-systems in Racket
* Page about using L-systems and genetic algorithm
In computer science and operations research, a genetic algorithm (GA) is a metaheuristic inspired by the process of natural selection that belongs to the larger class of evolutionary algorithms (EA). Genetic algorithms are commonly used to g ...
s to generate music.
eXtended L-Systems (XL), Relational Growth Grammars, and open-source software platform GroIMP.
*
Online experiments with L-Systems using JSXGraph (JavaScript)
Flea
A Ruby implementation of LSYSTEM, using a Domain Specific Language instead of terse generator commands
A plant and fractal generator using L-systems (JavaScript)
*
HTML5 L-Systems – try out experiments online
The vector-graphics program
Inkscape
Inkscape is a vector graphics editor. It is used for both artistic and technical illustrations such as cartoons, clip art, logos, typography, diagrams, and flowcharts. It uses vector graphics to allow for sharp printouts and renderings at ...
features an L-System Parser
*
An implementation of a L-system parser and simple turtle graphics in the Icon programming language
A Lindenmeyer System Generator by Nolan Carroll
Bloogen: L-Systems with a genetic twist
Inferring Different Types of Lindenmayer Systems Using Artificial Intelligence
{{Authority control