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.

D. Sburlan<br />

In case of M, the states and the transiti<strong>on</strong>s between them are defined as<br />

follows.<br />

{X 1−, X 2−, X 3−, l 2 ↑}, op<br />

where op = inc if r = 1<br />

and op = skip if r ≠ 1<br />

l 2<br />

{l 1 ↓, l 1 ↑, a 1−, a 2−, a 3−}, skip<br />

l 1 l 1<br />

{X 1−, X 2−, X 3−, l 3 ↑}, op<br />

where op = inc if r = 1<br />

and op = skip if r ≠ 1<br />

l 3<br />

• for the instructi<strong>on</strong> l h : halt ∈ P<br />

l h → λ<br />

a i → a i , 1 ≤ i ≤ 3<br />

In case of M, the states and the transiti<strong>on</strong>s between them are defined as<br />

follows.<br />

l h<br />

{l h ↓, a 1−, a 2−, a 3−}, skip<br />

l H<br />

Here is shown how Φ(Π, M) works. At the beginning of a computati<strong>on</strong> in<br />

the regi<strong>on</strong> 1 of Π there exists the multiset composed by just <strong>on</strong>e object l 0 (that<br />

corresp<strong>on</strong>ds to the label of the first register machine instructi<strong>on</strong>). This object<br />

will be iteratively rewritten during the computati<strong>on</strong> (according with the register<br />

machine program) into the label of an instructi<strong>on</strong>. In any c<strong>on</strong>figurati<strong>on</strong> in a<br />

computati<strong>on</strong> of Π, the number of objects a r corresp<strong>on</strong>ds to the number stored<br />

in register r, 1 ≤ r ≤ 3. Following the register machine definiti<strong>on</strong>, in the initial<br />

c<strong>on</strong>figurati<strong>on</strong> there will be no objects a r , 1 ≤ r ≤ 3, because the register machine<br />

M starts with all registers being empty.<br />

Assume now that the current register machine instructi<strong>on</strong> to be simulated is<br />

l 1 : (add(r), l 2 , l 3 ); then Π is in a c<strong>on</strong>figurati<strong>on</strong> C = l 1 a k1<br />

1 ak2 2 ak3 3 and M is in the<br />

state labeled l 1 . In this c<strong>on</strong>figurati<strong>on</strong>, Π executes the rules l 1 → l 1 and a r → a r ,<br />

for 1 ≤ r ≤ 3. C<strong>on</strong>sequently, the next c<strong>on</strong>figurati<strong>on</strong> is C ′ = l 1 a k1<br />

1 ak2 2 ak3 3 , hence<br />

M passes from state l 1 to state l 1 . Next, Π n<strong>on</strong>-deterministically executes <strong>on</strong>e<br />

of the rules l 1 → l 2 a r and l 1 → l 3 a r (exactly <strong>on</strong>e of them, because there is<br />

<strong>on</strong>ly <strong>on</strong>e object l 1 ), and the rules a r → a r ; in this way the next c<strong>on</strong>figurati<strong>on</strong><br />

will be C ′′ = l 2 a k1<br />

1 ak2 2 ak3 3 a r or C ′′ = l 3 a k1<br />

1 ak2 2 ak3 3 a r where 1 ≤ r ≤ 3. It follows<br />

that M passes from state l 1 to the state l 2 or l 3 , therefore the simulati<strong>on</strong> of the<br />

additi<strong>on</strong> instructi<strong>on</strong> was correctly performed. However, as we will see later <strong>on</strong>,<br />

416

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

Saved successfully!

Ooh no, something went wrong!