Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
L-system
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== 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]]s. If one counts the length of each string, the [[Fibonacci sequence]] 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]] falls within the interval <math>(k-1, k)</math>. 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 <math>G(n)=G(n-1)G(n-2)</math>, where <math>G(n)</math> is the ''n''-th generation.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)