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.

A formal framework for P systems with dynamic structure<br />

8. Delete–and–Move(r) ∈ (N k × N k ) ∗ is a list of couples of indices (e.g., (j, k))<br />

indicates that the virtual cell j should be deleted and its c<strong>on</strong>tents should be<br />

moved to the virtual cell k).<br />

C. Creati<strong>on</strong> of new structures<br />

9. Generate(r) ∈ (N ′ × Lab × O ◦ ) ∗ is a list of triples c<strong>on</strong>sisting of a (primed)<br />

index, a label, and a multiset (e.g. (j ′ , h, u)). This comp<strong>on</strong>ent introduces<br />

new cells to be created by the applicati<strong>on</strong> of the rule.<br />

10. Generate–and–Copy(r) ∈ (N ′ × Lab × N × ¯R) -is a list of quadruplets c<strong>on</strong>sisting<br />

of a (primed) index, a label, an index, and a rewriting rule (e.g.<br />

(j ′ , h, i, u → v)). This comp<strong>on</strong>ent specifies new cells to be created by duplicating<br />

existing cells.<br />

We denote the smallest multiset c<strong>on</strong>taining any left-hand side of rewriting<br />

rules from Generate–and–Copy by DP erm(r).<br />

D. Structure transformati<strong>on</strong><br />

11. Change–Relati<strong>on</strong> is a graph transducer that updates the relati<strong>on</strong> ρ. This<br />

transducer should be recursive and it can <strong>on</strong>ly add and remove edges (no<br />

node creati<strong>on</strong>/removal is allowed).<br />

Now we define what the applicability of a rule means. Before giving the<br />

algorithm, we define some additi<strong>on</strong>al noti<strong>on</strong>s related to relative positi<strong>on</strong>s.<br />

An instance of size n is a vector of integers I = (i 1 , . . . , i n ), i j ∈ N, 1 ≤ j ≤ n.<br />

By size(I) we denote the size of an instance I, and by I| k , 1 ≤ k ≤ n, the k-th<br />

value of the vector I, i.e., i k .<br />

For a basic c<strong>on</strong>figurati<strong>on</strong> C ∈ C, C = (j 1 , w 1 ) . . . (j k , w k ), and for an instance<br />

I we define the instantiati<strong>on</strong> of C by I, denoted C〈I〉, as follows:<br />

C〈I〉 = (I| j1 , w 1 ) , . . . , (I| jk , w k ) .<br />

In the above formula we assume that the cells of c<strong>on</strong>figurati<strong>on</strong> C do not necessarily<br />

have their id in the range [1 . . . size(C)]. We also remark that size(C) ≤<br />

size(I).<br />

It is clear that if C is defined in terms of relative positi<strong>on</strong>s then C〈I〉 permits<br />

to replace these relative positi<strong>on</strong>s by the corresp<strong>on</strong>ding values from I (a relative<br />

positi<strong>on</strong> k is replaced by I| k which is i k ).<br />

For a rule r as defined above and for an instance I such that |Labels(r)| ≤<br />

size(I) we obtain the instantiati<strong>on</strong> of r by I, denoted by r〈I〉, by replacing all<br />

relative positi<strong>on</strong>s k by I| k in P erm(r), F or(r), Rewrite(r), Label–Rename(r),<br />

Delete(r), Delete–and–Move(r) and Change–Relati<strong>on</strong>(r).<br />

Applicability of a Multiset of Rules<br />

Now we define what means the applicability of a group of rules. First we define<br />

the set of eligible instances for a rule r ∈ R in a c<strong>on</strong>figurati<strong>on</strong> C. This set, denoted<br />

by I C (r), is obtained by the following algorithm.<br />

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

Ī C (r) = {(i 1 , . . . , i k ) | (l 1 , . . . , l k ) = Labels(r) and lab(i j ) = l j ,<br />

1 ≤ i j ≤ size(C), 1 ≤ j ≤ k}.<br />

203

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

Saved successfully!

Ooh no, something went wrong!