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 distributed DFS soluti<strong>on</strong>s for edge-disjoint paths in digraphs<br />

elementary symbols and i, j, X are free variables (assuming that these are not<br />

listed am<strong>on</strong>g elementary symbols): b(2) = b 2 , c(i) = c i , d(i, j) = d i,j , e(a 2 b 3 ),<br />

f(j, c 5 ) = f j (c 5 ), f(j, Xc) = f j (Xc).<br />

Besides modelling complex data structures, such as lists, stacks, trees and<br />

dicti<strong>on</strong>aries, or emulating procedure calls, complex symbols are useful for representing<br />

and processing any number of cell IDs with a fixed vocabulary. Thus,<br />

complex symbols allow the design of fixed-size P system algorithms, i.e. algorithms<br />

having a fixed number of rules, which does not depend <strong>on</strong> the number of<br />

cells in the underlying P systems.<br />

Here we assume that each cell σ i is “blessed” with a unique complex cell<br />

ID symbol, ι(i), typically abbreviated as ι i , which is exclusively used as an<br />

immutable promoter.<br />

Generic rules: To process complex symbols, we use high-level generic rules,<br />

which are instantiated using free variable matching [1]. A generic rule is identified<br />

by an extended versi<strong>on</strong> of the classical rewriting mode, in fact, a combined<br />

instantiati<strong>on</strong>.rewriting mode, where (1) the instantiati<strong>on</strong> mode is <strong>on</strong>e of {min,<br />

max, dyn} and (2) the rewriting mode in <strong>on</strong>e of {min, max}.<br />

The instantiati<strong>on</strong> mode indicates how many instance rules are c<strong>on</strong>ceptually<br />

generated: (a) the mode min indicates that the generic rules is n<strong>on</strong>deterministically<br />

instantiated <strong>on</strong>ly <strong>on</strong>ce, if possible; (b) the mode max indicates that the<br />

generic rule is instantiated as many times as possible, without superfluous instances<br />

(i.e. without duplicates or instances which are not applicable); (c) the<br />

newly proposed mode dyn indicates a dynamic instantiati<strong>on</strong> mode, which will<br />

be described later. The rewriting mode indicates how each instantiated rule is<br />

applied (as in the classical framework).<br />

As an example, c<strong>on</strong>sider a system where cell σ 7 c<strong>on</strong>tains multiset f 2 f 3 2 v, and<br />

the generic rule ρ α , where α ∈ {min.min, min.max, max.min, max.max} and i and<br />

j are free variables:<br />

(ρ α ) S 20 f j → α S 20 (b i )↕ j | v ι i<br />

1. ρ min.min n<strong>on</strong>deterministically generates <strong>on</strong>e of the following rule instances:<br />

S 20 f 2 → min S 20 (b 7 )↕ 2<br />

S 20 f 3 → min S 20 (b 7 )↕ 3<br />

2. ρ min.max n<strong>on</strong>deterministically generates <strong>on</strong>e of the following rule instances:<br />

S 20 f 2 → max S 20 (b 7 )↕ 2<br />

S 20 f 3 → max S 20 (b 7 )↕ 3<br />

3. ρ max.min generates both following rule instances:<br />

S 20 f 2 → min S 20 (b 7 )↕ 2<br />

S 20 f 3 → min S 20 (b 7 )↕ 3<br />

185

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

Saved successfully!

Ooh no, something went wrong!