09.09.2014 Views

13th International Conference on Membrane Computing - MTA Sztaki

13th International Conference on Membrane Computing - MTA Sztaki

13th International Conference on Membrane Computing - MTA Sztaki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Fast hardware implementati<strong>on</strong>s of P systems<br />

We will need some noti<strong>on</strong>s from the formal power series theory, especially<br />

related to the theory of formal languages. We suggest the reading of [15] for<br />

more precise details <strong>on</strong> this topic.<br />

For our purposes we c<strong>on</strong>sider that a formal power series f is a mapping<br />

f : A ∗ → N, where A is an alphabet and N is the set of n<strong>on</strong>-negative integers<br />

(in the general case a formal power series is a mapping from a free m<strong>on</strong>oid to a<br />

semiring). This mapping is usually written as<br />

f = ∑<br />

w∈A ∗ f(w)w<br />

It is known that a c<strong>on</strong>text-free grammar G = (N, T, S, P ) can be seen as a<br />

set of equati<strong>on</strong>s x i = α 1 + · · · + α ni , for each n<strong>on</strong>-terminal x i of G, where α j<br />

are the right-hand sides of producti<strong>on</strong>s x i → α j , 1 ≤ j ≤ n i . A soluti<strong>on</strong> of G<br />

is a set of formal power series s 1 , . . . , s k , such that the substituti<strong>on</strong> of x i by s i<br />

in above equati<strong>on</strong>s c<strong>on</strong>verts them to the identity, i.e. corresp<strong>on</strong>ding series are<br />

equal term by term. It is well known [2] that s i = ∑ w∈A ∗ f i (w)w, where f i (w)<br />

is the number of distinct leftmost derivati<strong>on</strong>s of w starting from x i . Under the<br />

mapping that sends any symbol from A to the same symbol, say x, we obtain<br />

the generating series for a n<strong>on</strong>-terminal x i :<br />

f i =<br />

∞∑<br />

∑<br />

n=0 |w|=n<br />

f i (w)x n .<br />

Let f i (n) = ∑ |w|=n f i(w). Then the above equati<strong>on</strong> can be rewritten as:<br />

f i =<br />

∞∑<br />

f i (n)x n<br />

n=0<br />

Suppose that x 1 = S, where S is the starting symbol of G. Then f 1 is called<br />

the generating series of G. If G is unambiguous, then f 1 (n) gives the number<br />

of words of length n in G. We denote by [x n ]f the n-th coefficient of f, i.e.<br />

[x n ]f = f(n).<br />

Let φ be the morphism defined by<br />

φ(λ) = 1<br />

φ(a) = x<br />

φ(x i ) = f i<br />

∀a ∈ T<br />

x i ∈ N<br />

Let x i → v i1 | · · · | v ik be the set of producti<strong>on</strong>s associated to x i . Then f i<br />

can be obtained as the soluti<strong>on</strong> of the following system of equati<strong>on</strong>s:<br />

f i =<br />

k∑<br />

φ(v ij ) (1)<br />

j=1<br />

435

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!