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.

R. Freund, I. Pérez-Hurtado, A. Riscos-Núñez, S. Verlan<br />

2. I C (r) is c<strong>on</strong>sistent with ρ:<br />

I C (r) = {(i 1 , . . . , i k ) ∈ ĪC(r) | (j, m) ∈ ρ(r) ⇒ (i j , i m ) ∈ C ρ }.<br />

For a multiset of rules R ∈ R ◦ and a c<strong>on</strong>figurati<strong>on</strong> C ∈ C we define the<br />

set of multisets Applicable(R, C) ⊆ (R × N ∗ ) ◦ giving the set of multisets of<br />

instantiated rules that can be computed based <strong>on</strong> R and the c<strong>on</strong>figurati<strong>on</strong> C.<br />

This set is computed as follows.<br />

Let R = {r 1 , . . . , r n } (the rules are not necessarily different) and let I C (r i ) =<br />

(v i,1 , . . . , v iki ), 1 ≤ i ≤ n. C<strong>on</strong>sider an arbitrary vector of rule instances v =<br />

(v 1,j1 , . . . , v n,jn ), 1 ≤ j i ≤ k i , 1 ≤ i ≤ n. The multiset {(r 1 , v 1,j1 ), . . . , (r n , v n,jn )}<br />

bel<strong>on</strong>gs to Applicable(R, C) if<br />

– For all p ∈ P erm(r i ) ∪ DP erm(r i ), p〈v i,ji 〉 ⊆ ¯C m , 1 ≤ i ≤ n.<br />

– For all q ∈ F or(r i ), q〈v i,ji 〉 ⊈ ¯C m , 1 ≤ i ≤ n.<br />

– ⋃ n<br />

i=1 Bound(r i)〈v i,ji 〉 ⊆ ¯C m .<br />

– ∀i, k, s if ((s, l 1 ) ∈ Label–Rename(r i 〈v i,ji 〉) and<br />

(s, l 2 ) ∈ Label–Rename(r k 〈v k,jk 〉)) then l 1 = l 2 .<br />

– The c<strong>on</strong>secutive applicati<strong>on</strong> of graph transducers Change–Relati<strong>on</strong>(r i ) and<br />

Change–Relati<strong>on</strong>(r j ) yields the same result regardless of the order of the<br />

applicati<strong>on</strong>, 1 ≤ i, j ≤ n.<br />

For a P system Π having a set of rules R we define:<br />

⋃<br />

Applicable(Π, C) =<br />

Applicable(R, C),<br />

Applicable(R,C)≠∅<br />

where R are multisets (of rules) over R. Note that this is a finite uni<strong>on</strong>, since the<br />

size of the eligible multisets for which Applicable(R, C) is not empty is bounded.<br />

Following [3] it is possible to define now the transiti<strong>on</strong> modes as a restricti<strong>on</strong><br />

of this set. However, it should be noted that since the corresp<strong>on</strong>ding multisets<br />

c<strong>on</strong>tain instantiated rules, additi<strong>on</strong>al restricti<strong>on</strong>s based <strong>on</strong> instances can be<br />

placed.<br />

Applicati<strong>on</strong> of a Multiset of Rules<br />

Now we are ready to define the applicati<strong>on</strong> of a multiset of rules R.<br />

Let C = (L, ρ) be the current c<strong>on</strong>figurati<strong>on</strong> and let RI ∈ Applicable(R, C),<br />

RI = {(r 1 , v 1 ), . . . , (r n , v n )} be a multiset of instantiated rules. We now define<br />

the operati<strong>on</strong> Apply(RI, C) ∈ C which is the result of the applicati<strong>on</strong> of RI to<br />

C.<br />

Before giving the algorithm we remark that a rule is composed from three<br />

parts: the rewriting of objects and the label change (R), the membrane deleti<strong>on</strong><br />

(D) and the membrane creati<strong>on</strong> (G). The order of the applicati<strong>on</strong> of these parts<br />

is extremely important, e.g. doing the rewriting before the membrane creati<strong>on</strong><br />

permits to copy the result of the rewriting to the new membranes. In this article<br />

we c<strong>on</strong>sider that the applicati<strong>on</strong> order is RGD, i.e. rewriting, creati<strong>on</strong> and then<br />

204

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

Saved successfully!

Ooh no, something went wrong!