On the degree of parallelism in membrane systems
Abstract
In the literature, several designs of P systems might be found for performing the same task. The use of different techniques or even different P system models makes it very difficult to compare these designs. In this paper, we introduce a new criterion for such a comparison: the degree of parallelism of a P system. With this aim, we define the labelled dependency graph associated with a P system, and we use this new concept for proving some results concerning the maximum number of applications of rules in a single step through the computation of a P system.
Full text
On the degree of parallelism in membrane systems Miguel A. Guti´ errez-Naranjo, Mario J. P´ erez-Jim´ enez∗, Agust´ ın Riscos-N´ u˜ nez Research Group on Natural Computing, Department of Computer Science and Artificial Intelligence, University of Sevilla, Avda. Reina Mercedes s/n, 31012, Sevilla, Spain Abstract In the literature, several designs of P systems might be found for performing the same task. The use of different techniques or even different P system models makes it very difficult to compare these designs. In this paper, we introduce a new criterion for such a comparison: the degree of parallelism of a P system. With this aim, we define the labelled dependency graph associated with a P system, and we use this new concept for proving some results concerning the maximum number of applications of rules in a single step through the computation of a P system. Keywords: Membrane Computing; P systems; Dependency graph; Degree of parallelism 1. Introduction In recent years, an extensive literature on Membrane Computing has been produced, studying multiple approaches. We can consider the following rough classification: •Generative task: from a given initial configuration several distinct computations may be developed (in a nondeterministic manner) and they may produce different outputs. We can consider that the system generates the set of all the outputs of all the computations (and this set can be interpreted as the language generated by the system). •Computing task: if we can encode any natural number, n, in the initial configuration of a given P system and we consider the cardinality of the output multiset as the result of the computation, then we can interpret that the system “computes” a function over N. •Decidability task: another option is to consider that the output alphabet consists of two special objects, yes and no, in such a way that these are the only objects that determine the answer, irrespectively of the occurrence of other possible objects from the working alphabet in the output membrane. Several designs of P systems might be used for performing the same task. The use of different techniques or even different P system models makes it very difficult to compare these designs. Furthermore, the intrinsic non-determinism of P systems usually yields computational trees of a very large size, which makes the comparison task specially hard. ∗ Corresponding author. Tel.: +34 954557952; fax: +34 954557952. E-mail address: [email protected] (M.J. P´erez-Jim´enez).
A first attempt1to give an appropriate description of the complexity of the evolution of a P system was given by G. Ciobanu, Gh. P˘ aun and Gh. S¸tef˘ anescu in [2]. In this paper, a new tool for the descriptive complexity of P systems, called a Sevilla carpet, was presented. Roughly speaking, a Sevilla carpet is a table with time and an explicit enumeration of the rules of the P system on its axes. For each pair step-rule, a piece of information is given. Additional parameters for studying Sevilla carpets were introduced in [7] and a multidimensional generalization of Sevilla carpets was presented in [9]. Sevilla carpets and their associated parameters provide very useful information to describe the evolution of a P system, but only for one computation. Therefore, if we consider two deterministic P systems which perform the same task, then the use of Sevilla carpets, together with the associated parameters, gives enough information to establish a comparison. It is clear though that this is not the general case. In general we have non-deterministic P systems which may have infinite computations. We wonder how to “compare” two different P system designs which perform the same task, possibly implemented in different models. One of the bases of the power of P systems as computational devices is the maximal parallelism in the use of rules. This maximal parallelism is twofold: all membranes process data in parallel and inside each membrane as many objects as possible evolve. Complementing this feature with the ability of producing new membranes through the computation is the basis of the design of families of P systems which solve NP-complete problems in polynomial time (see, e.g., [8,14], and also [15] and references therein). In this paper we focus on the parallelism, viewed as a tool to compare the design of P systems which perform the same task. Intuitively, a bad design of a P system consists of a P system which does not exploit its parallelism, that is, working as a sequential machine: in each step only one object evolves in one membrane whereas the remaining objects do not evolve. On the other hand, a good design consists of a P system in which a huge number of objects are evolving simultaneously in all membranes. If both P systems perform the same task, it is obvious that the second one is a better design than the first one. In the general case the comparison is not so easy and, in most cases, it would be useful to have a numerical function which rates or estimates how good is the use of the parallelism in a P system. The quest for such a function is hard, since P systems are intrinsically non-deterministic and two computations can be quite different even in confluent P systems. In this paper we propose as a parameter the maximum number of simultaneous applications of rules in a step of any computation. This number depends on the initial configuration, the set of rules and the semantics of the model. The paper is organized as follows: first some preliminaries are given, recalling some concepts related to multisets, introducing the new concept of injective mapping with respect to a multiset and fixing some ideas about graphs and P systems. In Section 3we give an estimation of the use of parallelism in a P system from a given configuration in one step. In the following section we extend our study to the general case and provide a new parameter, β(Π,C), which is an upper bound on the maximum number of simultaneous applications of rules in one step in any computation of Π with the initial configuration C. Finally, some conclusions and lines for future work are given. 2. Preliminaries In this section we recall some concepts which will be used through the paper. First of all, we recall some basic ideas on multisets and introduce the new concept of injective mapping with respect to a multiset. Next we present the P system model we shall work with in this paper and adopt some conventions for notation. 2.1. Multisets Multisets are the basic data structure in P systems. Their use is inspired by the chemical compounds inside the organelles of living cells. First of all, we recall the definition.2 1Recently two new parameters have been introduced in [4] in order to describe the complexity of P systems. They are related to the graph of reachable configurations of a given P system, namely the outdegree as a measure of the degree of non-determinism, and the indegree as a measure of the degree of confluence. 2A detailed presentation of multisets can be found, for example, in [16].
Fig. 1. Mappings on multisets. Let Dbe a set. A multiset over Dis a pair hD,fiwhere f:D→Nis a mapping. If D= hD,fiis a multiset, its support,supp(D), is defined as supp(D)= {x∈D|f(x) > 0}and its cardinality, denoted by #D, is defined as #D=X a∈D f(a). We shall use the standard notation {xf(x)|x∈D}for the multiset hD,fi. Suppose that D1= hD,fiand D2= hD,giare two multisets over the set D. •(Sub-multisets) If for all a∈Dwe have f(a)≤g(a), then we say that hD,fiis a sub-multiset of hD,gi. •(Union of multisets) The union of D1and D2, denoted by D1∪D2, is the multiset hD,hi, where h(a)= f(a)+g(a)for all a∈D. Next we introduce a new definition that will be useful in the following sections. It is a natural generalization of the definition of injective mapping between sets. Definition 1. Let D1and D2be sets, hD2,fia multiset over D2and g:D1→D2a mapping. We say that gis injective with respect to the multiset hD2,fiif ∀y∈D2(#{x∈D1|g(x)=y} ≤ f(y)). This definition can be illustrated with the following example. Example 2. Let us consider the sets D1= {a,b,c}and D2= {x,y}and the multisets over D2:hD2,f1i = {x2,y} and hD2,f2i = {x,y3}. Then the mapping g:D1→D2with g(a)=x,g(b)=xand g(c)=yis injective w.r.t. hD2,f1iand is not injective w.r.t. hD2,f2i(see Fig. 1). Note that this definition extends the usual definition of injective mappings over sets (a set can be seen as a multiset where all elements have multiplicity one). 2.2. Graphs We briefly fix some concepts which will be used later. Adirected graph Gis a pair G=(V,E)where Vis a (finite) set and E⊆V×V. The elements of Vare called nodes, and the elements of Eare called arcs. In this paper we will consider that given a directed graph G, every pair G0=(V0,E0)such that V0⊆V,E0⊆E∩(V0×V0)is a subgraph of G. Given a set of graphs {Gi}i∈Iwith Gi=(Vi,Ei), its union is the graph [ i∈I Gi=[ i∈I Vi,[ i∈I Ei!. We shall consider the paths in a directed graph as subgraphs, following the next definition. Definition 3. Apath of length nfrom a vertex xto a vertex yin a directed graph G=(V,E)is a subgraph G0=(V0,E0)such that V0= {v0, v1, . . . , vn}with v0=x,vn=yand E0= {(vi, vi+1)|i=0, . . . , n−1}. If x=y, then we shall say that the path is a cycle. The subgraph with a single vertex and no arcs is also considered a path. A path is simple if all the vertices in it are distinct. Finally, we define the subgraph generated by a source A and a sink B.
Definition 4. Given a directed graph G=(V,E)and two sets of vertices A,B⊆Vwe define the subgraph generated by the source A and the sink B as the subgraph of Gobtained as the union of all the paths in Gfrom xto y, with x∈A and y∈B. 2.3. P systems We assume that the reader is familiar with the basics of Membrane Computing (see [13]). In this section we briefly define a simple model that we shall be using through this paper. Recall that, basically, a P system consists of a cell-like membrane structure together with associated multisets of objects and sets of rules expressing how these objects can evolve. The membrane structure of a P system is used to enclose computing cells in order to make them independent computing units. The objects can pass through membranes and, depending on the model we are dealing with, membranes can be dissolved, divided, or created. Nevertheless, in this paper we shall work in a simplified model without division, dissolution, and creation of membranes. We do not use cooperation nor priority among rules either. Aconfiguration is the instantaneous description of the current membrane structure and the multisets of objects associated with those membranes. In each time unit (a step), a transformation of a configuration of the system takes place by applying the rules of each region in a non-deterministic maximally parallel manner. In this way, transitions between two configurations of the system are obtained. A (finite or infinite) sequence of transitions is called a computation. For the sake of simplicity, in this paper we consider a special case of P systems. Specifically, a P system with degree qis a tuple Π=(Γ,H, µ, w1, . . . , wq,R)where: •Γis a finite alphabet (the working alphabet) whose elements are called objects. •His a finite set of labels for membranes. •µis a tree-like membrane structure of degree q. Membranes are labelled bijectively by elements from H. •w1, . . . , wqare multisets over Γdescribing the multisets of objects initially placed in membranes from µ. •Ris a finite set of developmental rules. These rules can be of one of the types described below: (1) [a→v]l, where a∈Γ,v∈Γ∗,l∈H (evolution rules). An object aevolves to a multiset vinside a membrane labelled by l. (2) [a]l→b[ ]l, where a,b∈Γ,l∈H (send-out communication rules). An object agets out of a membrane labelled by l, possibly transformed in a new object b. (3) a[ ]l→ [b]l, where a,b∈Γ,l∈H (send-in communication rules). An object agets into a membrane labelled by l, possibly transformed in a new object b. We would like to stress that neither dissolution rules nor membrane division nor membrane creation are permitted in the model we are considering. Hence, in this paper we assume that the membrane structure of a P system does not change through the computations. Neither cooperation nor priorities are used. Let us observe that the rules of the system are associated with labels (e.g., the rule [a→v]lis associated with the label l∈H). Rules are applied according to the following principles: •The evolution rules are as customary usual in the framework of Membrane Computing, that is, in a maximal parallel way. In one step, each object in a membrane can only be used for one rule (non-deterministically chosen in case there are several possibilities), but any object which can trigger an evolution rule must evolve (with the restrictions indicated below for the communication case). •All elements which are not specified in any of the operations to apply remain unchanged to the next step. In the literature we can find two different semantics concerning rules which move objects across membranes. •Parallel communication case: Communication rules follow the same principle of maximality as evolution rules, i.e., several objects (as many as possible, via the application of their respective rules) can cross simultaneously the same membrane. •Sequential communication case: At one step, a membrane can only be the subject of only one communication rule. This is the case for P systems with active membranes, which has been extensively used for designing solutions to NP problems (see [15] and references therein).
2.4. Notation We shall adopt the notation for rules and configurations given in [6], that we briefly recall in what follows. Roughly speaking, the application of a rule in a P system can be interpreted as follows: The occurrence of an element a0in a membrane m1triggers the rule and sends a multiset a1a2. . . aninto a membrane m2. In this way, the rules presented above fit into the following schema (with some constraints) (a0,m1)→(a1,m2)(a2,m2) . . . (an,m2) Obviously, if m16= m2then we have a communication rule. In this case, nmust be equal to 1 and both membranes must be adjacent (one membrane is directly inside the other one). If m1is contained inside m2, then we have a sendout communication rule, and if the opposite holds, then we have a send-in communication rule. On the other hand, if m1=m2, then we have an evolution rule. As usual, the pair (a0,m1)is called the left hand side (LHS) of the rule and the multiset of pairs (a1,m2)(a2,m2) . . . (an,m2)is the right hand side (RHS) of the rule. In the next sections, we shall consider that a configuration is represented as a multiset of pairs (z,m)such that, for every object zof the alphabet and for every membrane m, the multiplicity of zin mis the multiplicity of the pair (z,m)in the multiset. This notion is defined as the L-configuration of a P system in [6]. 3. Applications of rules in a single step A first step in order to have an estimation of the use of parallelism of a P system is to consider a single configuration. In the general case, there are several configurations C1,..., Cnreachable in one transition step from a given configuration C. The number of applications of rules performed to reach each configuration Cican vary, as the next example shows. Example 5. Consider the P system with alphabet Γ= {a,b}, membrane structure [ [ ]e]s, initial multisets we= {a}, ws= {a}, set of rules: R1: [ a]e→b[ ]eR2:a[ ]e→ [ b]eR3: [ a→b]s and the sequential communication semantics. By using rules R1and R3we reach the configuration C1≡ [[ ]eb2]s from the initial one [[ a]ea]s. On the other hand, by using R2we can also reach the configuration C2≡ [[ ab ]e]s. Notice that C1has been obtained by two applications of rules and C2by only one application. Next let us try to determine the maximum number of applications of rules from a given configuration in one step, that will be denoted by β1(Π,C). In our study the key is to consider the multiset of elements which can trigger a rule. Due to the massive parallelism, if an element can trigger an evolution rule, then we are certain that this element will be consumed by the application of one of the rules triggered by it. If an element only triggers communication rules, then in order to deduce whether the object will be consumed we need to know if the system works with sequential or parallel communication semantics, how many rules can be triggered by that object, and whether there exist more objects that can cross the same membranes. We shall start by defining two distinguished sub-multisets, CEand CC, of a given configuration C. Let Πbe a P system and Ca configuration of Π. We define: CE= {(a,m)k|(a,m)is the LHS of an evolution rule and it occurs ktimes in C}, CC= {(a,m)k|(a,m)is the LHS of a communication rule and it is not the LHS of any evolution rule and it occurs ktimes in C}.
3.1. Sequential communication case Let us first consider the sequential semantics. In this context we define a crossing mapping. The intuition behind this definition is the following: we intend to map membrane labels onto objects that can cross them in the next step by the application of a communication rule. In general, it may not be possible to find such a mapping defined over all labels, so we have to consider a subset S⊆H. Besides, in order to avoid that two objects cross the same membrane, we demand that the mapping is injective in the sense of Definition 1. Definition 6. Let Πbe a P system, Hits set of labels, and Ca configuration of Π. A crossing mapping on Cis a mapping f:S→supp(CC)with S⊆H, injective w.r.t. CC, and such that for every h∈Sthere exists a communication rule associated with label hand having f(h)as its LHS. Notice that for a given configuration there may exist several crossing mappings, that correspond to different nondeterministic choices of communication rules to be applied over the membranes with labels in S. Finally, we give an expression of the maximum number of applications of rules in a transition step from the current configuration. Theorem 7. Let Πbe a P system and Ca configuration. Let us consider the sequential communication semantics. The maximum number β1(Π,C)of applications of rules in one transition step starting from Cis β1(Π,C)=#CE+max{#S| ∃ a crossing mapping f :S→supp(CC)}. Proof. Let Πbe a P system, Ca configuration and let f∗:S∗→supp(CC)be a crossing mapping such that #S∗=max{#S| ∃ a crossing mapping f:S→supp(CC)}. Then, for every label h∈S∗there exists a communication rule that crosses membrane hwith f∗(h)as its LHS. By the definition of crossing mapping, there exists one transition step starting from Cin which all objects f∗(h)trigger their corresponding communication rules crossing the membrane labelled by h, and this causes #S∗application of rules. Let us consider now the set CE. By definition, and due to the maximal parallelism, all the objects in CEtrigger an evolution rule in any transition step starting from C. In particular, there exists a transition step where the number of application of rules is exactly #CE+#S∗. In other words, the maximum number of applications of rules in a transition step starting from C,β1(Π,C), is at least #CE+max{#S| ∃ a crossing mapping f:S→supp(CC)}. Next, we shall prove that the maximum number of applications of rules β1(Π,C)is not greater than #CE+ max{#S| ∃ a crossing mapping f:S→supp(CC)}. Let C1be a configuration obtained from Cin one transition step and let TE(TC, resp.) be the multiset of elements of the configuration Cwhich have triggered evolution (communication, resp.) rules in order to reach C1. Obviously, the number of applications of rules performed in the transition step C⇒C1is #TE+#TC. Now, let us split the multiset TCinto two multisets: Te C, the submultiset containing the elements from TCwhich are the LHS of some evolution rule, and Tne C, the complementary submultiset containing the elements from TCwhich are not the LHS of any evolution rule. We have that #TC=#Te C+#Tne Cand •#TE+#Te C=#CE, since TE∪Te C=CE. •#Tne C≤max{#S| ∃ a crossing mapping f:S→supp(CC)}, since we can consider the natural crossing mapping f∗:ST→supp(CC)where STis the set of labels of membranes crossed by the objects in Tne C. Therefore, the number of applications of rules in the transition step from Cto C1is less than or equal to #CE+max{#S| ∃ a crossing mapping f:S→supp(CC)}, and this concludes the proof. Due to the high computational cost of computing β1(Π,C), it is worth looking for an upper bound that is easier to compute. The next corollary gives such an upper bound for β1(Π,C). The proof is immediate. Corollary 8. Let Πbe a P system working with a sequential communication semantics. Let Cbe a configuration, and H the set of labels of Π. Then β1(Π,C)≤#CE+#H. We illustrate the theorem with the following example.
Example 9. Let us consider a P system with a set of labels H= {0,1,2,3}and the following set of rules: R1:[a]1→b[ ]1R5:z[ ]1→ [x]1R8:[a→b]1 R2:[a]2→b[ ]2R6:z[ ]2→ [x]2R9:[a→b]2 R3:[a]3→b[ ]3R7:z[ ]3→ [x]3R10:[a→b]3 R4:[x]1→b[ ]1 Consider now a configuration C= [ [ ax3]1[a2z]2[az ]3z3]0. Then, CE= {(a,1), (a,2), (a,2), (a,3)}, CC= {(x,1), (x,1), (x,1), (z,0), (z,0), (z,0)}. Therefore, we have #CE=4 and #H=4. From the previous corollary we deduce that β1(Π,C)≤8. Actually, a more detailed study of the example shows that max{#S| ∃ a crossing mapping f:S→CC} = 3 (e.g. by taking S= {1,2,3}and f(1)=(x,1), f(2)=(a,2), f(3)=(z,0)). Thus, from Theorem 7 we obtain the maximum number of applications of rules in a transition step from the current configuration: β1(Π,C)=7. 3.2. Parallel communication case In order to compute the maximum number of applications of rules performed in one step in the parallel case we do not need to study separately evolution and communication rules. Theorem 10. Let Πbe a P system using a parallel communication semantics, and let Cbe a configuration of Π. Then the maximum number β1(Π,C)of applications of rules performed in one transition step starting from Cis β1(Π,C)=#CE+#CC. Proof. In this case the number of applications of rules performed in one transition step starting from Cis constant, regardless of the non-determinism of the P system. Indeed, because the maximal parallel condition applies both over evolution and communication rules, no “usable” object will remain unused. Therefore, the number of applications of rules for any possible transition step starting from Ccoincides with the number of objects in the configuration that can trigger at least one rule. The following example illustrates this result. Example 11. Let us consider again the P system from Example 9 and the same configuration, but now considering the parallel communication semantics. In this case, the sets CEand CCdo not change, because they are independent of the semantics of the system. Therefore, β1(Π,C)=#CE+#CC=10. 4. An estimation of maximal parallelism In the previous section we have obtained the maximum number of applications of rules for any transition step starting from a given configuration. We intend to extend our study to all possible transition steps in the computation tree. Given a configuration, there might exist several possible computations to follow, and many different reachable configurations. We shall give an upper bound to the number of applications of rules performed in a transition step from any configuration of the computation tree. Such a bound can be used for estimating, given a P system design, which is the degree of parallelism that it is using, as it gives a maximum number of simultaneous applications of rules for any step of any computation of the system. It is worth remarking that this estimation is done without performing all the computations. In order to obtain such an estimation, we start by building an extension to the notion of dependency graphs of a P system, that will be called labelled dependency graphs. Dependency graphs of P systems were presented in [5] as a tool for finding short paths in computation trees. Later they were used for studying the borderline of the tractability through P systems (see, e.g., [10]). Before going on, we briefly recall the main features of dependency graphs. The dependency graph of a P system Πis a directed graph GΠ=(VΠ,EΠ)such that VΠis the set of all the pairs (z,m)where zis a symbol of the alphabet of Πand mis the label of a membrane, and EΠis the set of all ordered
pairs (arcs) of elements of VΠ,((z1,m1), (z2,m2)), where (z1,m1)is the LHS of a rule and (z2,m2)belongs to the RHS of that rule (recall the notation introduced in Section 2.4). The previous definition can be extended to labelled dependency graphs by modifying the arcs in the following way. Given a rule r≡(a0,m1)→(a1,m2)(a2,m2) . . . (an,m2), for each (e,m2)in the RHS of rwe shall consider a directed labelled arc (a0,m1)r/k −→ (e,m2), where kis the multiplicity of (e,m2)in the RHS of rule r. It is clear that, given two nodes of the graph, there might exist several arcs connecting them with different labels,3in case both nodes are involved together in more than one rule. Note that the labelled dependency graph, in the same way as the dependency graph, does not depend on the initial configuration. It only depends on the alphabet, the membrane structure and the set of rules of the P system. We shall extract information from this labelled dependency graph that allows us to compute an integer β(Π,C), associated with a P system Πand a configuration C, denoting an “accurate” (in a sense that will be explained later) upper bound of the number of simultaneous applications of rules performed in any transition step starting from any configuration reachable from C. In a certain sense, β(Π,C)represents the capability of the P system to exploit the parallelism through the computation. The greater β(Π,C)is, the better is the design, from the point of view of using the parallelism. Next, we give an explicit expression for β(Π,C)(if it exists) based on the labelled dependency graph. As we did in the previous section, we distinguish between the different semantics of the P systems. 4.1. Sequential communication case Let us first consider the semantics where only one object can cross each membrane in a transition step. Theorem 12. Let Πbe a P system, Ca configuration of Πand let Tbe the set of LHS of the rules of Π. Let us consider the sequential communication semantics. Let Gbe the subgraph of the labelled dependency graph of Π generated by the source Cand sink T. The following two statements are equivalent: (1) The number of simultaneous applications of rules in one step starting from any configuration of Πreachable from Cis bounded, and therefore there is a maximum number of such applications. (2) There is no cycle in Gsuch that the labels r/k of its arcs verify that (a)all the rules r involved in the cycle are evolution rules, and (b)at least one of the multiplicities k appearing in the cycle is greater than 1. Proof. Let us prove 1 ⇒2 by reductio ad absurdum. That is, let us consider the case when there exists in Ga cycle such that all the rules involved in it are evolution rules and such that at least one of the multiplicities kappearing in the cycle is greater than 1. We have to deduce that there is no upper bound on the number of simultaneous applications of rules in one step starting from any configuration of Πreachable from C. Let ψ=(V,E)be such a cycle, with V= {x0, . . . , xn}and E= {(xi,xi+1)|i∈ {0, . . . , n−1} } ∪ {(xn,x0)} and let Kbe the product of multiplicities associated with the arcs in ψ,K≥2. Consider now an element z0in the configuration Csuch that there exists a path, P, from z0to x0in the labelled dependency graph. The existence of such z0is granted since, by definition, Gis the subgraph of the labelled dependency graph of Πgenerated by the source Cand sink T, and therefore every vertex in G(in particular, x0) is reachable from a vertex from C. Let us denote the product of multiplicities of Pby S, and let mbe the length of P. There exists a computation such that in the configuration C0obtained after msteps there are at least Soccurrences of x0(these copies of x0are obtained by application of the rules of the path P). Then, after nfurther steps (nis the length of the cycle ψ) we can reach another configuration where each element x0has produced Kcopies of itself, following the cycle ψ(i.e., the total number of copies of x0is now at least S·K). This cycle of nsteps can be iterated, 3Following [12], the definition of the labelled dependency graph corresponds to an edge-labelled, vertex-labelled, directed loop multigraph.
and after rloops there will be at least S·Krelements x0. All these elements may continue evolving in the next step of the computation, granting the existence of an infinite computation with unbounded number of objects evolving. Thus, we conclude that there is no upper bound for the number of applications in a single transition step. Let us now prove 2 ⇒1. We start from the assumption that if there are cycles in the labelled dependency graph, then they fail to satisfy either the condition (a)or (b). On one hand, consider cycles having at least one communication rule involved in it. Notice that in this case, such a communication rule can be applied only once for each transition step, regardless of the number of objects that could trigger it. That is, the number of simultaneous applications of any communication rule is always 1, irrespectively of the number of available copies of the object appearing in its LHS. In other words, the number of applications of rules in a single step inside the cycle is bounded, even if the product of multiplicities in the arcs in the cycle was greater than 1. On the other hand, it is clear that cycles in Gsuch that all the multiplicities of its arcs are equal to 1 do not cause an increase in the number of objects, and therefore do not cause an increase in the number of simultaneous applications of rules in one transition step. Now, we are going to find, in a constructive way, a bound on the number of simultaneous applications of rules in one transition step starting from any configuration reachable from C. First of all, we know that the number of objects in Cthat can trigger a rule is #CE+#CC, and thus the number of applications of rules in any transition step starting from Cis at most #CE+#CC. Let BΠbe the maximum of the cardinality of the RHS of the rules of Π; then, the number of objects that can trigger a rule in any configuration reachable in one transition step from Cis bounded by (#CE+#CC)·BΠ. This number is obviously also an upper bound for the number of applications of rules in the second step of any computation starting from C. Following a similar reasoning, we deduce that (#CE+#CC)·(BΠ)nis an upper bound for the number of applications of rules performed in any of the (n+1)first steps of any possible computation starting from C. Let us consider now the labelled dependency graph of the P system, and consider all the simple paths in this graph starting from objects in C. Let us denote by ρΠ,Cthe maximum length of these paths. The number of consecutive transition steps increasing the number of applications of rules is bounded by ρΠ,C−1, so the upper bound for the number of applications of rules in a single transition step during any computation starting from Cis (#CE+#CC)·B(ρΠ,C)−1. Note that the computation can be infinite in the case that there exist cycles in G, but as we checked above, they do not cause an increase in the number of applications of rules. From the constructive proof of the previous theorem we deduce the following corollary. Corollary 13. Let Πbe a P system, and let Cbe a configuration of Π. If the maximum number of simultaneous applications of rules in any step starting from Cexists (i.e., if it is finite), then it is less than or equal to the bound β(Π,C)=(#CE+#CC)·B(ρΠ,C)−1 Π where: •BΠis the maximum cardinal of the RHS of the rules of Π. •ρΠ,Cis the maximum length of the simple paths in the labelled dependency graph of Πstarting from an element of C. We illustrate Theorem 12 with some examples. In the first one β(Π,C)is finite, although we have an infinite computation and the number of objects in a configuration is not bounded. Example 14. Let us consider the P system Πwith alphabet Γ= {a,b,c}, membrane structure µ= [ [ ]1]0, and set of rules: R1: [ a]1→b[ ]1R2: [ b→c2]0R3:c[ ]1→ [ a]1 and let us consider the sequential semantics. The labelled dependency graph of this P system is depicted in Fig. 2. Πis a non-deterministic P system (as there are two communication rules associated with label 1, and we are considering the sequential semantics). Let [ [ a]1]0be a configuration of Π. A possible computation starting from C is: