1 / 4

L-systems

L-systems. L-systems are grammatical systems introduced by Lyndenmayer to describe biological developments such as the growth of plants and cellular organisms.

Download Presentation

L-systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. L-systems L-systems are grammatical systems introduced by Lyndenmayer to describe biological developments such as the growth of plants and cellular organisms. The major difference from the formal grammars that we have defined in the class is that in L-systems every string that can be derived belongs to the language. Hence, there is no identification for terminals and nonterminals. There are several variations of L-systems. Zero-sided L-systems correspond to the context-free grammars in the sense that the production rules are not context dependent, i.e., there is only one symbol on the left side of the production rules. There are one-sided (left-sided or right-sided) L-systems and two-sided L-systems depending on context-sensitivity (to the left, right or both sides of a symbol) of a production rule. The following definitions show variations of zero-sided L-systems.

  2. L-systems Definition 1. A 0L (zero-sided Lindenmayer) system is a triple G = ( , h,  ), where  is a finite alphabet, h is a finite substitutions on  into the set of subsets of  *, (i.e., h:   2  *.), and , called the axiom, is an element in  *. The word sequence generated by a 0L system is h0( ) =  , h1( ) = h( ), h2 = h(h1( )), ...…. The language of G is defined by L(G) = { hi( ) | i  0}. Example. G = ( {a}, h, a2 ), where h(a) = {a, a2 }. L(G) = {an | n 2}. Definition 2. DOL (deterministic 0L) system is a 0L system (, h,  ) with h:    *. Example. G = ({a, b}, h, ab ), where h(a) = a, h(b) = ab. L(G) = {anb | n  0}. Notice that h gives only one string.

  3. Drawing Plants Using Lindermayer System 1 23 2  2 3  24 4  25 5  65 6  7 7  8 8  9[3] 9  9 5 1 23 224 . . 229[229[24]9[3]8765]9[229[3]8765]9[228765]9[228765]9[2265]9[225]9[24]9[3]8765 6 7 8 3 4 5 5 9 5 2 6 2 5 6 9 7 5 2 6 2 8 6 5 9 7 2 7 6 2 8 9 8 7 2 2 8 3 3 9 9 2 2 9 9 2 4 2 9 2 9 2 9 2 2

  4. Other Models for Language Definition (Syntax Diagram) letter identifier letter digit unsigned integer digit unsigned number + unsigned integer . digit E unsigned integer -

More Related