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.

2D P col<strong>on</strong>ies<br />

The first rule type, called the evoluti<strong>on</strong> rule, is of the form a → b. It means<br />

that the object a inside the agent is rewritten (evolved) to the object b. The sec<strong>on</strong>d<br />

rule type, called the communicati<strong>on</strong> rule, is of the form c ↔ d. When the<br />

communicati<strong>on</strong> rule is performed, the object c inside the agent and the object<br />

d outside the agent swap their places. Thus, after the executi<strong>on</strong> of the rule, the<br />

object d appears inside the agent and the object c is placed outside the agent.<br />

The third rule type, called moti<strong>on</strong> rule, is of the form matrix 3 × 3 → move<br />

directi<strong>on</strong>. Based <strong>on</strong> the c<strong>on</strong>tents of the neighboring cells, an agent can move <strong>on</strong>e<br />

step to the left, right, up or down.<br />

A program can c<strong>on</strong>tain at most <strong>on</strong>e moti<strong>on</strong> rule. When there is a moti<strong>on</strong> rule<br />

inside a program, there can be no communicati<strong>on</strong> rule inside the same program.<br />

Definiti<strong>on</strong> 1. The 2D P col<strong>on</strong>y is a c<strong>on</strong>struct<br />

Π = (A, e, Env, B 1 , . . . , B k , f), k ≥ 1, where<br />

– A is an alphabet of the col<strong>on</strong>y, its elements are called objects,<br />

– e ∈ A is the basic envir<strong>on</strong>mental object of the col<strong>on</strong>y,<br />

– Env is a pair (m × n, w E ), where m × n, m, n ∈ N is the size of the envir<strong>on</strong>ment<br />

and w E is the initial c<strong>on</strong>tents of envir<strong>on</strong>ment, it is a matrix of size<br />

m × n of multisets of objects over A − {e}.<br />

– B i , 1 ≤ i ≤ n, are agents, each agent is a c<strong>on</strong>struct B i = (O i , P i , [k, l]),<br />

where<br />

• O i is a multiset over A, it determines the initial state (c<strong>on</strong>tents) of the<br />

agent, |O i | = 2,<br />

• P i = {p i,1 , . . . , p i,li } , l ≥ 1, 1 ≤ i ≤ k is a finite set of programs, where<br />

each program c<strong>on</strong>tains exactly 2 rules, which are in <strong>on</strong>e of the following<br />

forms each:<br />

∗ a → b, called the evoluti<strong>on</strong> rule,<br />

∗ c ↔ d, called the communicati<strong>on</strong> rule,<br />

∗ [a i,j ] → s, 0 ≤ i, j ≤ 3, s ∈ {⇐, ⇒, ⇑, ⇓}, called the moti<strong>on</strong> rule;<br />

– f ∈ A is the final object of the col<strong>on</strong>y.<br />

A c<strong>on</strong>figurati<strong>on</strong> of the 2D P col<strong>on</strong>y is given by the state of the envir<strong>on</strong>ment -<br />

matrix of type m × n with multisets of objects over A − {e} as its elements, and<br />

by the state of all agents - pairs of objects from alphabet A and the coordinates<br />

of the agents. An initial c<strong>on</strong>figurati<strong>on</strong> is given by the definiti<strong>on</strong> of the 2D P<br />

col<strong>on</strong>y.<br />

A computati<strong>on</strong>al step c<strong>on</strong>sists of three parts. The first part lies in determining<br />

the applicable set of programs according to the actual c<strong>on</strong>figurati<strong>on</strong> of the P<br />

col<strong>on</strong>y. There are programs bel<strong>on</strong>ging to all agents in this set of programs. In<br />

the sec<strong>on</strong>d part we have to choose <strong>on</strong>e program corresp<strong>on</strong>ding to each agent from<br />

the set of applicable programs. There is no collisi<strong>on</strong> between the communicati<strong>on</strong><br />

rules bel<strong>on</strong>ging to different programs. The third part is the executi<strong>on</strong> of the<br />

chosen programs.<br />

A change of the c<strong>on</strong>figurati<strong>on</strong> is triggered by the executi<strong>on</strong> of programs and<br />

it involves changing the state of the envir<strong>on</strong>ment, c<strong>on</strong>tents and placement of the<br />

agents.<br />

163

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

Saved successfully!

Ooh no, something went wrong!