scieee AI-readable full text Open interactive document viewer

Computational efficiency and universality of timed P systems with membrane creation

Song, Bosheng; Pérez Jiménez, Mario de Jesús; Pan, Linqiang

Abstract

P systems are a class of distributed parallel computing models inspired by the structure and the functioning of a living cell, where the execution of each rule is completed in exactly one time unit (a global clock is assumed). How-ever, in living cells, the execution time of different biological processes is difficult to know precisely and very sensi-tive to environmental factors that might be hard to control. Inspired from this biological motivation, in this work, timed polarization P systems with membrane creation are intro-duced and their computational efficiency and universality are investigated. Specifically, we give a time-free semi-uniform solution to the SAT problem by a family of P systems with membrane creation in the sense that the correctness of the solution is irrelevant to the times associated with the involved rules. We also prove that timefree P systems with membrane creation are computationally universal.

Full text

Computational efficiency and universality of timed P systems with membrane creation Bosheng Song1 · Mario J. Pérez-Jiménez2 · Linqiang Pan1 Abstract P systems are a class of distributed parallel computing models inspired by the structure and the functioning of a living cell, where the execution of each rule is completed in exactly one time unit (a global clock is assumed). How-ever, in living cells, the execution time of different biological processes is difficult to know precisely and very sensi-tive to environmental factors that might be hard to control. Inspired from this biological motivation, in this work, timed polarization P systems with membrane creation are intro-duced and their computational efficiency and universality are investigated. Specifically, we give a time-free semi-uniform solution to the SAT problem by a family of P systems with membrane creation in the sense that the correctness of the solution is irrelevant to the times associated with the involved rules. We also prove that timefree P systems with membrane creation are computationally universal. Keywords Psystem · Membrane creation · Time-free solution · SAT problem · Universality BLinqiang Pan [email protected] 1Key Laboratory of Image Information Processing and Intelligent Control, School of Automation, Huazhong University of Science and Technology, Wuhan 430074, Hubei, China 2Research Group on Natural Computing, Department of Computer Science and Artificial Intelligence, University of Sevilla, Avda. Reina Mercedes s/n, 41012 Sevilla, Spain 1 Introduction Membrane computing is a vivid branch of natural computing, which was initiated by P˘aun (2000). The aim of membrane computing is focused to abstract computing concepts from the structure and the functioning of living cells and the ways in which cells are organized in tissues and higher order biological structures. All classes of computing devices considered in the framework of membrane computing are usually called Psystems, which are distributed and parallel models.Inrecentyears,manyvariantsofPsystemshavebeen proposed (Pan and P˘aun 2010;Pan et al. 2011;Zhang et al. 2012). For general information in membrane computing, one may consult P˘aun (2000) and P˘aun et al. (2010), and for the current developments in the area of membrane computing, please refer to the P systems website http://ppage.psystems. eu. The present work deals with a class of cell-like P systems, called P systems with membrane creation, introduced in Mutyam and Krithivasan (2001), inspired by the fact that when a compartment becomes too large, it often happens that new membranes appear inside it, more or less spontaneously or during biological evolution (P˘aun 2000). P systems with membrane creation have similar types of rules as P systems with active membranes (P˘aun 2001) except that membrane division rules are substituted with membrane creation rules. A membrane creation rule has no replication of objectsinto thenewmembrane,which becomesa daughterof the original membrane (the depth of the membrane structure increases). Usually, the rules of P systems with membrane creation are applied in a non-deterministic maximally parallel way, that is, in one step, one object of a membrane is used by at most one rule (chosen in a non-deterministic way), but any object which can evolve by one rule of any form must evolve. maa (1997). Here, we directly introduce some notations and basic definitions used in this work. For an alphabet V,V∗denotes the set of all strings over V (ordered finite sequences of elements in V), with the empty string denoted by λ, and the set of all nonempty strings over Vis denoted by V+. By Nwe denote the set of non-negative integers. A multiset over a finite alphabet V={a1,a2,...,an}is a mapping m:V→N. The support of a multiset mover Vis the set of elements x∈Vsuch that m(x)>0. A multiset is finite if its support is a finite set. We denote by Mf(V)the set of all finite multisets over V. Fora family FL oflanguages (overa given alphabet V),we denote by PsFL the family of Parikh images of languages in FL. By PsRE we denote the family of recursively enumerable sets of vectors of natural numbers; this is equal to the family of Parikh sets of recursively enumerable languages. Amatrix grammar with appearance checking is a construct G=(N,T,S,M,F), where N,Tare disjoint alphabets, S∈N,Mis a finite set of sequences of the form (A1→x1,...,An→xn), n≥1, of context-free rules over N∪T(with Ai∈N,xi∈(N∪T)∗, in all cases), and Fis a set of occurrences of rules in M(we say that Nis the nonterminal alphabet, Tis the terminal alphabet, Sis the axiom, while the elements of Mare called matrices). For w, z∈(N∪T)∗, we write w⇒zif there is a matrix (A1→x1,...,An→xn)in Mand the strings wi∈(N∪T)∗,1≤i≤n+1, such that w=w1,z=wn+1, andforall1 ≤i≤n,eitherwi=w iAiw i,w i+1=w ixiw i, for some w i,w  i∈(N∪T)∗,orwi=wi+1,Aidoes not appear in wi, and the rule Ai→xiappears in F. (The rules of a matrix are applied in order, possibly skipping the rules in Fif they cannot be applied; we say that these rules are applied in the appearance checking mode.) We denote by ⇒∗the reflexive and transitive closure of the relation ⇒. The language generated by Gis defined by L(G)={w∈T∗|S⇒∗w}. The family of languages of this form is denoted by MATac. It is known that MATac = RE. A matrix grammar G=(N,T,S,M,F)is said to be in the binary normal form if N=N1∪N2∪{S,#}, with these three sets mutually disjoint, and the matrices in Mare of one of the following forms: 1. (S→XA), with X∈N1,A∈N2, 2. (X→Y,A→x), with X,Y∈N1,A∈N2,x∈ (N2∪T)∗, 3. (X→Y,A→#), with X,Y∈N1,A∈N2, 4. (X→λ, A→x), with X∈N1,A∈N2,x∈T∗. Moreover, there is only one matrix of type 1 and Fconsists exactly of all rules A→# appearing in matrices of type 3; # is a trap symbol, once introduced, it is never removed. P systems with membrane creation are proved to be universal (Mutyam and Krithivasan 2001) and have been used to solve computationally hard problems (Gut-iérrez-Naranjo et al. 2005, 2006, 2007). All these above mentioned P systems with membrane creation work in a parallel and synchronized way (a global clock is assumed to mark the time for the system); in each tick of the global clock, all the applicable rules are applied simultaneously, and the execution of rules takes exactly one time unit. However, in biological reality, the execution time of a chemical reaction might be difficult to know precisely and usually such a parameter is very sensitive to environmental factors that might be hard to control. With this biological motivation, timed P systems were introduced in Cavaliere and Sburlan (2005), where a natural number representing the execution time is associated with each rule. In Cavaliere and Sburlan (2005), a class of systems, called time-free P systems, was also introduced and proved computationally universal, where such P systems always produce the same result, independent from the execution times of the rules. Time-free solutions to computationally hard problems were proposed as open problems in Gheorghe et al. (2013). In Song et al. (2014), a family of P systems with active membranes was designed for a time-free solution to the SAT problem in the sense that the correctness of the solution does not depend on the precise timing of the involved rules, but the newly generated membranes can have the different labels with their parent membrane. An improved result was presented in Song et al. (2015b), where the newly generated membranes have the same label with their parent membrane. A time-free uniform solution to the SAT problem using P systems with active membranes was given in Song et al. (2015a). Several variants of P systems were also considered to timefreely solve NP-complete problems: tissue P systems were used to solve the subset sum problem (Song et al. 2015c) and in Song et al. (2013), a family of P systems with d-division was designed for solving the Hamiltonian path problem. In this work, we focus on timed P systems with membrane creation, where the computational efficiency and universality of such P systems are investigated. Specifically, we present a time-free solution to the SAT problem using P systems with membrane creation in the sense that the correctness of the solution is irrelevant to the times associated with the involved rules, but this result is obtained on the condition that the membranes are polarized. We also prove that time-free P systems with membrane creation with electrical charges on membranes are computationally universal. 2 Formal language theory preliminaries The reader is assumed to have some familiarity with (basic elements of) language theory, e.g., from Rozenberg and Salo- A matrix of type 4 is used only once, at the last step of a derivation. It is known that for each matrix grammar there is an equivalent matrix grammar in the binary normal form; hence each language in RE can be generated by a grammar in the binary normal form. 3 Timed P systems with membrane creation 3.1 Timed and time-free polarization P systems with membrane creation In this subsection, we directly give the definitions of timed and time-free P systems with membrane creation. For the notion of P systems with membrane creation, please refer to P˘aun (2000) and P˘aun et al. (2010). Definition 1 A timed polarization P system with membrane creation of degree m≥1 is a construct Π(e)=(O,H,μ,w 1,...,w m,R,iout,e), where Ois a finite alphabet of objects;His a finite set of labels for membranes; μis an initial membrane structure, consisting of mmembranes; membranes are labelled (not necessarily in an injective way) with elements of H; w1,...,w mare finite multisets over O, describing the initial multisets of objects placed in the mregions of μ;iout ∈ {0,1,...,m}is the output region (0 is the label representing the environment); eis a mapping from the finite set of rules Rinto the set of natural numbers N, which represent the execution time of the rules; Ris a finite set of rules of the forms: (a) [a→v]α h,h∈H,α ∈{+,−,0},a∈O,v ∈Mf(O) (object evolution rules), associated with membranes and depending on the label and the charge of the membranes. (b) a[]α1 h→[b]α2 h,h∈H,α 1,α 2∈{+,−,0},a∈O,b∈ O∪{λ}(send-in communication rules). An object is sent into the membrane, possibly modified during this process; also the polarization of the membrane can be modified, but not its label. (c) [a]α1 h→[] α2 hb,h∈H,α 1,α 2∈{+,−,0},a∈O,b∈ O∪{λ}(send-out communication rules). An object is sent out of the membrane, possibly modified during this process; also the polarization of the membrane can be modified, but not its label. (d) [a]α h→b,h∈H,α ∈{+,−,0},a∈O,b∈O∪{λ} (dissolving rules). In reaction with an object, a membrane can be dissolved, while the object specified in the rule can be modified. (e) [a→[v]α2 h2]α1 h1,h1,h2∈H,α 1,α 2,α 3∈{+,−,0}, a∈O,v∈Mf(O)(creation rules). In reaction with an object, a new membrane is created, maybe of different polarization. This new membrane is placed inside of the membrane of the object which triggers the rule and has associated an initial multiset, a label and a polarization. A timed P system with membrane creation Π(e)works in the following way: An external clock is assumed, which marks time-units of equal length, starting from instant 0. According to this clock, the step tof computation is defined by the period of time that goes from instant t−1 to instant t. If a membrane icontains a rule rfrom types (a)–(e) selected to be executed, then the execution of such rule takes e(r)time units to complete. Therefore, if the execution is started at instant j, the rule is completed at instant j+e(r)and the resulting objects become available only at the beginning of step j+e(r)+1. When a rule rfrom types (a)–(e)isstarted,thenthe occurrencesofsymbol-objects subject to this rule cannot be subject to other rules until the implementation of the rule completes. In timed P systems with membrane creation, only halting computations give a result, which is encoded by the objects present in the output region. Note that the rules of a timed polarization P system with membrane creation are applied according to usual principles of timed P system with membrane creation as mentioned above. We only emphasize that in timed polarization P system with membrane creation, several rules can be applied to different objects in the same membrane simultaneously if the polarization of the membrane is not modified during the applications of these rules. Definition 2 A P system with membrane creation Πis timefree if and only if every timed P system with membrane creation in the set {Π(e)|e:R→N−{0}} produces the same set of vectors of natural numbers. The set of vectors generated by a time-free P system with membrane creation Πis denoted by Ps(Π).By PsOPfree(list-of-rules)we denote the families of the sets of vectorsgeneratedbytime-freePsystemswithmembranecre- ation, using rules as specified in the list-of-rules;free stands for time-free. Definition 3 A recognizer timed (polarization) P system with membrane creation of degree m≥1 without input is a tuple Π=(O,H,μ,w 1,...,w m,R,iout,e), such that •the tuple (O,H,μ,w 1,...,w m,R,iout,e)is a timed (polarization) P system with membrane creation; •the working alphabet contains two distinguished elements yes and no; •all the computations halt; •if Cis a computation of the system, then either object yes or object no (but not both) must appear in the environment when the system halts. 3.2 Time-free solutions to decision problems by P systems with membrane creation In timed (polarization) P systems with membrane creation, we use rule starting step (RS-step, for short) to define the computation step (Song et al. 2014). Definition 4 In timed (polarization) P systems with membrane creation, a computation step is called an RS-step if at this step at least one rule starts its execution, that is, steps in which some objects “start” to evolve or some membranes “start” to change. Adecision problem,X, is a pair (IX,ΘX) such that IXis a language over a finite alphabet (whose elements are called instances) and ΘXis a total Boolean function (that is, predicate) over IX. Definition 5 Let X=(IX,ΘX)be a decision problem. We say that Xis solvable in polynomial RS-steps by a family of recognizer (polarization) P systems with membrane creation ={Πu,u∈IX}, in a time-free manner, if the following items are true: •the family is polynomially uniform by a Turing machine; that is, there exists a deterministic Turing machine working in polynomial time which constructs the system Πufrom the instance u∈IX; •the family is time-free polynomially bounded; that is, there exists a polynomial function p(n)such that for any time-mapping eand for each u∈IX, all computations in Πu(e)halt in, at most, p(|u|)RS-steps; •the family is time-free sound (with respect to X); that is, for any time-mapping e, the following property holds: for each instance of the problem u∈IXsuch that there exists an accepting computation of Πu(e),wehave ΘX(u)=1; •the family is time-free complete (with respect to X); that is, for any time-mapping e, the following property holds: for each instance of the problem u∈IXsuch that ΘX(u)=1, every computation of Πu(e)is an accepting computation. 4 A time-free solution to the SAT problem by P systems with membrane creation The SAT problem is the well-known NP-complete problem (Garey and Johnson 1979). It asks whether for a given formula in the conjunctive normal form there is a truthassignment of variables or not such that makes the formula evaluate to be true. The following theorem shows that the SAT problem can be solved in polynomial RS-steps by a family of polarization P systems with membrane creation in a time-free manner. Theorem 1 The SAT problem can be solved in polynomial RS-steps by a family of polarization P systems with membrane creation with rules of types (a)–(e)in a time-free manner. Proof Let us consider a propositional formula C=C1∧ C2∧···∧Cm,with Ci=yi,1∨···∨ yi,pi,for some m≥ 1,pi≥1, and yi,j∈{xk,¬xk|1≤k≤n}, for each 1≤i≤m,1≤j≤pi, where ¬xkis the negation of a propositional variable xk, and the two connections ∨,∧are or,and, respectively. For the given propositional formula C, we construct the polarization P systems with membrane creation ΠC=(O,H,μ,w 1,w 2,R,iout), where O={ai,ti,fi|1≤i≤n}∪{ri,r i,ri,t,ri,f,b(1) i, b(2) i,b(3) i,b(4) i,c i|1≤i≤m}∪{a(1) i,a(2) i,a(3) i|2≤i≤ n+1}∪{ci|2≤i≤m+1}∪{a(4) i|3≤i≤n+ 1}∪{yes,no,an+1,rm+1,t,d,e1,e2,e3}is the alphabet, H={−1,0,1,2,...,n+m+1}is the set of labels of the membranes, μ=[[] 0 2]0 1is initial membrane structure, w1=no is the initial multiset contained in membrane 1, w2=a1is the initial multiset contained in membrane 2, iout =0, and the set Rcontains the following rules: G1:[a1→t1f1d]0 2. G2:[d]0 2→λ. G3:[t1→[rh1,1,trh1,1,f...rh1,j1,trh1,j1,fa(1) 2]+ 2]+ 1, and the clauses Ch1,1,...,Ch1,j1contain the literal x1. G4:[f1→[rh1,1,trh1,1,f...rh1,j1,trh1,j1,fa(2) 2]+ 2]+ 1, and the clauses Ch1,1,...,Ch1,j1contain the literal ¬x1. G5:[a(1) 2]+ 2→[ ] + 2a(1) 2. G6:[a(2) 2]+ 2→[ ] + 2a(2) 2. G7:[a(1) 2→[ ] 0 0]+ 1. G8:a(2) 2[] 0 0→[a(2) 2]0 0. G9:[a(2) 2]0 0→a(3) 2. G10 :[a(3) 2→a2 2]+ 1. G11 :a2[] + 2→[a2]0 2. G12,i:[ai→tifi]0 i,2≤i≤n. We also say that the family  provides a time-free semiuniform efficient solution to the decision problem X. G13,i:[ti→[rhi,1,trhi,1,f...rhi,ji,trhi,ji,fa(1) i+1]+ i+1]0 i,2≤ i≤n−1, and the clauses Chi,1,...,Chi,jicontain the literal xi. G14,i:[fi→[rhi,1,trhi,1,f...rhi,ji,trhi,ji,fa(2) i+1]− i+1]0 i,2≤ i≤n−1, and the clauses Chi,1,...,Chi,jicontain the literal ¬xi. G15 :[tn→[rhn,1...rhn,jna(1) n+1]+ n+1]0 n, and the clauses Chn,1,...,Chn,jncontain the literal xn. G16 :[fn→[rhn,1...rhn,jna(2) n+1]− n+1]0 n, and the clauses Chn,1,...,Chn,jncontain the literal ¬xn. G17,i:[a(1) i]+ i→[ ] + ia(1) i,3≤i≤n+1. G18,i:[a(2) i]− i→[ ] − ia(2) i,3≤i≤n+1. G19,i:[a(1) i+1→[ ] 0 0]0 i,2≤i≤n. G20,i:a(2) i[] 0 0→[a(2) i]0 0,3≤i≤n+1. G21,i:[a(2) i]0 0→a(3) i,3≤i≤n+1. G22,i:[a(3) i+1→[r1,ta(4) i+1]0 −1]0 i,2≤i≤n. G23,i:[a(4) i→[] + i]0 −1,3≤i≤n+1. G24,i,j:rj,t[] + i→[rj]+ i,3≤i≤n,1≤j≤m. G25,i,j:[rj→rj,trj,fb(1) j]+ i,3≤i≤n,1≤j≤m. G26,i,j:[b(1) j]+ i→[ ] + ib(1) j,3≤i≤n+1,1≤j≤m. G27,j:[b(1) j→b(2) j]0 −1,1≤j≤m. G28,i,j:b(2) j[] + i→[b(2) j]− i,3≤i≤n+1,1≤j≤m. G29,i,j:[b(2) j]− i→[ ] − irj,f,3≤i≤n+1,1≤j≤m. G30,i,j:rj,f[] − i→[rj]− i,3≤i≤n,1≤j≤m. G31,i,j:[rj→rj,trj,fb(3) j]− i,3≤i≤n,1≤j≤m. G32,i,j:[b(3) j]− i→[ ] − ib(3) j,3≤i≤n+1,1≤j≤m. G33,j:[b(3) j→b(4) j]0 −1,1≤j≤m. G34,i,j:b(4) j[] − i→[b(4) j]+ i,3≤i≤n+1,1≤j≤m. G35,i,j:[b(4) j]+ i→[ ] + irj+1,t,3≤i≤n+1,1≤j≤m. G36,j:rj,t[] + n+1→[r j]+ n+1,1≤j≤m. G37,j:[r j→rjb(1) j]+ n+1,1≤j≤m. G38,j:rj,f[] − n+1→[r j]− n+1,1≤j≤m. G39,j:[r j→rjb(1) j]− n+1,1≤j≤m. G40,i:rm+1,t[] + i→[e1]+ i,3≤i≤n+1. G41,i:[e1]+ i→e1,3≤i≤n+1. G42 :[e1]0 −1→e1. G43,i:e1[] − i→[e1]− i,3≤i≤n+1. G44,i:[e1]− i→[ ] + ie2,3≤i≤n+1. G45,i:[e2→a2 i+1e3]0 i,2≤i≤n. G46,i:ai[] + i→[ai]0 i,3≤i≤n+1. G47,i:[e3]0 i→λ,2≤i≤n. C1:[an+1→[c 1]0 n+2]0 n+1. C2,j:[cj→[c j]0 n+1+j]0 n+1,2≤j≤m. C3,j:rj[] 0 n+1+j→[r j]+ n+1+j,1≤j≤m. C4,j:[c j]+ n+1+j→cj+1,1≤j≤m. O1:[no]0 1→[ ] + 1no. O2:no[] − 1→[no]− 1. O3:[cm+1]0 n+1→[ ] 0 n+1yes. O4:[yes]+ 1→[ ] − 1yes. In what follows, we show how the above constructed system ΠCgives a solution to the propositional formula C. Generally, the computation process can be divided into three phases: generation phase, checking phase, and output phase. Generation phase At the beginning of the computation, we have object no in membrane 1, object a1in membrane 2, and the object a1corresponds to variable x1.Atstep1,rule G1is applied, the object a1evolves to the objects t1,f1,din membrane 2. For any given time-mapping e, the execution of rule G1completes in e(G1)steps. As we will see below, at step 1, exception for the application of rule G1, the application of rule O1also starts, object no exits the membrane 1, changing the polarization from neutral to positive, and from step2tostepe(G1), there is no rule starting. Thus, during the execution of rule G1(i.e., from step 1 to step e(G1)), there is one RS-step. Note that the number of RS-steps during the execution of rule G1is independent of the time-mapping e. After the execution of rule G1completes, rule G2is enabled and applied, membrane with label 2 is dissolved, and the objects t1,f1will present in membrane 1 at the same step. At this moment, if the execution of rule O1is not yet completed, then no rule can be started in the system. When the polarization of membrane 1 is changed to positive, the applications of rules G3and G4start at the same step, of course, the executions of rules G3and G4may complete at different steps due to the fact that the execution time associated with rules G3and G4can be different. The execution of rule G3(resp. G4) corresponds to the process of looking for the clauses satisfied by the truth-assignment true (resp. false) of variable x1. Note that in each of the new generated membrane 2, if the clause Ch1,j1is satisfied, the objects rh1,j1,t,rh1,j1,fare produced, which will evolve to rh1,j1, and enter the membrane 3 having polarization positive and negative, respectively. When the execution of rule G3(resp. G4) completes, the application of rule G5(resp. G6) starts, object a(1) 2(resp. a(2) 2) exits the membrane with label 2. Rules G5and G6may start at different steps, since the executions of rules G3and G4may finish at different steps. With the appearance of object a(1) 2in membrane 1, rule G7is enabled and used, a new membrane with label 0 is generated in membrane 1. Since rule G8can be used only when the object a(2) 2presents in membrane 1 and there is a membrane 0 having polarization neutral, that is, rule G8 can be used only when the applications of both rules G6and G7have completed. By using rule G8, object a(2) 2enters the membrane 0. So, the rule G8has a synchronization function because e(G3)+e(G5)+e(G7)may not be equal to e(G4)+ e(G6). When the execution of rule G8finishes, the application of With the appearance of membrane 3 in membrane −1, the application of rule G24,3,1starts, object r1,tevolves to r1, and object r1enters the membrane 3. When the execution of rule G24,3,1finishes, rule G25,3,1is used, object r1evolves to objects r1,t,r1,f,b(1) 1. If the object b(1) 1presents in membrane 3, the application of rule G26,3,1starts, and object b(1) 1 exits the membrane 3. When the execution of rule G26,3,1 completes, rule G27,1is used, and object b(1) 1evolves to b(2) 1. If the object b(2) 1appears in membrane −1, the application of rule G28,3,1starts, and object b(2) 1enters the membrane 3, changing the polarization from positive to negative. After the execution of rule G28,3,1finishes, rule G29,3,1is enabled and applied, object b(2) 1evolves to r1,f, and object r1,fexits the membrane. When the execution of rule G29,3,1completes, the application of rule G30,3,1starts, object r1,fevolves to r1, and object r1enters the membrane 3. With the appearanceof objectr1inmembrane3 having polarizationnegative, rule G31,3,1is used, and object r1evolves to r1,t,r1,f,b(3) 1. If the object b(3) 1presents in membrane 3, the application of rule G32,3,1starts, and object b(3) 1exits the membrane. After the execution of rule G32,3,1finishes, rule G33,1is enabled and used, and object b(3) 1evolves to b(4) 1. When the execution of rule G33,1completes, rule G34,3,1is used, and object b(4) 1enters the membrane, changing the polarization from negative to positive. When the execution of rule G34,3,1 completes, the application of rule G35,3,1starts, object b(4) 1 evolves to r2,t, and object r2,texits the membrane. With the appearance of object r2,tin membrane −1, rule G24,3,2is enabled and used. Using the rules from G24,3,2to G35,3,2 one by one, two copies of objects r2,t,r2,fwill be generated in membrane 3, which is contained in membrane −1. Note that the applications of rules Gk,3,1(24 ≤k≤26, 28 ≤k≤32, k=34,35), G27,1,G33,1in all membranes −1 start and complete at the same step, since the executions of these rules in all membranes −1 take the same time for a given time-mapping e. We also note that the rules Gk,3,1 (24 ≤k≤26, 28 ≤k≤32, k=34,35), G27,1,G33,1 in membrane −1 are used to ensure that all the objects rj,t (resp.rj,f) (if they exist) contained in membrane 2 have been entered the membrane 3 having polarization positive (resp. negative). The system continues to generate the objects r3,tr3,f,..., rm,trm,fin each membrane 3, which is contained in membrane −1. When the execution of rule G35,3,mcompletes, the computation takes at most 16m+19 RS-steps: the processesofassigningtruth-assignment ofvariable x1aswell as looking for the clauses satisfied by the truth-assignment of variable x1take at most 10 RS-steps; the applications of rules G25,3,j,G26,3,j,G31,3,j,G32,3,jin membrane −1 and membrane 2 may start at different steps; hence, there are at most 4mRS-stepsduring theapplications ofrules G25,3,j,G26,3,j, rule G9 starts, object a( 22) evolves to a( 23), and membrane 0 is dissolved. With the appearance of object a( 23) in membrane 1, rule G10 is enabled and used, one copy of object a( 23) evolves to two copies of object a2. When the execution of rule G10 completes, rule G11 is enabled and applied, each object a2 enters a membrane 2 changing its polarization from positive to neutral (this is due to the fact that there are two copies of object a2 and two membranes 2 with positive polarization in membrane 1, and the system works in a maximally parallel manner). In summary, when the execution of rule G11 completes, the computation takes at most 10 RS-steps, which is independent of any time-mapping e, and the system finishes assigning truth-assignment of variable x1, and looking for the clauses satisfied by the truth-assignment of variable x1. After the execution of rule G11 completes, rule G12,2 is enabled and used in each membrane 2 at the same step, since the execution of rule G11 in all membranes 2 takes the same time e(G11) for a given time-mapping e. When the execution of rule G12,2 completes, rules G13,2 and G14,2 are used at the same step, but they may complete at different steps due to the fact that the execution time associated with rules G13,2 and G14,2 can be different. The execution of rule G13,2 (resp. G14,2) corresponds to the process of looking for the clauses satisfied by the truth-assignment true (resp. false)of variable x2. When the execution of rule G13,2 (resp. G14,2) completes, the applications of the rule G17,3 (resp. G18,3) and the rules G24,3, j (resp. G30,3, j ) [all the object r j,t (resp. r j, f ) presented in membrane 2 will enter the membrane 3 having polarization positive (resp. negative)] start at the same step, of course, they may complete at different steps because the execution time associated with these rules can be different. As we will see below, we use the rules from G24,3, j to G35,3, j to ensure that all the possible objects r j,t , r j, f presented in membrane 2 have entered the membrane 3. With the appearance of object a(31) in membrane 2, the application of rule G19,2 starts, a new membrane with label 0 is generated. However, the rule G20,3 is enabled only when the rules G18,3, G19,2 have started and completed their executions. When the object a( 32) appears in membrane 0, rule G21,3 is enabled and used, object a( 32) evolves to a( 33), and membrane 0 is dissolved. With the appearance of object a( 33) in membrane 2, rule G22,2 is enabled and applied, a new membrane with label −1 is generated, which contains the objects r1,t , a( 34). When the execution of rule G22,2 completes, rule G23,3 is enabled and used, the object a( 34) creates a new membrane with label 3. Note that the executions of rules G12,2, G13,2, G14,2, G17,3, G18,3, G19,2, G20,3, G21,3, G22,2, G23,3 in all membranes 2 start and complete at the same step (there are at most 9 RS-steps), since the executions of the corresponding rules in all membranes 2 take the same time for a given time-mapping e. G31,3,j,G32,3,jin membrane 2; and in membrane −1, the process of applications of rules from G24,3,jto G35,3,jtakes at most 12mRS-steps. With the appearance of objectrm+1,tin membrane −1, the application of rule G40,3starts, object rm+1,tevolves to e1, and object e1enters the membrane 3. If object e1presents in membrane 3, rule G41,3is enabled and used, membrane 3 is dissolved, and object e1will appear in membrane −1 (note that the membranes 3, which are contained in membrane 2, can not be dissolved, because the object rm+1,tcannot be generated in membrane 2). If the object e1appears in membrane −1, the application of rule G42 starts, membrane −1 is dissolved, and object e1will present in membrane 2. When the execution of rule G42 completes, rule G43,3is used, and object e1enters the membrane 3 having polarization negative. With the appearance of object e1in membrane 3, rule G44,3is enabled and applied, object e1evolves to e2, and object e2exits the membrane, changing the polarization from negative to positive. After the execution of rule G44,3completes, rule G45,2is used, and object e2evolves to one copy of e3and two copies of a3. When the execution of rule G45,2finishes, the applications of rules G46,3 and G47,2start at the same step. Using the rule G46,3, all the objects a3enter membrane 3 changing the polarization from positive to neutral at the same step (there are two copies of object a3and two copies of membrane with label 3 in each membrane 2; each object a3enters a membrane 3 using the rule G46,3in a maximally parallel manner). Using the rule G47,2, object e3dissolves the membrane with label 2. In this process, rules G40,3,G41,3,G42,G43,3,G44,3,G45,2,G46,3 are used one by one, there are seven RS-steps. Hence, when the execution of rule G46,3completes, the computation takes at most 16m+26 RS-steps, and the system finishes assigning truth-assignment of variables x1,x2, and looking for the clauses satisfied by the truth-assignment of variables x1,x2. Thus, the processes of assigning truth-assignment of variable x2as well as looking for the clauses satisfied by the truthassignment of variable x2take at most 16m+16 RS-steps. When the object a3presents in membrane 3, rule G12,3is enabledand applied.Note thatthe applicationof rule G12,3in all membranes 3 starts and completes at the same step, since the execution of rule G12,3in all membranes 3 takes the same timee(G12,3)foragiventime-mappinge.Theapplicationsof rules G13,3and G14,3startat thesame step,but maycomplete at different steps. Furthermore, the applications of rules from G17,4to G35,4,jand rules from G40,4to G46,4may start and complete at different steps. Similar with the case of variable x2, the processes of assigning truth-assignment of variable x3as well as looking for the clauses satisfied by the truthassignment of variable x3take at most 16m+16 RS-steps. The system continues to assign the truth-assignment of variables x4,x5,...,xnand look for the clauses satisfied by the truth-assignment of variables. Note that when the system 1 n+1 n+1 n+1 2ncopies of membrane with label n+1 Fig. 1 The membrane structure at the moment when generation phase completes assigns truth-assignment of variable xn, and looks for the clauses satisfied by the truth-assignment of variable xn, one copy of object rjgenerated in membrane n+1 is enough if the clause Cjis satisfied; hence, in this case, when the system looks for the clauses satisfied by the truth-assignment of variable xn, rules G15,G16 are used. It is important to note that when all of the objects rj,t,rj,fenter the membrane n+1, they will finally evolve to rjusing the rules r36,j,r37,j,r38,j,r39,j. In general, when the system completes the processes of assigning truth-assignment of variable xnand checking for the clauses satisfied by the truth-assignment of variable xn, 2ncopies of membrane with label n+1 are generated, which are placed in the membrane 1 (see Fig. 1for the membrane structure at the moment when the generation phase completes). Note that at the output phase, we will check whether the applications of all rules G47,i(2≤i≤n)complete. The generation phase takes at most 10 +(16m+16)(n−1)= 16mn +16n−16m−6 RS-steps. Checking phase After the generation phase completes, each membrane with label n+1 contains some of objects from the set {r1,r2,...,rm}whose elements denote the corresponding clauses satisfied by the truth assignments of the variables. If there is at least one membrane with label n+1 that contains all objects r1,r2,...,rm, this means that the truth assignment from that membrane satisfies all clauses; hence it satisfies formula C. Otherwise, if no membrane with label n+1 contains all objects r1,r2,...,rm, the formula C is not satisfiable. When the execution of rule G45,ncompletes, all the object an+1enter membrane n+1, changing the polarization from positivetoneutralatthesamestep(ineachmembranen,there are two copies of object an+1and two copies of membrane with label n+1, each object an+1enters a membrane n+ 1usingtheruleG46,n+1in a maximally parallel manner). Hence, the object an+1presents in each membrane n+1 at the same step. After the generation phase completes, the system starts to check whether object r1presents in each membrane with label n+1. Using the rule C1, the object an+1creates a new neutral membrane n+2, which contains the object c 1. If the object r1exists, rule C3,1is enabled and used, object r1evolves to r 1, and object r 1enters the membrane n+2, changing its polarization from neutral to positive. When the execution of rule C3,1completes, the application of rule C4,1starts, object c 1evolves to c2, and the membrane with label n+2is dissolved. The appearance of object c2means that the clause C1is satisfied, and the system starts to check whether the objectr2appears in a membrane n+1 (i.e., checking whether the corresponding true assignment satisfies the clause C2). After the execution of rule C4,1completes, the application of rule C2,2starts, and object c2creates a new neutral membrane n+3, which contains the object c 2. The object c3 appears only if the corresponding membrane n+1 contains object r2. The system continues to check whether the objects r3,r4,...,rmappear in membranes n+1. If the membrane n+1does not containthe objectrj,j=1,2,...,m, thenthe computation in this membrane stops at the time when C3,jis supposed to be applied. In general, the checking phase takes at most 3mRS-steps (if there is a membrane n+1 containing all objects r1,r2,...,rm, the process takes 3mRS-steps). Output phase At step 1, the rule O1is used, and object no exits the skin membrane 1, changing its polarization from neutral to positive. When the checking phase completes, we have the following two cases: •If no object cm+1presents in any membrane with label n+1, then the rule O3and rule O4cannot be applied, and thus, rule O2cannot be applied. In this case, when the computation halts, object no remains in the environment, telling us that the formula is not satisfiable. •If there exists at least one membrane with label n+1 that contains object cm+1, then the rule O3will be applied, object cm+1evolves to yes, and object yes exits the membrane. At this moment, if the executions of all rules G47,i(2 ≤i≤n) have not yet completed, then no rule can be started in the system before the executions of all rules G47,icomplete. Only when the executions of all rules G47,icomplete, the rule O4is enabled. By applying the rule O4, object yes exits the membrane with label 1, changing its polarization from positive to negative. Therefore, the other objects yes remaining in membrane 1 are not able to continue exiting into the environment. After the execution of rule O4completes, the rule O2is enabled and applied, object no enters membrane 1. In this case, when the computation halts, one copy of yes appears in the environment, telling us that the formula is satisfiable. This process takes three RS-steps. By the above checking of the computation process, we have the following facts: •For any time-mapping e, the object yes appears in the environment when the computation halts if and only if the formula Cis satisfiable; and the object no appears in the environment when the computation halts if and only if the formula Cis not satisfiable. Thus, the system ΠCis time-free sound and time-free complete. •If the formula Cis satisfiable, the computation takes 16mn +16n−13m−3 RS-steps: it takes 16mn +16n− 16m−6 RS-steps to generate 2nmembranes with label n+1; it takes 3mRS-steps to check whether all clauses are satisfied by an assignment; the output phase takes 3 RS-steps,andthesystemhalts.IftheformulaCisnotsatisfiable,thecomputationtakesatmost16mn+16n−13m−6 RS-steps (it takes no RS-step at the output phase), and the system halts. Thus, the family of constructed P systems is time-free polynomially bounded. The family Πis polynomially uniform because the construction of P systems described in the proof can be done in polynomial time by a Turing machine: •size of the alphabet: 7n+10m+7; •initial number of membranes: 2; •initial number of objects: 2; •number of evolution rules: 10mn +17n−5m−1; •the maximal length of a rule (the number of symbols necessary to write a rule, both its left and right sides, the membranes, and the polarizations of membranes involved in the rule): 2m+6. Therefore, the SAT problem can be solved in a polynomial RS-steps by a family of recognizer polarization P systems with membrane creation in a time-free manner.  5 Universality of time-free P systems with membrane creation In this section, we prove that time-free P systems with membrane creation are universal by simulating a matrix grammar with appearance checking in the binary normal form. Theorem 2 PsOPfree((a), (b), (c), (d), (e)) =PsRE. Proof Consider a matrix grammar G=(N,T,S,M,F) with appearance checking in the binary normal form, with N=N1∪N2∪{S,#}and matrices of the four forms mentioned in Sect. 2. Each type 4 matrix of the form (X→ λ, A→x), X∈N1,A∈N2,x∈T∗can be replaced by (X→Z,A→x), where Zis a new symbol. The obtained grammar is denoted by G. Assume that Mcontains n+1 matrices, injectively labelled with m0,m1,...,mn. Let us also assume that we have n1matrices of the form mi=(X→Y,A→x),1≤i≤n1, with X∈N1,Y∈ N1∪{Z},A∈N2,x∈(N2∪T)∗, and n2matrices of the form mi=(X→Y,A→#),n1+1≤i≤n, with X,Y∈N1,A∈N2, such that n1+n2=n. We construct the time-free P system with membrane creation Π=(V,T,H,μ,w 0,R,iout), where V=N1∪N2∪T∪{Z,†}∪{X,X |X∈N1} ∪{di,xi|1≤i≤n1}, H={0,1,2,...,2n1+n2}, μ=[ ] 0 0, w0=XA,for the initial matrix ofG, iout =0, and the set Rof rules is as follows. Let ebe arbitrary time-mapping from Rto N, representing the execution times of the rules in R. •For each matrix mi=(X→Y,A→x), 1≤i≤n1, with X∈N1,Y∈N1∪{Z},A∈N2,x∈(N2∪T)∗,we introduce the following rules: r1:[X→[X]0 i]0 0, r2:A[] 0 i→[xi]+ i, r3:[xi→dix]+ i, r4:[di→[ ] 0 n+i]+ i, r5:X[] 0 n+i→[Y]0 n+i, r6:[Y]0 n+i→Y, r7:[Y]+ i→Y. •For each matrix mi=(X→Y,A→#), n1+1≤i≤n, with X,Y∈N1,A∈N2, we introduce the following rules: r8:[X→[X]0 i]0 0, r9:[X]0 i→[ ] − iX, r10 :A[] − i→[†]0 i, r11 :[X →Y]0 0. •We also consider the following rules: r12 :[†→†]0 i,n1+1≤i≤n, r13 :[a]0 0→[ ] 0 0a, for all a∈T, r14 :[α→α]0 0, for all α∈N1∪N2. In what follows, we show how the above constructed P system Πsimulates the matrix grammar G. The simulation of a matrix mi=(X→Y,A→x), 1≤ i≤n1,with X∈N1,Y∈N1∪{Z},A∈N2,x∈(N2∪T)∗, is done as follows. At some step, rule r1is used, the object Xcreates a new neutral membrane with label i, where the object Xis placed. For any time-mapping e, the membrane icontaining object Xwill appear in membrane 0, which is independent of the execution time of rule r1. When the execution of rule r1completes, the applications of rule r2starts, only one copy of object Aevolves to xi, and object xienters the membrane i, and changing the polarization from neutral to positive. For any time-mapping e,the execution time of the rule r2has no influence on the appearance of the object xiin membrane i. When the execution of rule r2completes, rule r3starts to use, object xievolves to di,x. For any time-mapping e,the appearance of objects di,xin membrane iis independent of the execution time of rule r3. With the appearance of object diin membrane i,ruler4is enabled and used, object diis consumed, and a new neutral membrane with label n+iis created. For any time-mapping e, the generation of membrane n+iis independent of the execution time of rule r4. After finishing the execution of rule r4,ruler5is enabled and applied, object Xevolves to Y, which enters the membrane n+i. Clearly, for any time-mapping e, the appearance of object Yin membrane n+iis independent of the execution time of rule r5. When the execution of rule r5completes, the application of rule r6starts, the membrane with label n+iis dissolved. With the appearance of object Yin membrane i,ruler7is enabled and used, membrane iis dissolved, and objects Y,x appear in membrane 0 at the same step. Note that in any moment, there is at most one and only one copy of object from the set N1in membrane 0, and object Yis available in membrane 0 only after completing the simulation of the matrix. For any time-mapping e, the execution times of the rulesr6,r7have no influence on the appearance of the objects Y,xin membrane 0. We remark that in the simulation of a matrix mi=(X→ Y,A→x), the rules may have different execution times for different time-mapping e; however, before the execution of the current rule completes (before the corresponding objects appear or membranes generate by the current rule), the follow-up rules cannot be used, and this guarantees the robustness of the system in the sense of time-independency, which is also used in the following simulations of matrix mi=(X→Y,A→#). The simulation of a matrix mi=(X→Y,A→ #), n1+1≤i≤n, with X,Y∈N1,A∈N2, is done as follows: At some step, rule r8is used, the object Xcreates a new neutral membrane with label i, which contains the object X. When the execution of rule r8completes, the application of rule r9starts, and object Xevolves to X, which is sent out of the membrane i, changing the polarization from neutral to negative. When the execution of rule r9completes, we have the following two cases: