08.01.2013 Views

LNCS 2950 - Aspects of Molecular Computing (Frontmatter Pages)

LNCS 2950 - Aspects of Molecular Computing (Frontmatter Pages)

LNCS 2950 - Aspects of Molecular Computing (Frontmatter Pages)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18 Artiom Alhazov, Carlos Martín-Vide, and Linqiang Pan<br />

7 Solving the Clique Problem<br />

Given a graph G with n vertices and m edges, a clique <strong>of</strong> G is a subset <strong>of</strong> the<br />

vertices such that every vertex is connected to every other vertex by an edge; the<br />

clique problem (denoted by CP) asks whether or not there exists a clique for G<br />

<strong>of</strong> size k, wherekis a given integer less than or equal to n. The clique problem<br />

is an NP-complete problem [1].<br />

For a graph G =(V,E), we define the complementary graph G ′ =(V,E ′ ),<br />

where E ′ = {(vi,vj) �∈ E | vi,vj ∈ V }. In figure 2, an example <strong>of</strong> a graph with<br />

five vertices and five edges is given.<br />

In this section we will solve the clique problem in linear time (3n +2k + 12)<br />

by recognizing P systems with restricted elementary active membranes.<br />

Theorem 3. The clique problem can be solved in linear time with respect to the<br />

number <strong>of</strong> vertices <strong>of</strong> the graph by recognizing P systems with restricted elementary<br />

active membranes.<br />

2<br />

1<br />

5<br />

3 4<br />

3 4<br />

(a) (b)<br />

Figure 2. The original graph (a) and its complementary graph (b).<br />

Pro<strong>of</strong>. Let G =(V,E) be a graph with n vertices and m edges, V = {v1,v2,<br />

··· ,vn}, E = {e1,e2, ··· ,em}. The instance <strong>of</strong> the problem is encoded by a<br />

(multi)set in the alphabet Σ(〈n, k〉) ={pi,j,n+2k+5,ei,j,n+2k+5 | 1 ≤ i, j ≤ n, i �=<br />

j}. The object pi,j,n+2k+5 stands for (vi,vj) ∈ E, while ei,j,n+2k+5 represents<br />

(vi,vj) /∈ E. For given values <strong>of</strong> n and k we construct a recognizing P system<br />

(Π(〈n, k〉),Σ(〈n, k〉),i(〈n, k〉)) with i(〈n, k〉) =2<br />

Π(〈n, k〉) =(O(〈n, k〉),H,µ,w1,w2,R),<br />

where<br />

O(〈n, k〉) ={ai,di,ti,fi,yi,zi | 1 ≤ i ≤ n}<br />

∪{hi,h ′ i | 0 ≤ i ≤ k}∪{gi | 0 ≤ i ≤ n +3}<br />

∪{ei,j,l | 1 ≤ i ≤ n +2, 1 ≤ j ≤ n +2, 0 ≤ l ≤ n +2k +5}<br />

∪{ci | 0 ≤ i ≤ 3n +2k +11}∪{a, b, g, p, q, u, yes, no},<br />

H = {1, 2},<br />

µ =[ 1 [ 2 ] 0 0<br />

2 ] 1 ,<br />

w1 = c3n+2k+11,<br />

w2 = a1a2 ···and1,<br />

2<br />

1<br />

5

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

Saved successfully!

Ooh no, something went wrong!