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.

Using a kernel P system to solve the 3-Col problem<br />

The format and the types of rules used by kP systems will be given later, in<br />

Secti<strong>on</strong> 2.1.<br />

Definiti<strong>on</strong> 2. A kernel P system of degree n is a tuple<br />

kΠ = (A, L, IO, µ, C 1 , . . . , C n , i 0 ),<br />

where A and L are, as in Definiti<strong>on</strong> 1, the alphabet and the set of labels,<br />

respectively; IO is a multiset of objects from A, called envir<strong>on</strong>ment; µ defines the<br />

membrane structure, which is an undirected graph, (V, E), where V are vertices,<br />

V ⊆ L (the nodes are labels of these compartments), and E edges; C 1 , . . . , C n<br />

are the n compartments of the system - each compartment is specified according<br />

to Definiti<strong>on</strong> 1; the labels of the compartments are from L and initial multisets<br />

are over A; i o is the output compartment where the result is obtained.<br />

2.1 kP System Rules<br />

Before proceeding we introduce the notati<strong>on</strong> used. We c<strong>on</strong>sider multisets over A∪<br />

Ā, where A and Ā are interpreted as promoters and inhibitors, respectively;<br />

Ā = {ā|a ∈ A}. For a multiset w over A ∪ Ā and an element a from the same<br />

set we denote by |w| a the number of a ′ s occurring in w. We also c<strong>on</strong>sider the<br />

set of well-known relati<strong>on</strong>al operators Rel = {}. For a multiset<br />

w = a n1<br />

1 . . . an k<br />

k<br />

, a j ∈ A ∪ Ā, 1 ≤ j ≤ k, and α j ∈ Rel, 1 ≤ j ≤ k, we introduce<br />

the following notati<strong>on</strong> w ′ = α 1 a n1<br />

1 . . . α ka n k<br />

k<br />

; a j is not necessarily unique in w or<br />

w ′ ; w ′ is called multiset over A ∪ Ā with relati<strong>on</strong>al operators over Rel.<br />

Each rule r has the form r {g}, denoting that r is applicable when g is<br />

evaluated to true. The guards are c<strong>on</strong>structed according to the following criteria<br />

(let g be a guard and pr a predicate over the set of guards):<br />

– g = ɛ means pr(ɛ) is always true, i.e., no c<strong>on</strong>diti<strong>on</strong> is associated with the<br />

rule r; this guard is almost always ignored from the syntax of the rule;<br />

– g is a multiset over A ∪ Ā with relati<strong>on</strong>al operators over Rel, i.e., g =<br />

α 1 a n1<br />

1 . . . α ka n k<br />

k<br />

, then pr(w) is true iff for z, the current multiset of C i, we<br />

have, for every 1 ≤ j ≤ k, either (i) if a j ∈ A then |z| aj α j n j holds, or (ii)<br />

if a j ∈ Ā, i.e., a j = ā, a ∈ A, then |z| aj α j n j does not hold;<br />

– g = w 1 | . . . |w p , i.e., g is a finite disjuncti<strong>on</strong> of multisets over A ∪ Ā with<br />

relati<strong>on</strong>al operators over Rel, then pr(w 1 | . . . |w p ) is true iff there exists j,<br />

1 ≤ j ≤ p, such that pr(w j ) is true.<br />

We denote by F E(A ∪ Ā), from Finite regular Expressi<strong>on</strong>s over A ∪ Ā with<br />

relati<strong>on</strong>al operators, the set of expressi<strong>on</strong>s defined above. When a compound<br />

guard, cg, referring to compartments l i and l j is used, its generic format is<br />

cg = l i .g 1 op l j .g 2 , where g 1 , g 2 are finite expressi<strong>on</strong>s referring to compartments<br />

l i and l j , respectively; then, obviously, pr(cg) = pr(g 1 ) op pr(g 2 ), op ∈ {&, |},<br />

where & stands for and and | for or, meaning that either both guards are true<br />

or at least <strong>on</strong>e is true. Simpler forms, where <strong>on</strong>e of the operands is missing, are<br />

also allowed as well as cg = ɛ. A compound guard defines a Boolean c<strong>on</strong>diti<strong>on</strong><br />

245

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

Saved successfully!

Ooh no, something went wrong!