scieee AI-readable full text Open interactive document viewer

A Uniform Solution to Common Algorithmic Problem by Tissue P Systems with Cell Division

Niu,Yunyun; Pan, Linqiang; Pérez Jiménez, Mario de Jesús

Abstract

Common algorithmic problem is an optimization problem, which has the nice property that several other NP-complete problems can be reduced to it in linear time. A tissue P system with cell division is a computing model which has two basic characters: intercellular communication and the ability of cell division. The ability of cell division allows us to obtain an exponential amount of cells in linear time and to design cellular solutions to computationally hard problems in polynomial time. We here present an effective solution to the common algorithmic decision problem using a family of recognizer tissue P systems with cell division.

Full text

A Uniform Solution to Common Algorithmic Problem by Tissue P Systems with Cell Division Yunyun Niu, Linqiang Pan Key Laboratory on Image Processing and Intelligent Control Department of Control Science and Engineering Huazhong University of Science and Technology Wuhan 430074, Hubei, China [email protected], [email protected] (corresponding author) Mario J. P´erez-Jim´enez Research Group on Natural Computing Department of Computer Science and Artificial Intelligence University of Sevilla Sevilla 41012, Spain [email protected] Abstract—Common algorithmic problem is an optimization problem, which has the nice property that several other NP- complete problems can be reduced to it in linear time. A tissue P system with cell division is a computing model which has two basic characters: intercellular communication and the ability of cell division. The ability of cell division allows us to obtain an exponential amount of cells in linear time and to design cellular solutions to computationally hard problems in polynomial time. We here present an effective solution to the common algorithmic decision problem using a family of recognizer tissue P systems with cell division. Keywords-membrane computing; tissue P system; cell division; common algorithmic problem I. INTRODUCTION Membrane computing is a new branch of natural computing, which is inspired by the structure and the functioning of living cells [1], as well as the organization of cells in tissues, organs, and other higher order structures. The devices of this model, called P systems, provide distributed parallel and nondeterministic computing models. Since being introduced by Gh. P˘ aun in 1998, it has received important attention from the scientific community. As computer scientists, biologists, formal linguists and complexity theoreticians plug into this area, it has definitely become a rich and exciting realm of cross-disciplinary research. Please refer to [2] for an introduction of membrane computing, refer to [3] for the most recent overview of the field of membrane computing, and refer to [4] for further bibliography. In last years, many different classes of P systems have been investigated. The most studied variants are the cell-like models of P systems, where membranes are hierarchically arranged in a tree-like structure. Most of them are computationally universal (i.e., able to compute whatever a Turing machine can do), as well as computationally efficient (i.e., able to trade space for time and solve in this way presumably intractable problems in a feasible time) (e.g., [5], [6], [7], [8]). Another interesting class of P system is tissue P system [9], where instead of considering a hierarchical arrangement, membranes are placed in the nodes of a graph. Tissue P systems are abstracted from the intercellular communication and the cooperation between cells in tissues [10]. Here, we focus on a variant of tissue P systems: tissue P system with cell division [11]. The common algorithmic problem (CAP) [12] is an optimization problem. It can be defined as follows. Let Sbe a finite set and Fbe a family of subsets of S. Find the cardinality of a maximal subset of Swhich does not include any set belonging to F. The sets in Fare called forbidden sets. Several other NP–complete problems can be reduced to it in linear time (using a logarithmic bounded space), such as independent set problem, vertex cover problem, maximum clique problem, satisfiability problem, Hamiltonian path problem and tripartite matching problem [12], [13], so we can say that they are subproblems of CAP in the sense of linear time reduction. In [13], an effective solution to the CAP was proposed using a family of recognizer P systems with active membranes. However, there is no known way to transform a recognizer P system with active membranes to a tissue P system. Tissue P systems with cell division can solve some NP-complete problems in polynomial time, e.g., the subset sum problem [14], the partition problem [15], and the 3–coloring problem [7]. But it remains open how to compute the reduction of an NP problem to another NP–complete problem by P systems. So, in this work, we give a direct solution to the CAP in framework of tissue P systems with cell division. The paper is organized as follows. Some preliminaries are recalled in section II including the definition of recognizer tissue P systems with cell division. A polynomial–time solution to CAP is presented in section III. Some discussion is presented in section IV. II. PRELIMINARIES An alphabet Σis a non empty set, whose elements are called symbols. An ordered sequence of symbols is a string. The number of symbols in a string uis the length of the string, and it is denoted by |u|. As usual, the empty string (with length 0) will be denoted by λ. The set of strings of length nbuilt with symbols from the alphabet Σis denoted by Σnand Σ∗=∪n≥0Σn.Alanguage over Σis a subset from Σ∗. Amultiset mover a set Ais a pair (A, f), where fis a map from Ato the set of natural numbers N.Ifm=(A, f) is a multiset then its support is defined as supp(m)={x∈ A|f(x)>0}and its size is defined as x∈Af(x). A multiset is empty (resp. finite) if its support is the empty set (resp. finite). If m=(A, f)is a finite multiset over A, and supp(m)={a1,...,a k}, then it will be denoted as m= {{af(a1) 1,...,a f(ak) k}}. That is, superscripts indicate the multiplicity of each element, and if f(x)=0for any x∈A, then this element is omitted. If m1=(A, f)and m2=(A, g)are multisets over A, then the union of m1and m2is defined as m1m2=(A, h), where h=f+g. Arecognizer tissue P system with cell division of degree q≥1is a tuple of the form Π=(Γ,Σ,Ω,w 1,...,w q,R,i in,i out),where: •q≥1(the initial degree of the system; the system contains qcells, labeled with 1,2,...,q; all these qcells are placed in the environment; the environment is labeled with 0); •Γis the working alphabet, which contains two distinguished objects yes and no, at least one copy of them occurring in some initial multisets w1, ..., wq, but not occurring in Ω; •Σis an input alphabet strictly contained in Γ; •Ω⊆Γis the set of objects occurring in the environment, each one in arbitrarily many copies; •w1,...,w qare strings over Γ, describing the multisets of objects located in the cells of the system at the beginning of the computation; •Ris a finite set of rules of the following forms: (a)Communication rules: (i, u/v, j), for i, j ∈{0,1,2, ...,q},i=j, u, v ∈Γ∗(|u|+|v|is called the length of the communication rules (i, u/v, j)). (b)Division rules: [a]i→[b]i[ci], where i∈{1,2, ...,q},a∈Γand b, c ∈Γ∪{λ}. •iin ∈{1,...,q}is the input cell; •iout ∈{0,1,...,q}indicates the output region, where iout =0denotes that the output region is the environment; All computations halt (that is, they always reach a configuration where no further rules can be applied). During a computation of Π, either the object yes or the object no (but not both) must be released into the environment, and only in the last step of the computation. When a division rules [a]i→[b]i[c]iis applied, all the objects in the original cells are replicated and copies of them are placed in each of the new cells, with the exception of the objects a, which is replaced by b∈Γ∪{λ}in the first new cell and by c∈Γ∪{λ}in the second one. When a rules (i, u/v, j)is applied, the objects of the multiset represented by uare sent from region ito region jand simultaneously the objects of the multiset vare sent from region jto region i. For a cell in the system Π,itis possible to have more than one applicable communication rules in a step. There applicable communication rules are used in non-deterministic maximally parallel manner (the system non-deterministically chooses and applies a multiset of communication rules that is maximal, no further rule can be added). In general, the rules of a system as above are used in the non-deterministic maximally parallel manner. In each step, all cells which can evolve must evolve in a maximally parallel way. This way of applying rules has only one restriction: when a cell is divided, the division rule is the only one which is applied for that cell in that step; the objects inside that cell do not evolve by means of communication rules. Their labels precisely identify the rules which can be applied to them. A configuration of Πat an instant tis described by the multisets of objects over Γassociated with all the cells present in the system at that moment, and the multiset over Ωassociated with the environment at the instant t. All computations start from the initial configuration and proceed as defined above. A computation Cis called an accepting computation (respectively, rejecting computation) if the object yes (respectively, no) appears in the environment associated to the corresponding halting configuration of C, and only in the last step of the computation. Definition 2.1: Let X=(IX,θ X)be a decision problem, where IXis a language over a finite alphabet (whose elements are called instances) and θXis a total boolean function over IX(that is, a predicate). The decision problem Xis solvable in polynomial time by a family Π={Π(n)|n∈N}of recognizer tissue P systems with cell division if the following holds: •The family Πis polynomially uniform by Turing machines, that is, there exists a deterministic Turing machine working in polynomial time which constructs the system Π(n)from n∈N. •There exists a pair (cod, s)of polynomial-time computable functions over IXsuch that: −for each instance u∈IX,s(u)is a natural number and cod(u)is an input multiset of the system Π(s(u)); −the family Πis polynomially bounded with regard to (X,cod,s), that is, there exists a polynomial function p, such that for each u∈IXevery computation of Π(s(u)) with input cod(u)is halting and, moreover, it performs at most p(|u|)steps; −the family Πis sound with regard to (X, cod, s), that is, for each u∈IX, if there exists an accepting computation of Π(s(u)) with input cod(u), then θX(u)=1; −the family Πis complete with regard to (X, cod,s), that is, for each u∈IX,ifθX(u)=1, then every computation of Π(s(u)) with input cod(u)is an accepting one. In the above definition we have imposed to every P system Π(n)to be confluent, in the following sense: every compu- tation of a system with the same input multiset must always give the same answer. We denote by PMCTDC the set of all decision problems which can be solved by means of recognizer tissue P systems with cell division in polynomial time. III. A SOLUTION FOR COMMON ALGORITHMIC DECISION PROBLEM The common algorithm decision problem (CADP) can be defined as follows. Given Sa finite set, Fa family of subsets of S, and k∈N, we ask if there exists a subset Aof Ssuch that |A|≥k, and which does not include any set belonging to F. The sets in Fare called forbidden sets. We address the solution of this problem via a brute force algorithm, in the framework of recognizer tissue P systems with cell division. Our strategy will consist in the following phases: •Generation Stage: The initial cell with label 2 is divided into two new cells; and the division is iterated until we have all possible subsets to the problem (one subset of Sfor each membrane with label 2). Simultaneously, in the membrane with label 1 there is a counter, and it will determine the moment in which the checking stage starts. •Checking Stage: The system checks whether or not there exists a subset Aof Ssuch that Adoes not include any forbidden set in the family Fand |A|≥k. •Output Stage: The system sends to the environment the right answer according to the results of the previous stage. Let us use a tuple u=({s1,···,s n},(B1,···,B m),k)to represent an instance of the problem, where {s1,···,s n}is a finite set S,Bi,1≤i≤mare forbidden sets, and kis the constant. The input of instant ucan be defined as follows: cod(u)={si,j |sj∈Bi}. Let us consider the polynomial time computable function between N3and N,n, m, k=n, m,k, induced by the pair function n, m=((n+m)(n+m+1)/2)+ n. We shall construct a family Π={Π(i)|i∈N}such that each system Π(n, m, k)will solve all instances of CADP with given size paraments: the size nof a finite set S, the size mof the family Fof forbidden sets, and target subset size k. For each (n, m, k)∈N3, Π(n, m, k)=(Γ(n, m, k),Σ(n, m, k),Ω(n, m, k),w 1, w2,R(n, m, k),i in,i out), with the following components: •Γ(n, m, k)=Σ∪{aj,T j,F j|1≤j≤n} ∪{ri|1≤i≤m}∪{bi|1≤i≤2n+m+1} ∪{Fi,j |1≤i≤m, 1≤j≤n} ∪{di|1≤i≤2n+mn +2m+k+1} ∪{ei|1≤i≤2n+mn +2m+k+3} ∪{ci|1≤i≤n+1}∪{f,g,yes,no}. •Σ(n, m, k)={si,j |1≤i≤m, 1≤j≤n}. •Ω(n, m, k)=Γ(n, m, k)−{yes,no}. •w1={{b1,c 1,d 1,e 1,g, yes,no}}. •w2={{f,a1,a 2,···,a n}}. •R(n, m, k)is the set of rules: 1) Division rule: r1,j ≡[aj]2→[Tj]2[Fj]2, for 1≤j≤n. 2) Communication rules: r2,i ≡(1,b i/b2 i+1,0), for 1≤i≤n; r3,i ≡(1,c i/c2 i+1,0), for 1≤i≤n; r4,i ≡(1,d i/d2 i+1,0), for 1≤i≤n; r5,i ≡(1,e i/ei+1,0), for 1≤i≤2n+2m +mn +2; r6≡(1,b n+1cn+1dn+1/f, 2); r7,j ≡(2,c n+1Fj/cn+1F1,j,0), for 1≤j≤n; r8,ij ≡(2,F i,j/fjFi+1,j ,0), for 1≤i≤m, 1≤j≤n; r9,i ≡(2,b i/bi+1,0), for n+1≤i≤2n+m; r10,i ≡(2,d i/di+1,0), for n+1≤i≤2n+m +mn; r11,ij ≡(2,b 2n+m+1fjsij/b2n+m+1ri,0), for 1≤i≤m,1≤j≤n; r12,i ≡(2,d 2n+mn+m+iri/d2n+mn+m+i+1,0), for 1≤i≤m; r13,ij ≡(2,d 2n+mn+2m+iTj/d2n+mn+2m+i+1,0), for 1≤i≤k,1≤j≤n; r14 ≡(2,d 2n+mn+2m+k+1/g yes,1); r15 ≡(2,yes/λ, 0); r16 ≡(1,e 2n+mn+2m+k+3 gno/λ, 2); r17 ≡(2,no/λ, 0). •iin =2is the input cell. •iout =0is the output region (i.e., the environment). A. An Overview of a Computation First of all we define a polynomial encoding for the CADP in Π. Let u=({s1,···,s n},(B1,···,B m),k)be an instance of the CADP. Let the size mapping be s(u)=n, m, kand the encoding of instance be cod(u)={si,j |sj∈Bi}, for a given CADP-instance u=({s1,···,s n},(B1,···,B m),k). Next we informally describe how the system Π(s(u)) with input cod(u)works. Let us start with the generation stage. In cells with label 2, the division rules are applied. Cells with label 2 is repeatedly divided, each time expanding one object aj, corresponding to sjin the finite set S, into Tjand Fj, corresponding to the existence or absence of sjin certain subset. In this way, after nsteps we get 2ncells with label 2, each one respects a subset of S. The object fis duplicated, hence a copy of it will appear in each cell. In parallel with the above operation of dividing cells with label 2, the counters: bi,c i,d i,e ifrom cell with label 1 grow their subscripts. In each step, the number of copies of objects of the first three types is doubled, hence after nsteps we get 2ncopies of bn+1,cn+1, and dn+1 in cell 1. Objects biare used to check whether a forbidden set Biis not included in the corresponding subset A, objects ciare used to multiply the number of copies of fj, objects diare used to check whether there exists at least one subset Asuch that A does not include any forbidden set Bifrom the family Fand |A|≥k. The object eiwill be used to produce the object no, if this will be the case, in the end of the computation. The checking stage starts when the generation stage is finished after nsteps. Note that cells with label 2 cannot divide any more, because the objects ajwere exhausted. At this moment, the content of the cell with label 1 is {{b2n n+1,c 2n n+1,d 2n n+1,e n+1,g,yes,no}}. In the step n+1, the counters bn+1,cn+1,dn+1 are brought into cells with label 2, in exchange of fby applying rule r6. Because we have 2ncopies of each object of these types and 2ncells with label 2, each one containing exactly one copy of f, due to the maximality of the parallelism of using the rules, each cell 2 gets precisely one copy of each of bn+1,c n+1,d n+1. Recall that Tjrepresents that sjis in the corresponding subset, while Fjrepresents that sjis not in the corresponding subset. In the presence of cn+1, the object Fjintroduces the object F1,j. This phase needs at most nsteps, because only one copy of cn+1 is available in each cell with label 2. Then further msteps are necessary for F1,j to grow its first subscript. In this way, mcopies of fjare introduced (Object fjrepresents element sjfrom Sis not in the corresponding subset A.In order to check which forbidden sets are not included in A,it is possible to need one copy of fjfor each forbidden set). The counters biand diincrease their subscripts, until reaching the value 2n+m+1. In parallel, object eiincreases its subscript to 2n+m+2in cell with label 1. In the presence of b2n+m+1, we apply the rules r11,ij to check which forbidden sets are not included in the corresponding subset of S. The objects rirepresents that the forbidden set Biis not included in the corresponding subset of S. It takes at most mn steps, because there is only one copy of b2n+m+1 in each cell with label 2. After step 2n+m+mn +1, the rule r12,i is used to check whether there exists a subset A which does not include any forbidden set. If and only if it is positive, the subscript of diin the corresponding cell with label 2 grows to 2n+2m+mn +1. After step 2n+2m+mn +1, in the cell with label 2 whose corresponding subset of Sdoes not include any forbidden set, the rule r13,ij is used to check whether the cardinality of the corresponding subset is not less than k. If and only if it is still positive, the subscript of diin the corresponding cell with label 2 grows to 2n+2m+mn+k+1. When the checking stage is done, the subscript of object ei in cell with label 1 grows to 2n+2m+mn +k+2. The output stage starts from step 2n+2m+mn +k+2. –Affirmative answer: If there exists at least one subset of set Swhich does not include any forbidden set, and its cardinality is not less than k, there is an object d2n+2m+mn+k+1 in the corresponding cell with label 2 as described above. One of cells with label 2 containing object d2n+2m+mn+k+1 gets the objects yes and gin exchange of d2n+2m+mn+k+1 by the rule r14. In the next step, the object yes in cell 2 leaves the system by the rule r15, signaling the fact that there exists one subset Aof S such that |A|≥k, and Adoes not include any forbidden set from the family F. At that step, the cell with label 1 contains the object e2n+2m+mn+k+3 but no the object g. The computation halts at step 2n+2m+mn +k+3. –Negative answer: In this case, the subscript of counter ei reaches 2n+2m+mn +k+3and the object gis still in the cell with label 1. The object no can be moved to the environment by the rules r16 and r17, signaling that there is no subset Aof Ssuch that |A|≥k, and Adoes not include any forbidden set from the family F. The computation finishes at step 2n+2m+mn +k+4. B. Main Results From the overview of a computation in section III-A, we can find that all computations halt in a polynomial time, and that either an object yes or an object no is sent out exactly in the last step of the computation; that is, the family Πis polynomially bounded, sound and complete. So, in order to show that the family Πbuilt above solves QAP in a polynomial time according to Definition 2.1, we just need to show that the family Πis polynomially uniform by Turing machines. It is easy to check that the rules of a system Π(n, m, k) of the family are defined recursively from the values n, m and k. Besides, the necessary resources to build an element of the family are of a polynomial order, as shown below: •Size of the alphabet: 4mn+10n+6m+2k+10 ∈Θ(mn). •Initial number of cells: 2∈Θ(1). •Initial number of objects: n+8∈Θ(n). •Number of rules: 4mn +8n+5m+k+7∈Θ(mn). •Maximal length of a rule: 5∈Θ(1). Therefore, a deterministic Turing machine can build Π(n, m, k)in a polynomial time with respect to n,mand k. From the discussion in the previous sections and according to the definition of solvability given in Section II, we have the following result: Theorem 3.1: CADP ∈PMCTDC. Corollary 3.1: NP ∪co −NP ⊆PMCTDC. Proof: It suffices to make the following observations: the CADP is NP–complete, CADP ∈PMCTDC and this complexity class is closed under polynomial-time reduction and under complement. IV. CONCLUSIONS In this work, a family of recognizer tissue P system with cell division is designed to solve the CADP. Although the algorithm proposed here is theoretically proved to be efficient to the CADP, the real implementation of such algorithms is a great challenge. In addition, it is open and of great interest how to build a biochemical computer for computing. A solution to the CADP P systems with active membranes was proposed in [13], where four types of rules were applied in those systems: object evolution rules, communication rules, dissolving rules and division rules for elementary membranes; moreover, three charges +,−,0are used to control the application of these types of rules. The solution to the CADP given in this work is based on tissue P system with cell division, where two kinds of rules are used: communication rules and division rules. The systems constructed in this work are elegant in the sense of less kinds of rules and without charges. ACKNOWLEDGMENT The authors wish to acknowledge the support of the project TIN2009-13192 of the Ministerio de Ciencia e Innovaci´ on of Spain, cofinanced by FEDER funds, and the “Proyecto de Excelencia con Investigador de Reconocida Val´ ıa” of the Junta de Andaluc´ ıa under grant P08-TIC04200. The first two authors are also supported by National Natural Science Foundation of China (61033003 and 30870826), Ph.D. Programs Foundation of Ministry of Education of China (20100142110072), Fundamental Research Funds for the Central Universities (2010ZD001), and Natural Science Foundation of Hubei Province (2008CDB113 and 2008CDB180). REFERENCES [1] Gh. P˘ aun, “Computing with membranes,” Journal of Computer and System Sciences, vol. 61, no. 1, pp. 108–143, 2000. [2] Gh. P˘ aun, Membrane Computing. An Introduction. Springer–Verlag, Berlin, 2002. [3] Gh. P˘ aun, G. Rozenberg, and A. Salomaa, eds.: The Oxford Handbook of Membrane Computing, Oxford University Press, 2010. [4] P systems web page http://ppage.psystems.eu/ [5] A. Alhazov, C. Mart´ ın Vide, and L. Pan, “Solving a PSPACE-complete problem by P systems with restricted active membranes,” Fundamenta Informaticae, vol. 58, no. 2, pp. 67–77, 2003. [6] A. Alhazov, and M.J. P´ erez-Jim´ enez, “Uniform solution of QSAT using polarizationless active membranes,” Lecture Notes in Computer Science, vol. 4664, pp. 122–133, 2007. [7] D. D´ ıaz-Pernil, M. Guti´ errez-Naranjo, M.J. P´ erez-Jim´ enez, and A. Riscos-N´ u˜ nez, “A linear-time tissue P system based solution for the 3-coloring problem,” Electronic Notes in Theoretical Computer Science, vol. 171, pp. 81–93, 2007. [8] L. Pan, and C. Mart´ ın Vide, “Solving multidimensional 0-1 knapsack problem by P systems with input and active membranes,” Journal of Parallel and Distributed Computing, vol. 65, pp. 1578–1584, 2005. [9] C. Mart´ ın Vide, J. Pazos, Gh. P˘ aun, and A. Rodr´ ıguez Pat´ on, “A new class of symbolic abstract neural nets: tissue P systems,” Lecture Notes in Computer Science, vol. 2387, pp. 290–299, 2002. [10] C. Mart´ ın Vide, J. Pazos, Gh. P˘ aun, and A. Rodr´ ıguez Pat´ on, “Tissue P systems,” Theoretical Computer Science, vol. 296, pp. 295–326, 2003. [11] Gh. P˘ aun, M.J. P´ erez-Jim´ enez, and A. Riscos-N´ u˜ nez, “Tissue P systems with cell division,” International Journal of Computers, Communications and Control, vol. 3, no. 3, pp. 295–303, 2008. [12] T. Head, M. Yamamura, and S. Gal, “Aqueous computing: writing on molecules,” Proceedings of the Congress on Evolutionary Computation 1999, IEEE Service Center, Piscataway, NJ, pp. 1006–1010, 1999. [13] M.J. P´ erez-Jim´ enez, and F.J.R. Campero, “Attacking the common algorithmic problem by recognizer P system,” Lecture Notes in Computer Science, vol. 3354, pp. 304–315, 2005. [14] D. D´ ıaz-Pernil, M.A. Guti´ errez-Naranjo, M.J. P´ erez-Jim´ enez, and A. Riscos-N´ u˜ nez, “Solving subset sum in linear time by using tissue P systems with cell division,” In Proceedings of IWINAC 2007, LNCS 4527, Springer, pp. 170–179, 2007. [15] D. D´ ıaz-Pernil, M.A. Guti´ errez-Naranjo, M.J. P´ erez-Jim´ enez, and A. Riscos-N´ u˜ nez, “Solving the partition problem by using tissue-like P systems with cell division,” In Proceedings of 6th Brainstorming Week on Membrane Computing, Report RGNC 01/08, Fenix Editoria, pp. 124– 134, 2008. [16] M.A. Guti´ errez-Naranjo, M.J. P´ erez-Jim´ enez, A. Riscos-N´ u˜ nez, and F.J. Romero-Campero, “On the power of dissolution in P systems with active membranes,” Lecture Notes in Computer Science, vol. 3580, pp. 224– 240, 2006.