A new way to obtain homology groups in Binary 2D images using membrane computing
Abstract
Membrane Computing is a computational model inspired in the structure and function of living cells and tissues. In this paper we use Membrane Computing techniques to solve the Homology Groups of Binary 2D Image (HGB2I) Problem. This is a classical problem in Homology Theory which tries to calculate the number of connected components and the representative curves of the holes of these components of a given binary 2D image. To this aim, we use a family of P systems whih solves all the instances of the problem in the framework of Tissue-like P systems with catalysts.
Full text
A NEW WAY TO OBTAIN HOMOLOGY GROUPS IN BINARY 2D IMAGES USING MEMBRANE COMPUTING DANIEL DÍAZ-PERNIL 1 , MIGUEL A. GUTIÉRREZ-NARANJO 2 , PEDRO REAL 1 , AND VANESA SÁNCHEZ-CANALES 1 Abstrat. Membrane Computing is a omputational mo del inspired in the struture and funtion of living ells and tissues. In this paper we use Membrane Computing tehniques to solve the Homology Groups of Binary 2D Image (HGB2I) Problem . This is a lassial problem in Homology Theory whih tries to alulate the numb er of onneted omp onents and the representative urves of the holes of these omp onents of a given binary 2D image. To this aim, we use a family of P systems whih solves all the instanes of the problem in the framework of Tissue-like P systems with atalysts . Introdution Natural Computing studies new omputational paradigms inspired from Nature. It abstrats the way in whih Nature ats , oneiving new omputing mo dels from natural phenomena in physis, hemistry and biology 1 . The eld is growing rapidly and urrently there are many op en researh lines based on Nature, oering solutions to many lassial omputational problems from a new p ersp etive. From this new paradigm, we an ite areas suh as Cel lular Automata [29℄, Geneti algorithms [15℄, Neural Networks [21℄, DNA-based moleular omputing [1℄, Swarm Intel ligene [11℄ or Membrane Computing [24, 25℄ among others. All these omputational paradigms have in ommon the use of an alternative way of eno ding the information, adapted to the bio-inspired substrate and the use of intrinsi parallelism of natural pro esses. In this pap er we use tehniques from Membrane Computing 2 . This new researh area was b orn from the assumption that the pro esses taking plae within the ompartmental struture of a living ell an b e interpreted as omputations [25℄. In partiular, it fo uses on membranes, whih are involved in many reations taking plae inside various ompartments of a ell. Biologial membranes are muh more than mere barriers that dene ompartments. They at as seletive hannels of ommuniation b etween dierent ompartments as well as b etween the ell and its environment [2℄. The omputational devies in Membrane Computing are alled P systems . Roughly sp eaking, a P system onsists of a membrane struture, in the ompartments of whih one plaes multisets of ob jets whih evolve aording to given rules. In the most extended mo del, the rules are applied in a synhronous non-deterministi maximally parallel manner, but some other semantis are b eing explored. Membranes divide the Eulidian spae into regions, whih ontains ob jets. Ob jets evolve aording to lo al reation rules. Suh ob jets an b e desrib ed by symb ols or by 1 An intro dution on Natural Computing an b e found in [16℄. 2 We refer to [25℄ for basi information in this area, to [27 ℄ for a omprehensive presentation and the web site [30℄ for the up-to-date information. 1
2DANIEL DÍAZ-PERNIL 1 , MIGUEL A. GUTIÉRREZ-NARANJO 2 , PEDRO REAL 1 , AND VANESA SÁNCHEZ-CANALES 1 strings of symb ols from a given alphab et. These ob jets an also pass through membranes, under the ontrol of sp ei rules. We will fo us here on a P system mo del alled (b eause of their membrane struture) Tissue-like P systems . This P system mo del has two biologial inspirations (see [20℄): interellular ommuniation and o op eration b etween neurons. The ommon mathematial mo del of these two mehanisms is a net of pro essors dealing with symb ols and ommuni- ating these symb ols along hannels sp eied in advane. The ommuniation among ells is based on symp ort/antip ort rules 3 . Symp ort rules move ob jets aross a membrane together in one diretion, whereas antip ort rules move ob jets aross a membrane in opp osite diretions. Homology theory is a branh of algebrai top ology that attempts to distinguish b etween spaes by onstruting algebrai invariants that reet the onnetivity prop erties of the spae. The eld has it origins in the work of Poinaré. Homology groups (related to the dierent n -dimensional holes, onneted omp onents, tunnels, avities, et.) are invariants from Algebrai Top ology whih are frequently used in Digital Image Analysis and Strutural Pattern Reognition. In some sense, they reets the top ologial nature of the ob jet in terms of the numb er and harateristis of its holes. This is not the rst time in whih life-based metho ds are applied to Algebrai Top ology. In 1996, J. Chao and J. Nakayama onneted Natural Computing and Algebrai Top ology using Neural Networks [7℄ (extended Kohonen mapping). Some years after, K.G. Subramanian et al . presented in [6 , 5℄ two works where Digital Image and Natural Computing were linked. In 2009, Christinal et al . presented in [9℄ a new way to obtain the Betti numb ers of a binary 2D and 3D digital image. In this pap er, we present a new tehnique to get not only the Betti numb ers, we obtain the representative urves of the homology group H1 of a binary 2D digital image to o. The neessary time to alulate the homology groups of 2D digital images with basi P systems dened in Setion 2 is logarithmi with resp et to the input data ( O(n) ). This involves an improvement with resp et to the algorithms development by S. Peltier et al . in [28℄, where they use irregular graphs pyramids with a time omplexity of O(n5/3) . The pap er is organized as follows: rstly, we present our bio-inspired formal framework. Next, we briey reall the Homology Groups of Binary 2D Image (HGB2I) Problem . In the next Setion, we present our solution in the framework of tissue-like P systems with atalysts. Finally, some onlusions are presented. 1. Formal Framework In tissue-like P systems the membrane struture is a general undireted graph. The edges of suh graph are not given expliitly, but they are dedued from the set of rules. From the seminal denition of tissue P systems, several researh lines have b een develop ed and other variants have arisen (see, for example, [3, 4, 14 , 18, 26℄). In this pap er, we endow tissue-like P systems with atalysts. Catalyti P systems were intro dued in [24 ℄. The main feature of these P systems is the presene of ob jets in membranes suh that they are not onsumed by the appliation of the rule, but their presene 3 This way of ommuniation for P systems was introdued in [22℄.
A NEW WAY TO OBTAIN HOMOLOGY GROUPS IN BINARY 2D IMAGES USING MEMBRANE COMPUTING3 in the membrane is neessary for the triggering (see, e.g., [12, 13, 19, 17℄. Next we provide the denition of tissue-like P systems with atalysts: Denition 1.1. A tissue-like P system with atalysts of degree q≥1 is a tuple of the form Π = (Γ,E, w1,...,wq,R, i0), where: (1) Γ is a nite alphab et, whose symb ols will b e alled ob jets. (2) E ⊆ Γ is a nite alphab et representing the set of the ob jets in the environment available in an arbitrary large amount of opies. (3) w1,...,wq are strings over Γ representing the multisets of ob jets asso iated with the ells in the initial onguration. (4) R is a nite set of atalyti rules of the following form: (cat |i, u/v, j) for i, j ∈ {0,1,2,...,q}, i 6=j and cat, u, v ∈Γ∗ . The length of a atalyti rule is dened as |u|+|v| . The atalyst cat is mo died by the appliation of the rules and cat and v an b e empty. (5) i0∈ {0,1,2,...,q} denotes the output region, whih an b e the environment ( i0= 0 ) or the region inside a ell ( 1≤i0≤q ). Informally, a tissue-like P system with atalysts of degree q≥1 an b e seen as a set of q ells (eah one onsisting of a single membrane) lab eled by 1,2,...,q . The ells are the no des of a virtual graph, where the edges onneting the ells are determined by the ommuniation rules of the system, i.e., as usual in tissue-like P systems, the edges linking alls are not provided expliitly: If a rule (cat |i, u/v, j) is given, then ells i and j are onsidered linked. The appliation of a atalyti rule (cat |i, u/v, j) onsists on the trade of the multiset u (initially in the ell i ) against the multiset v (initially in j ). The trade an also b e b etween one ell and the environment, lab elled by 0. The rule is applied if in the ell with lab el i the ob jets of the set cat are present (atalyst). If the atalyst is empty, then the rule is alled a ommuniation rule . In our denition, all ob jets in the alphab et an at as atalysts, dep ending on the applied rule. Rules are used as usual in the framework of membrane omputing, that is, in a maximally parallel way (a universal lo k is onsidered). In one step, eah ob jet in a membrane an only b e used for one rule (non-deterministially hosen when there are several p ossibilities), but any ob jet whih an partiipate in a rule of any form must do it, i.e., in eah step we apply a maximal multiset of rules. A onguration is an instantaneous desription of the P system and it is represented as a tuple (w1,...,wq) . Given a onguration, we an p erform a omputation step and obtain a new onguration by applying the rules in a parallel manner as it is shown ab ove. A sequene of omputation steps is alled a omputation . A onguration is halting when no rules an b e applied to it. The output of a omputation is olleted from its halting onguration by reading the ob jets ontained in the output ell. Example 1.2. Let us onsider the following tissue-like P system with atalyst of degree 3, Π = (Γ,E, w1, w2, w3,R, i0) where Γ = {a, b, c, d, e} , E={d} , w1=a , w2=bd and w3=ce .
4DANIEL DÍAZ-PERNIL 1 , MIGUEL A. GUTIÉRREZ-NARANJO 2 , PEDRO REAL 1 , AND VANESA SÁNCHEZ-CANALES 1 The set R has four rules: R1≡(c|2, b/a, 1) R2≡(e|3, c/d, 2) R3≡(3, d/a, 0) R4≡(3, d/b2,0) The output region is i0= 3 . Aording to the set of rules, ell 2 is linked to ells 1 and 3 and ell 3 is linked to the environment. The omputation starts from the initial onguration C0= (w0, w1, w2) . Rule R1 annot b e applied in this initial onguration, sine the atalyst c do es not app ear in ell 2. Rules R3 and R4 annot b e applied, sine ob jet d is not plaed on ell 3. In this initial onguration we only an apply rule 2, sine ob jets e and c are plaed in membrane 3 and d is plaed in membrane 2. After applying this rule we obtain a new onguration. C1= (w′ 0, w′ 1, w′ 2) with w′ 1=a , w′ 2=cb and w′ 3=de . Now, rule 2 an b e applied by interhanging ob jets a and b , b eause the atalyst c is plaed on ell 2. The ommuniation rules 3 and 4 an b e applied, sine d app ears in ell 3 and the environment ontains ob jets a and b , but only one of them an b e applied, and it is non-deterministially hosen. In we ho ose rule 3, then the new onguration is C2= (w′′ 0, w′′ 1, w′′ 2) with w′′ 1=b , w′′ 2=ac and w′′ 3=ae . No more rules an b e applied and the omputation nishes. The output of the omputation is the multiset in ell 3 in the halting onguration w′′ 3=ae . If we ho ose rule 4, the obtained onguration is the same, but w′′ 2=b2e . 2. Calulating Homology Groups In a binary 2D image, the omputation of homology groups an b e redued to a pro ess of blak and white onneted omp onents lab eling. The dierent blak onneted omp onents are the generators of the 0 -dimensional homology group of the blak part of the image whereas the losed blak urves surrounding the dierent white onneted omp onents of the image are the generators of its 1 -dimensional homology group. In order to formalize this problem we will onsider a ordered 4 set of n2 pixels P={(i, j) : 1≤i, j ≤n} . An image on P with olors in the nite set C is a mapping I:P→ C . As usual, suh image an b e written as a set of pairs ((i, j), x) where i, j ∈ {1,...,n} and a=I(i, j) . To simplify we denote aij . As we onsider in this pap er to work with binary images, we take C={b, w} where b o dies blak and w white. The new tehnique for P systems presented in this pap er onsist to assign to eah ob jet o difying a pixel a lab el. So, we our ob jets pass to b e of the form (aij,(i, j)) . We will see b elow how to use these lab els to solve our problem with P systems. From a formal p oint of view we an formulate our problem as follows, Homology Groups of Binary 2D Image (HGB2I) Problem: Given a binary 2D digital image, alulate the numb er of blak onneted omp onents and the representative urves of the holes of these omp onents. We have deide to onsider in this pap er the 4-adjaeny for blak pixels and the 8adjaeny for white pixels. The only one reason to do this hoie is the omputational omplexity from a membrane mo dels p oint of view. It is easier for this typ e of mo dels works with 8-adjaeny for blaks and 4 for whites. Moreover, in this last ase the systems are very similar to the systems show b elow. Then, we have deided to present the membrane solution of HGB2I problem for the 4-adjaeny for blak pixels and the 8-adjaeny for white pixels. 4 We onsider the lexiographi order for N2 in P .
A NEW WAY TO OBTAIN HOMOLOGY GROUPS IN BINARY 2D IMAGES USING MEMBRANE COMPUTING5 2.1. A membrane solution of HGB2I Problem. In order to provide a logarithmi- time uniform solution to the our problem, we design a family of tissue-like P systems with atalyst, Π . Given an image I of size n2 , we take the system of the family Π(n) to work with I . The input data (image I ) is o died by a set of ob jets Aij with A=B∨W and 1≤i, j ≤n . The family of P systems is dened as follows: Π(n) = (Γ,Σ,E, ω1, ω2, ω3, ω4,R1,...,R19,{R15,R17}>R10, iin, i0) where: •Γ = {zi: 1 ≤i≤n+ 6} ∪ {Bij, bij, b′ ij,¯ bij, Wij, wij, w′ ij,(bij,(k, l)),(wij ,(k, l)) : 1 ≤i, j, k, l ≤n} ∪ {(pij,(0,0)),(pji,(0,0)) : i= 0, n + 1,0≤j≤n+ 1} ∪ {Aijkl, Zijkl : (1,1) ≤(i, j)<(k, l)≤(n, n)} . •Σ = {bij, wij : 1 ≤i, j ≤n} . • E = Γ −Σ . •ω1=∅ . •ω2={z1} . •ω3={z1,(pij,(0,0)),(pji,(0,0)) : i= 0, n + 1,0≤j≤n+ 1} . •ω4=∅ . • The sets of rules are: R1≡(1, Aij/aija′ ij,0) for 1≤i, j ≤n . For eah pixel of our input image we generate two opies with these rules. R2≡(1, aij/λ, 2) for 1≤i, j ≤n . R3≡(1, a′ ij/λ, 3) for 1≤i, j ≤n . With the last two typ es of rules, the rst opies of our pixels are sent to ell 2 and the seond opies of our pixels are sent to ell 3. From this p oint, we have two parallel pro esses. A pro ess asso iated to ell 2 (to alulate H0 ) and the seond one asso iated to ell 3 (to alulate H1 ): Rules asso iated to the H0 pro ess: ◦R4≡(2, zi/zi+1,0) for 1≤i≤n+ 1 . These rules generate a ounter that will b e used in the output of the system. ◦R5≡(2, bij/(bij,(i, j)),0) for 1≤i, j ≤n . These rules add lab els to blak pixels in order to work with them. ◦R6≡(2,(bij,(k, l))(bi′j′,(k′, l′))/(bij,(k, l))(bi′j′,(k, l))Aklk′l′,0) for (1,1)≤ (k, l)<(k′, l′)≤(n, n) , 1≤i, j, i′, j′≤n and (i, j) , (i′, j′) adjaent pixels. ◦R7≡(2,(bij,(k, l))(bi′j′,(k′, l′))/(bij,(k′, l′))(bi′j′,(k′, l′))Ak′l′kl,0) for (1,1) ≤(k′, l′)<(k, l)≤(n, n) , 1≤i, j, i′, j′≤n and (i, j) , (i′, j′) adjaent pixels. The two last typ es of rules hange the lab els of adjaent pixels, we need all the adjaent blak pixels to have the same lab el, so we will know that they are all in the same onneted omp onent. ◦R8≡(Aijkl|2,(bi′j′,(k, l))/(bi′j′,(i, j)),0) for 1≤i, j, k, l, i′, j′≤n . In these rules we intro due atalysts, and pro ess b eomes faster. The
6DANIEL DÍAZ-PERNIL 1 , MIGUEL A. GUTIÉRREZ-NARANJO 2 , PEDRO REAL 1 , AND VANESA SÁNCHEZ-CANALES 1 atalyst has b een reated when the pixel lab eled by (k, l) traded its lab el for (i, j) , so (i, j) and (k, l) are adjaent pixels and other pixels with these lab els an b e hanged. ◦R9≡(zn+2|2,(bij,(i, j))/λ, 4) . With these rules we send one pixel for eah onneted omp onent to the ell 2. Rules asso iated to H1 pro ess: ◦R10 ≡(3, zi/zi+1,0) for 1≤i≤n+ 5 . This rule ounts the numb er of steps of the pro ess. We will use this to start the Deleting Stage after n+ 2 steps, and the Segmenting Stage after n+ 4 steps. ◦R11 ≡(3, wij/(wij,(i, j)),0) for 1≤i, j ≤n . These are the only rules used in the Label Al loation Stage . These rules add lab els to white pixels in order to work with them. ◦R12 ≡(3,(wij ,(k, l))(wi′j′,(k′, l′))/(wij,(k, l))(wi′j′,(k, l))Zklk′l′,0) for (1,1) ≤ (k, l)<(k′, l′)≤(n, n) , 1≤i, j, i′, j′≤n and (i, j),(i,′j′) adjaent pixels. ◦R13 ≡(3,(wij,(k, l))(wi′j′,(k′, l′))/(wij,(k′, l′))(wi′j′,(k′, l′))Zk′l′kl,0) for (1,1) ≤(k′, l′)<(k, l)≤(n, n) , 1≤i, j, i′, j′≤n and (i, j),(i′, j′) adjaent pixels. These two set of rules are used in Label Conversion Stage to ompare two adjaent white pixels, and hange the lab el of one of them. We need all the adjaent white pixels to have the same lab el. ◦R14 ≡(Zijkl|3,(wi′j′,(k, l))/(wi′j′,(i, j)),0) for 1≤i, j, k, l, i′, j′≤n . The atalyst Zijkl ats to b eome the pro ess faster. It has b een reated when the pixel lab eled by (k, l) traded its lab el for (i, j) , so (i, j) and (k, l) are adjaent pixels and other pixels with these lab els an b e hanged. ◦R15 ≡(zn+3|3,(pij,(0,0))(wkl,(k′, l′))/(pij,(0,0))(pkl,(0,0))Z00kl,0) for (i, j),(k, l) 8-adjaent pixels, 0≤i, j ≤n+ 1 , 1≤k, l, k′, l′≤n . These rules are used in Deleting Stage to delete white pixels whih are out of the onneted blak omp onent. By using 8-adjaeny, we b eome outer white pixels into pink pixels, in order to dierentiate them from the interior white pixels (holes). We will refer to the ob jets pij as pink pixels. ◦R16 ≡((Z00ij|3,(wi′j′,(i, j))/(pi′j′,(0,0)),0) for , 1≤i, j, i′, j′≤n . A new atalyst ats in the same way, trading white exterior pixel for pink pixels. In this way, the Deleting Stage takes only 2 step. ◦R17 ≡(zn+5|3,(wij,(i′, j′))bkl/(wij,(i′, j′))¯ bkl,0) for 1≤i′, j′, i, j, k, l ≤n and (i, j),(k, l) 8-adjaent pixels. In the Segmenting Stage a blak pixel is marked if it and a white pixel are 8-adjaent pixels. It starts after n+ 2 steps. ◦R18 ≡(3,¯ bij/λ, 4) for 1≤i, j ≤n . At the end, in the Answer Stage , blak marked pixels are sent to membrane numb er 4, so we obtain whih blak pixels are ontaining the holes.
A NEW WAY TO OBTAIN HOMOLOGY GROUPS IN BINARY 2D IMAGES USING MEMBRANE COMPUTING7 ◦R19 ≡(zn+6|3,(wij,(i, j))/λ, 4) for 1≤i, j ≤n . We want to obtain the numb er of holes to o, so these rules send one white pixel for eah hole to membrane numb er 4. •iin = 1 is the input ell. •i0= 4 is the output ell. We will also use priorities among rules. Rules from sets R15 and R17 are applied b efore rules from the set R10 . Figure 1. A simple example of the pro ess to obtain H0 Eah system of the family implements the following stages: (1) Input Stage : When the ob jets Aij (with A=B∨W ) arrive to ell 1 the rst typ e of rules are applied. We hange these ob jets by ob jets aij and a′ ij (with a=b∨w ). In the next step, we send ob jets aij to ell 2 and ob jets a′ ij to ell 3. From this p oint we have two parallel pro esses: The rst pro ess o ur in ell 2, and it is dediated to obtain the numb er of blak onneted omp onents ( H0 ). The seond one is lo ated in ell 3 and is dediated to generate the representative urves of the holes of the blak onneted omp onents. Moreover, system will give us the numb er of these holes ( H1 ). (2) H0 Proess : It b egins when ob jets aij arrive to ell 2. (a) Label Al loation Stage : Cell 3 trades ob jets bij against others with the form (bij,(i, j)) with the environment. The white ob jets are not transformed. (b) Label Conversion Stage : We an ompare the blak adjaent pixels by using atalyst, and we trade the lab el of the greatest pixel against the lab el of the other pixel; i.e. (i, (bij,(i′, j′))(bkl,(k′, l′))/(bij,(i′, j′))(bkl,(i′, j′))Ai′j′k′l′, j) , where (i, j) and (k, l) are adjaent pixels. Moreover, we an see a new ob jet arriving to ell i . It is a atalyst and it is used to o dify if two lab els must b e ompared. Later, they are onneted, and one of them an b e hanged by the other one, as we an see in the Figure 1. () Answer Stage : In the step n+ 2 , the ob jet zn+2 arrives to the ell 1 due to the ounter. It is used by the system as a atalyst, and the ob jets with the form (bij,(i, j)) are sent to the output ell representing eah one to a blak onneted
8DANIEL DÍAZ-PERNIL 1 , MIGUEL A. GUTIÉRREZ-NARANJO 2 , PEDRO REAL 1 , AND VANESA SÁNCHEZ-CANALES 1 omp onent. The P system have used n+ 2 steps to obtain the numb er of blak onneted omp onents of an n2 image. Figure 1 shows a sequene of ongurations of the pro ess to obtain H1 for input data given by the onguration C0 of the piture. Figure 2. Representative ongurations of a simple example to obtain H1 (3) H1 proess : It b egins when ob jets a′ ij arrive to ell 3. (a) Label Al loation Stage : Cell 3 trades ob jets w′ ij against others with the form (wij,(i, j)) with the environment. (b) Label Conversion Stage : We ompare the lab el of two white adjaent pixels, and we trade the lab el of the greatest pixel against the lab el of the other pixel; i.e., we use rules with the form (i, (wij,(i′, j′))(wkl,(k′, l′))/(wij,(i′, j′))(wkl,(i′, j′))Zi′j′k′l′, j) , where (i, j) and (k, l) are adjaent pixels. Moreover, we an see a new ob jet arriving to ell i , Zi′j′k′l′ . It is a atalyst and is used to o dify when two lab els must b e ompared. Then, the lab els are onneted, and one of them an b e hanged by the other one, as we an see in C7 in the Figure 2. () Deleting Stage : Initially, system keeps in ell 1 a set of ob jets o difying the frame of the input image ( p0i, pn+1i, pi0, pin+1 for i= 0,...,n+ 1 ) with the lab el (0,0) asso iated. When the input data is intro dued in the system, the white pixels not ontained inside of blak onneted omp onents are sent to the environment to trade against of ob jets with the form of the frame. We need a linear numb er of steps with resp et to n to eliminate all the p ossible white pixels. We an see the result in C11 in the Figure 2.
A NEW WAY TO OBTAIN HOMOLOGY GROUPS IN BINARY 2D IMAGES USING MEMBRANE COMPUTING9 (d) Segmenting Stage : This part b egins when deleting stage nishes due to the ounter zi (rules R1 ). If there are white pixels in ell 1 in this step are in a hole. The P system takes pairs of adjaent pixels, one blak and the other white, adding a mark to the blak pixels of these pairs. Then, we have marked the blak pixels adjaent to a hole. We need a onstant numb er of steps to segment an image with P systems. Figure 2 shows in C12 how the holes of the image are o died. (e) Answer Stage : We send the marked blak pixels to output ell in the following step to b e marked. So, we obtain, the representative urves of the holes in the image I . We also send white pixels whih keep their lab els, there is only one pixel for eah onneted white omp onent, ie, for eah hole in the image. We only need one step more with resp et to the segmenting stage. Figure 3. Initial and fourth onguration 2.2. Example. In this setion we will show with a simple example our tehnique to obtain the homology groups H0 , and H1 of a 2D image by using membrane omputing. Let us onsider the rst image in Figure 3 whih have 9×9 pixels. The blak pixels represent two onneted omp onents, the white pixels represent the exterior of the omp onents and the holes, one in eah onneted omp onent. In the initial onguration we have 4 ells. There is one ob jet Aij (with A=B∨W ) in ell 1 o difying eah pixel. At the b eginning of the pro ess the system dupliates these elements and sends one opy to the membrane 2 on order to alulate H0 , and the other opy to the membrane 3 in order to alulate H1 . These two pro esses are working at the same time, so we obtain a parallel system. The pro ess to alulate H0 is the following one: The ell 1 has the ob jet z1 working as a ounter, it allow us start a dierent stage after the neessary numb er of the steps. In the