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.

L. Cienciala, L. Ciencialová, M. Perdek<br />

These c<strong>on</strong>siderati<strong>on</strong>s have inspired us to introduce a new model of P col<strong>on</strong>ies<br />

that are placed inside a 2D grid of square cells. The agents are located in this<br />

grid and their view is limited to the cells that immediately surround them. Based<br />

<strong>on</strong> the c<strong>on</strong>tents of these cells, the agents decide their future locati<strong>on</strong>s.<br />

In formulating the rules we draw up<strong>on</strong> the original model of the P col<strong>on</strong>ies.<br />

The agents will use the rewriting - evoluti<strong>on</strong> - rules and the communicati<strong>on</strong><br />

rules. A communicati<strong>on</strong> rule will be applied at a place where the agent using it<br />

is located.<br />

The new rule we add is a movement rule. The c<strong>on</strong>diti<strong>on</strong> for the movement of<br />

an agent is finding specific objects in specific locati<strong>on</strong>s in the envir<strong>on</strong>ment. This<br />

is specified by a matrix with elements - objects. The agent is looking for at most<br />

<strong>on</strong>e object in every surrounding cell. If the c<strong>on</strong>diti<strong>on</strong> is fulfilled then the agent<br />

moves <strong>on</strong>e cell up, down, left or right.<br />

According to the original model we assemble the rules into programs. Because<br />

every agent c<strong>on</strong>tains two objects the programs are formed from two rules.<br />

The program can c<strong>on</strong>tain at most <strong>on</strong>e movement rule. To achieve the greatest<br />

simplicity in agent behavior, we set another c<strong>on</strong>diti<strong>on</strong>. If the agent will move, it<br />

cannot communicate with the envir<strong>on</strong>ment. So if the program c<strong>on</strong>tains a movement<br />

rule, then the sec<strong>on</strong>d rule is the rewriting rule.<br />

2 Definiti<strong>on</strong>s<br />

Throughout the paper we assume that the reader is familiar with the basics<br />

of the formal language theory.<br />

We use NRE to denote the family of the recursively enumerable sets of<br />

natural numbers. Let Σ be the alphabet. Let Σ ∗ be the set of all words over Σ<br />

(including the empty word ε). We denote the length of the word w ∈ Σ ∗ by |w|<br />

and the number of occurrences of the symbol a ∈ Σ in w by |w| a<br />

.<br />

A multiset of objects M is a pair M = (V, f), where V is an arbitrary (not<br />

necessarily finite) set of objects and f is a mapping f : V → N; f assigns<br />

to each object in V its multiplicity in M. The set of all multisets with the set<br />

of objects V is denoted by V ◦ . The set V ′ is called the support of M and is<br />

denoted by supp(M) if for all x ∈ V ′ f(x) ≠ 0 holds. The cardinality of M,<br />

denoted by |M|, is defined by |M| = ∑ a∈V<br />

f(a). Each multiset of objects M<br />

with the set of objects V ′ = {a 1 , . . . a n } can be represented as a string w over<br />

alphabet V ′ , where |w| ai<br />

= f(a i ); 1 ≤ i ≤ n. Obviously, all words obtained from<br />

w by permuting the letters represent the same multiset M. The ε represents the<br />

empty multiset.<br />

3 2D P Col<strong>on</strong>ies<br />

We briefly summarize the noti<strong>on</strong> of 2D P col<strong>on</strong>ies. A P col<strong>on</strong>y c<strong>on</strong>sists of agents<br />

and an envir<strong>on</strong>ment. Both the agents and the envir<strong>on</strong>ment c<strong>on</strong>tain objects. With<br />

each agent a set of programs is associated. There are two types of rules in the programs.<br />

162

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

Saved successfully!

Ooh no, something went wrong!