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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

4 Example of Simulator C<strong>on</strong>structi<strong>on</strong><br />

In this secti<strong>on</strong> we will present the design of a hardware simulator using FPGA<br />

that implements the ideas and the algorithms discussed in the previous secti<strong>on</strong>.<br />

4.1 Tested System<br />

We used the following example to illustrate the FPGA implementati<strong>on</strong> for our<br />

ideas. We c<strong>on</strong>sidered multiset rewriting rules working in set-maximal mode<br />

(smax). This mode corresp<strong>on</strong>ds to the maximally parallel executi<strong>on</strong> of rules,<br />

but where the rules cannot be applied more than <strong>on</strong>ce. This mode can be formally<br />

defined as follows (where asyn is the asynchr<strong>on</strong>ous mode and R is the set<br />

of all rules):<br />

S 1 = {R ∈ Appl(Π, C, asyn) | |R| rj ≤ 1, 1 ≤ j ≤ |R|}<br />

Appl(Π, C, smax) = {R ∈ S 1 | there is no R ′ ∈ S 1 such that R ′ ⊃ R}<br />

We remark that smax mode corresp<strong>on</strong>ds to min 1 mode with a specific partiti<strong>on</strong><br />

of rules: the size of the partiti<strong>on</strong> is |R| and each partiti<strong>on</strong> p j c<strong>on</strong>tains exactly<br />

<strong>on</strong>e rule r j ∈ R. We also recall that most variants of static P systems can be<br />

seen as multiset rewriting.<br />

C<strong>on</strong>sider now a multiset rewriting system (corresp<strong>on</strong>ding to a P system with<br />

<strong>on</strong>e membrane) evolving in smax mode. To simplify the c<strong>on</strong>structi<strong>on</strong> we c<strong>on</strong>sider<br />

rules having a dependency graph in a form of chain without weights.<br />

a 0<br />

r 1 r 2 . . . r n<br />

❇ 5 ❇❇❇❇<br />

5 55 ❇ 5 ❇❇❇❇<br />

❍ 3 ❍❍❍❍❍ ✇<br />

❈ ❈❈❈❈<br />

5 55 3 333 ✇ ✇✇✇<br />

a 1<br />

a 2<br />

a n−1<br />

Let N ai be the number of objects a i in c<strong>on</strong>figurati<strong>on</strong> C. We denote by<br />

NBV ([r 1 , . . . , r k ], C), k > 0 the number of variants of applicati<strong>on</strong>s of a chain of<br />

rules r 1 , . . . , r k to the c<strong>on</strong>figurati<strong>on</strong> C in smax mode. We remark that for a P<br />

system Π having the set of rules R, NBV ariants(Π, C, smax) = NBV (R, C).<br />

It is possible to distinguish 3 cases with respect to the number of objects<br />

N ai , 0 ≤ i ≤ n (c<strong>on</strong>sider that 0 ≤ s ≤ i ≤ e ≤ n):<br />

N ai = 0 Then the two surrounding rules (r i and r i+1 ) are not applicable. In<br />

this case the parts of the chain at the left and right of a i are independent,<br />

so the number of variants is a product of corresp<strong>on</strong>ding variants:<br />

NBV (r s , . . . , r e , C) = NBV (r s , . . . , r i−1 , C) ∗ NBV (r i+2 , . . . , r e , C)<br />

N ai > 1 As in the previous case the chain can be split into two parts because<br />

both rules r i and r i+1 can be applied:<br />

NBV (r s , . . . , r e , C) = NBV (r s , . . . , r i , C) ∗ NBV (r i+1 , . . . , r e , C)<br />

N ai = 1 In this case r i and r i+1 are in c<strong>on</strong>flict.<br />

a n<br />

441

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

Saved successfully!

Ooh no, something went wrong!