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 />

The V ariant(n, Π, C, max) functi<strong>on</strong> can be defined as the n-th element in the<br />

lexicographical ordering of elements of Appl(Π, C, max) and it has the following<br />

formula<br />

V ariant(n, Π, C, max) = r N−n−1+k1<br />

1 r n−1+k2<br />

2<br />

We remark that the above formula can also be computed in c<strong>on</strong>stant time using<br />

FPGA.<br />

We could obtain the NBV ariants formula using formal power series. In order<br />

to do this we observe that the language ∪ N>0 L N , where L N = {r p 1 rq 2 | p+q = N}<br />

is regular. Moreover, it holds that L N = r1 ∗r∗ 2 ∩ AN , with A being the alphabet<br />

{r 1 , r 2 }. Below we give the automat<strong>on</strong> A 1 for the language r1 ∗r∗ 2<br />

r 1<br />

<br />

<br />

q 0<br />

r 2<br />

r 2<br />

<br />

<br />

( ) 1 1<br />

The transfer matrix of this automat<strong>on</strong> is and the final state characteristic<br />

vector is [1, 1] t . Using Equati<strong>on</strong> (2) this yields the generating functi<strong>on</strong><br />

0 1<br />

for L N : q 0 = 1<br />

(1−x)<br />

. It is easy to verify that [x n ]q 2 0 = n + 1.<br />

We modify the previous example by c<strong>on</strong>sidering weighted rules.<br />

Example 3. C<strong>on</strong>sider a P system Π 1 having two rules r 1 : a ka b k b1<br />

→ u and<br />

r 2 : b k b2<br />

c kc → v. These rules have the following dependency graph:<br />

q 1<br />

r 1 r 2<br />

k a<br />

7 ❄ 7 ❄❄❄❄❄❄<br />

k b1 k b2 ❄ 8 ❄❄❄❄❄❄❄<br />

k c<br />

7 7777 8 8888 a<br />

b<br />

c<br />

Let N a , N b and N c be the number of objects a, b and c in a c<strong>on</strong>figurati<strong>on</strong> C.<br />

We define<br />

N 1 = min([N a /k a ], [N b /k b1 ])<br />

N 2 = min([N b /k b2 ], [N c /k c ])<br />

N = min(N 1 , N 2 )<br />

Suppose that Π evolves in a maximally parallel derivati<strong>on</strong> mode. Let A 2 be<br />

the automat<strong>on</strong> recognizing the language (r1 kb1 ) ∗ (r2 kb2 ) ∗<br />

r k b1<br />

1<br />

<br />

q 0<br />

<br />

r k b2<br />

r k b2<br />

2<br />

2 <br />

Let L ′ N = A 2 ∩ A N (A = {r 1 , r 2 }). Then it is clear that<br />

⋃ { }<br />

Appl(Π, C, max) =<br />

r p+k1<br />

1 r q+k2<br />

2 ,<br />

pk b1 +qk b2 =N<br />

q 1<br />

439

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

Saved successfully!

Ooh no, something went wrong!