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.

A. Alhazov, R. Freund<br />

r| ¬{q1,··· ,q n}. Likewise, a rule with both promoters and inhibitors can be specified<br />

as a rule with a simple c<strong>on</strong>text c<strong>on</strong>diti<strong>on</strong>, i.e., r| p1,··· ,p n,¬q 1,··· ,¬q n<br />

stands for<br />

(r, {p 1 , · · · , p n } , {q 1 , · · · , q n }). Finally, promoters and inhibitors of weight <strong>on</strong>e<br />

are called atomic.<br />

Remark 1. If we do not c<strong>on</strong>sider determinism, then (the effect of) the rule<br />

(r, (P 1 , Q 1 ) , · · · , (P m , Q m )) is equivalent to (the effect of) the collecti<strong>on</strong> of rules<br />

{(r, P j , Q j ) | 1 ≤ j ≤ m}, no matter in which mode the P system is working<br />

(obviously, the priority relati<strong>on</strong> has to be adapted accordingly, too).<br />

Remark 2. Let (r, {p 1 , · · · , p n } , Q) be a rule with a simple c<strong>on</strong>text c<strong>on</strong>diti<strong>on</strong>;<br />

then we claim that (the effect of) this rule is equivalent to (the effect of) the<br />

collecti<strong>on</strong> of rules<br />

{(r, {p j } , Q ∪ {p k | 1 ≤ k < j}) | 1 ≤ j ≤ m}<br />

even in the the case of a deterministic P system: If the first promoter is chosen<br />

to make the rule r applicable, we do not care about the other promoters; if the<br />

sec<strong>on</strong>d promoter is chosen to make the rule r applicable, we do not allow p 1 to appear<br />

in the c<strong>on</strong>figurati<strong>on</strong>, but do not care about the other promoters p 3 to p m ; in<br />

general, when promoter p j is chosen to make the rule r applicable, we do not allow<br />

p 1 to p j−1 to appear in the c<strong>on</strong>figurati<strong>on</strong>, but do not care about the other promoters<br />

p j+1 to p m ; finally, we have the rule {(r, {p m } , Q ∪ {p k | 1 ≤ k < m})}.<br />

If adding {p k | 1 ≤ k < j} to Q has the effect of prohibiting the promotor p j<br />

from enabling the rule r to be applied, this makes no harm as in this case <strong>on</strong>e<br />

of the promoters p k , 1 ≤ k < j, must have the possibility for enabling r to<br />

be applied. By c<strong>on</strong>structi<strong>on</strong>, the domains of the new c<strong>on</strong>text c<strong>on</strong>diti<strong>on</strong>s now<br />

are disjoint, so this transformati<strong>on</strong> does not create (new) n<strong>on</strong>-determinism. In a<br />

similar way, this transformati<strong>on</strong> may be performed <strong>on</strong> c<strong>on</strong>text c<strong>on</strong>diti<strong>on</strong>s which<br />

are not simple. Therefore, without restricting generality, the set of promoters<br />

may be assumed to be a singlet<strong>on</strong>. In this case, we may omit the braces of the<br />

multiset notati<strong>on</strong> for the promoter multiset and write (r, p, Q).<br />

Example 1. C<strong>on</strong>sider an arbitrary finite set H of numbers. Choose K =<br />

max (H) + 1; then we c<strong>on</strong>struct the following deterministic accepting P system<br />

with promoters and inhibitors:<br />

Π = (O, {a} , s 0 f 0 · · · f k , R ′ , R) ,<br />

O = {a} ∪ {s i , f i | 0 ≤ i ≤ K} ,<br />

R ′ = {s i → s i+1 | 0 ≤ i ≤ K − 1} ∪ {f i → f i | 0 ≤ i ≤ K} ,<br />

R = {s i → s i+1 | a i+1, | 0 ≤ i ≤ K − 1}<br />

∪ { f i → f i | si,¬a i+1, | 0 ≤ i < K, i /∈ H} ∪ {f k → f k | sk } .<br />

The system step by step, by the applicati<strong>on</strong> of the rule s i → s i+1 | a i+1, 0 ≤ i < K,<br />

checks if (at least) i + 1 copies of the symbol a are present. If the computati<strong>on</strong><br />

stops after i steps, i.e., if the input has c<strong>on</strong>sisted of exactly i copies of a, then<br />

this input is accepted if and <strong>on</strong>ly if i ∈ H, as exactly in this case the system does<br />

90

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

Saved successfully!

Ooh no, something went wrong!