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.

Observer/interpreter P systems<br />

3 Observati<strong>on</strong> / Interpretati<strong>on</strong><br />

Based <strong>on</strong> the motivati<strong>on</strong> exposed in the Introducti<strong>on</strong>, <strong>on</strong>e can imagine a computati<strong>on</strong>al<br />

device Φ = (Π, M) (called Observer/Interpreter P system) composed<br />

by a pair of systems: a P system Π (called the core system) and a finite state<br />

machine with output M which is able to detect in any c<strong>on</strong>figurati<strong>on</strong> a change<br />

in the multiset of a regi<strong>on</strong> of the core system and which can perform a certain<br />

operati<strong>on</strong> based <strong>on</strong> the observati<strong>on</strong>.<br />

Without any loss of generality and for the simplicity of expositi<strong>on</strong>, we may<br />

assume that the core system Π is a P system with symbol objects and multiset<br />

rewriting rules and which has <strong>on</strong>ly <strong>on</strong>e membrane, that is Π = (O, C, µ =<br />

[ ] 1 , R 1 , w 1 , i 0 = 1) having the comp<strong>on</strong>ents defined as the P system model presented<br />

in Secti<strong>on</strong> 2. Because Π has <strong>on</strong>ly <strong>on</strong>e membrane we can define a c<strong>on</strong>figurati<strong>on</strong><br />

of Π as a multiset w ∈ O ∗ . The initial c<strong>on</strong>figurati<strong>on</strong> is C 0 = w 1 .<br />

Given two c<strong>on</strong>figurati<strong>on</strong>s C 1 and C 2 of Π, we say that C 2 is obtained from C 1<br />

in <strong>on</strong>e transiti<strong>on</strong> step (denoted by C 1 ⊢ C 2 ) by applying the rules from R 1 in a<br />

n<strong>on</strong>deterministic maximal parallel manner and with the competiti<strong>on</strong> <strong>on</strong> objects.<br />

The reflexive and transitive closure of ⊢ is denoted by ⊢ ∗ . The system c<strong>on</strong>tinues<br />

performing parallel steps until there remain no applicable rules; then the system<br />

halts (the underlying computati<strong>on</strong> is a halting <strong>on</strong>e). The number of objects<br />

from O c<strong>on</strong>tained in the output regi<strong>on</strong> i 0 = 1 is the result of the underlying<br />

computati<strong>on</strong> of Π.<br />

Given a multiset M : O → IN then M(a), a ∈ O, represents the multiplicity<br />

of a in M. For an ordered pair (M 1 , M 2 ) of multisets M 1 , M 2 : O → IN, we<br />

denote by a ↑ the case when M 1 (a) < M 2 (a) (which indicates the increasing of<br />

the number of objects a from M 1 to M 2 ), by a ↓ the case when M 1 (a) > M 2 (a)<br />

(which indicates the decreasing of the number of objects a from M 1 to M 2 ), and<br />

finally by a− the case when M 1 (a) = M 2 (a). A (partial) observati<strong>on</strong> of the pair<br />

(M 1 , M 2 ) is a subset of {a ↑| a ∈ O, M 1 (a) < M 2 (a)} ∪ {a ↓| a ∈ O, M 1 (a) ><br />

M 2 (a)} ∪ {a− | a ∈ O, M 1 (a) = M 2 (a)}. C<strong>on</strong>sidering that O = {a 1 , . . . , a k },<br />

then the set of all possible observati<strong>on</strong>s is denoted by<br />

O = {{x 1 , . . . , x k } | (∃) {y 1 , . . . , y k } ⊆ O and<br />

x i ∈ {y i ↑, y i ↓, y i −}, for 1 ≤ i ≤ k} .<br />

The Observer/Interpreter P system represents a finite state machine with<br />

output<br />

M = (Q, O, ∆, δ, λ, q 0 , F, r)<br />

where Q is a finite set of states, O is the set of all possible observati<strong>on</strong>s, q 0 ∈ Q<br />

is the initial state, F ⊆ Q is the set of final states, and r is a data register able<br />

to store an integer (r is initially set to 0). The transiti<strong>on</strong> functi<strong>on</strong> δ : Q × O → Q<br />

defines the functi<strong>on</strong>ing of the machine: if M is in a state q ∈ Q and given an<br />

observati<strong>on</strong> o ∈ O, then M moves to the state δ(q, o). The interpretati<strong>on</strong> functi<strong>on</strong><br />

λ : Q × O → {inc, dec, skip} describes the output acti<strong>on</strong>s performed by M:<br />

411

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

Saved successfully!

Ooh no, something went wrong!