Next Article in Journal
High-Durability Concrete Using Eco-Friendly Slag-Pozzolanic Cements and Recycled Aggregate
Next Article in Special Issue
Binary Spring Search Algorithm for Solving Various Optimization Problems
Previous Article in Journal
Acoustic Scattering Models from Rough Surfaces: A Brief Review and Recent Advances
Previous Article in Special Issue
Deep Convolutional Neural Networks Object Detector for Real-Time Waste Identification
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Bio-Inspired Model of Picture Array Generating P System with Restricted Insertion Rules

by
Gexiang Zhang
1,*,
G. Samdanielthompson
2,
N. Gnanamalar David
3,†,
Atulya K. Nagar
3 and
K.G. Subramanian
3,†
1
Research Center for Artificial Intelligence, Chengdu University of Technology, Chengdu 610059, China
2
Department of Mathematics, Hindustan College of Arts and Science, Rajiv Gandhi Salai (OMR), Padur, Kelambakkam, Chennai 603103, India
3
School of Mathematics, Computer Science and Engineering, Liverpool Hope University, Liverpool L16 9JD, UK
*
Author to whom correspondence should be addressed.
Honorary Visiting Professor.
Appl. Sci. 2020, 10(22), 8306; https://doi.org/10.3390/app10228306
Submission received: 17 June 2020 / Revised: 21 July 2020 / Accepted: 17 November 2020 / Published: 23 November 2020
(This article belongs to the Collection Bio-inspired Computation and Applications)

Abstract

:
In the bio-inspired area of membrane computing, a novel computing model with a generic name of P system was introduced around the year 2000. Among its several variants, string or array language generating P systems involving rewriting rules have been considered. A new picture array model of array generating P system with a restricted type of picture insertion rules and picture array objects in its regions, is introduced here. The generative power of such a system is investigated by comparing with the generative power of certain related picture array grammar models introduced and studied in two-dimensional picture language theory. It is shown that this new model of array P system can generate picture array languages which cannot be generated by many other array grammar models. The theoretical model developed is for handling the application problem of generation of patterns encoded as picture arrays over a finite set of symbols. As an application, certain floor-design patterns are generated using such an array P system.

1. Introduction

In the area of membrane computing [1,2,3], the novel computing model of P systems, introduced by Păun [4], has served as a framework for dealing with problems in different areas of applications [5], such as optimization problems [6,7,8,9], robots [10,11,12], power systems fault diagnosis [13,14,15], modelling complex market interactions [16], image process [17] and clustering [18], and for Turing computing power [19,20,21,22] and computing efficiency [23,24,25,26,27,28], both in its basic form and in its several variants. One such area of application of P systems is formal language theory with different models of P systems having been developed [29,30,31,32] for handling the problem of generation of classes of languages, starting with the seminal work of Păun [4]. In the extension of language theory to two dimensions, P systems have also played a significant role with different kinds of P systems with array objects and array evolving rules having been introduced (see, for example, [33,34,35]).
The operation of insertion on words [36,37,38,39] has been studied in string language theory in the context of DNA computing [40]. Fujioka [41] considered this operation in two-dimensional picture arrays and introduced a picture array generating model. This model has a feature which is analogous to the pure 2D context-free grammar [42] where the operation is rewriting in parallel all symbols in a column or a row of a (rectangular) picture array by strings of equal length while in [41], insertion (instead of rewriting ) of strings of equal length is done in parallel between columns or between rows.
Here we consider a restricted type of insertion rules with the “contexts” of length at most one, in the regions of a cell-like P system with the objects in the regions being rectangular picture arrays. The main objective of this study is to develop a new theoretical model of an array P system based on the bio-inspired computing model in the area of membrane computing, endowed with the capability to handle the problem of generation of two-dimensional patterns encoded as picture arrays. We compare the generative power of the resulting array P system model introduced here with other well-investigated picture array generating models. We also exhibit an application to generation of floor-design patterns, called “kolam” patterns [43]. A preliminary version of this paper was presented in the conference ACMC 2018 [44].
In Section 2, needed notions and notations relevant to the study undertaken are briefly described, with Section 2.1 providing the basic notions and Section 2.2 recalling picture-insertion system in a restricted form. In Section 3, the new model of array P system with restricted picture insertion rules ( A P R P I S ) is introduced. In Section 4, A P R P I S with one and two membranes are compared. In Section 5, comparison with Pure 2D context-free grammars is done while in Section 6, comparison with certain standard array generating models is carried out. Section 7 provides an application of the new model to generation of floor-designs. In the final Section 8, concluding remarks are given.

2. Preliminaries

For notions related to formal language theory, the reader can refer to [45] and to [42,46,47] for two-dimensional array grammars and languages. For P systems and array P systems, we refer to [4,34].

2.1. Basic Notions

A finite set V of symbols is called an alphabet. A word or a string α = a 1 a 2 a m , a i V , 1 i m , ( m 1 ) of length m over an alphabet V is a finite sequence of symbols belonging to V . The length of a word α is denoted by | α | . The set of all words over V, including the empty word λ with no symbols, is denoted by V * . For any word w = a 1 a 2 a n , t w is the vertical word with the word w written vertically. For example, if α = b a b over the alphabet { a , b } , then t α is b a b . If w is a single symbol of the alphabet, then we write t w as w itself. A rectangular p × q array (also called picture array) X over an alphabet V is of the form
X = a 11 a 1 q a p 1 a p q
where each a i j V , 1 i p , 1 j q . The number of rows of X and the number of columns of X are respectively denoted by | X | r and | X | c . The set of all rectangular arrays over V is denoted by V * * , which includes the empty array λ . V + + = V * * { λ } . A picture language is a subset of V * * .
The column catenation X Y of two arrays X and Y with the same number of rows is formed by juxtaposing Y to the right of X . The row catenation X Y of two arrays X and Y with the same number of columns is formed by juxtaposing Y below X . For example, if
X = a b a a b b b b a a a a b a b a a b b b , Y = b b a b b b a a b a b b , Z = b b a b b b a b a b a a a b b ,
then
X Y = a b a a b b b a b b b a a b b b a a b a b a a b a a b b b a b b , X Z = a b a a b b b b a a a a b a b a a b b b b b a b b b a b a b a a a b b .

2.2. Picture-Insertion System

A picture-insertion system has been considered in [41] with insertion in a picture array being done between columns or between rows, extending the notion of insertion in words [40]. We recall the definition of this system [41] with a special case, namely, with “contexts" of length one in the rules and call this system as a restricted picture-insertion system.
Definition 1.
A restricted picture-insertion system ( R P I S ) is a 4-tuple Γ = ( Σ , I c , I r , A ) where
(i) 
Σ is an alphabet;
(ii) 
I c = { c i 1 i m } , ( m 1 ) where c i , called a column insertion table, is a finite set of column insertion rules with alphabetic contexts of the form ( a , α , b ) , a , b Σ { λ } , α Σ * such that for any two rules ( a 1 , α , b 1 ) , ( a 2 , β , b 2 ) in c i , we have | α | = | β | and either both the left contexts a 1 and a 2 are in Σ (likewise the right contexts b 1 and b 2 are in Σ) or both are λ;
(iii) 
I r = { r j 1 j n } , ( n 1 ) where r j , called a row insertion table, is a finite set of row insertion rules with alphabetic contexts of the form ( d , t γ , e ) , d , e Σ { λ } , γ Σ * such that for any two rules ( d 1 , t γ , e 1 ) , ( d 2 , t δ , e 2 ) in r j , we have | γ | = | δ | and either both the up contexts d 1 and d 2 are in Σ (likewise the down contexts e 1 and e 2 are in Σ) or both are λ;
(iv) 
A Σ * * { λ } is a finite set of axiom arrays.
For picture arrays P , Q Σ * * , a one-step derivation in the R P I S Γ , denoted by P Q , yields Q from P whenever either ( i ) or ( i i ) holds: ( i ) if t a 1 a m and t b 1 b m are two adjacent columns, namely, columns j and j + 1 for some j , 1 j n 1 , in the picture array P of size m × n , and if ( a i , α i , b i ) , 1 i m are column insertion rules in a column insertion table in I c , then the rules can be applied in parallel by inserting α i in the ith row between a i and b i for all i , 1 i m or ( i i ) if d 1 d n and e 1 e n are two adjacent rows, namely, rows k and k + 1 for some k , 1 k m 1 , in the picture array P of size m × n , and if ( d i , t β i , e i ) , 1 i n are row insertion rules in a row insertion table in I r , then the rules can be applied in parallel by inserting t β i in the ith column between e i and d i for 1 i n . Likewise insertions to the immediate left or right (respy. immediate up or down) of a column (respy. row) in the picture array P can be defined by requiring the corresponding left or right or up or down contexts in the rules used, to be λ .
The picture language L ( Γ ) generated by Γ consists of picture arrays derived in one or more finite number of derivation steps starting with an axiom array in A . The family of picture languages generated by R P I S is denoted by R P I L .
Example 1.
Consider the R P I S Γ 1 = ( Σ , I c , I r , A } ) where Σ = { a , b } , I c = { c 1 } , I r = { r 1 } , where
c 1 = { ( a , a b , b ) } , r 1 = { ( a , a , λ ) , ( b , b , λ ) }
and A consists of the array a b a b .
Γ 1 generates a picture language L 1 consisting of picture arrays X Y with X over a and Y over b and | X | r = | Y | r , | X | c = | Y | c . A member of L 1 is shown in Figure 1.
Starting with the axiom array in A , in any step of a derivation, the application of the column insertion rule of c 1 inserts a b in every row between a and b while the application of the row insertion rule of r 1 inserts in every column and just below a row, the symbol a below a and the symbol b below b . In other words, for example, a derivation in which rules of c 1 and then rules of r 1 are applied, is shown below:
a a b b a a b b a a b b c 1 a a a b b b a a a b b b a a a b b b r 1 a a a b b b a a a b b b a a a b b b a a a b b b .

3. Array P System with Restricted Picture Insertion Rules

Linking the two areas, namely, membrane computing and picture languages, an array P system with array-rewriting rules, was introduced in [33], which is one of the earliest models in this topic. This model motivated extensive research with several variants of array P systems being introduced based on different considerations (See, for example, [35] and references therein). We now introduce a new kind of array P system with picture arrays as objects and with restricted picture insertion rules in the regions.
Definition 2.
An array P System with restricted picture insertion rules ( A P R P I S ) is Π = ( Σ , μ , F 1 , , F m , R 1 , , R m , i o ) , where: Σ is the alphabet, μ is a membrane structure with m membranes labelled in a one-to-one way with 1 , 2 , , m ; F i , 1 i m , is a finite set (can be empty) of axiom picture arrays over Σ in the ith region of μ; R i , 1 i m is a finite set of column or row insertion tables as in a R P I S in the ith region of μ; each of the tables has an attached target here, out, in. (as usual, here is omitted and is understood). i o is the label of an elementary membrane of μ (the output membrane).
A computation in A P R P I S is defined in the same way as in an array-rewriting P system [34,35] with the successful computations being the halting ones: each array, from each region of Π, which can be obtained by applying the restricted picture insertion rules to the arrays associated with that region, should be obtained but rules of only one table is applied; the array obtained in a region is placed in the region indicated by the target associated with the table of rules used; the target here indicates that the array remains in the same region, out indicates that the array is sent to the immediate outer region except for the outermost skin membrane in which case the array sent out is “lost” in the environment; and in indicates that the array is sent to the immediately inner membrane, nondeterministically chosen (but if no innner membrane exists, then the table of rules with the target indication in cannot be used). A computation is successful only if it stops and a configuration is reached where no table of rules can be applied to the existing arrays. The result of a halting computation consists of the arrays placed in the output membrane with label i o in the halting configuration. The set of all such arrays computed or generated by the system Π is denoted by A L ( Π ) . The family of all array languages A L ( Π ) generated by systems Π as above, with at most m membranes, is denoted by A P m ( R P I S ) .
We illustrate with an example.
Example 2.
Consider the A P R P I S Π 1 = ( Σ , [ 1 [ 2 ] 2 ] 1 , F 1 , F 2 , R 1 , R 2 , 2 ) where Σ = { a , b , e } , F 1 = { a b a b } , F 2 = ϕ . R 1 consists of the column insertion tables ( c 1 , i n ) , ( c 2 , i n ) and R 2 consists of row insertion table ( r , o u t ) where
c 1 = { ( a , a b , b ) } , c 2 = { ( a , e , b ) } , r = { ( a , a , λ ) , ( b , b , λ ) } .
In a computation in Π 1 , since only the region 1 has an axiom picture array a b a b , application of the rule of the table c 1 will insert a b between a and b in every row and the resulting array is sent to region 2 due to target indication i n . Application of the rules in r in region 2 inserts a row below one of the rows with a below a and b below b and the array is sent back to region 1 due to target indication o u t . The process can repeat. If in region 1, the rule of the table c 2 is applied then e is inserted between a and b in every row resulting in an array of the form
a a e b b a a e b b
and the array is sent to the output region 2. The computation halts as no other rule could be applied. Note that in the rules in r there is no rule that allows insertion below e and hence the rules of the table r can no longer be applied. The arrays generated are of the form M 1 M 2 M 3 where M 1 is an array over a , M 3 is an array over b and M 2 is an array with only one column of e s . Also, | M 1 | c = | M 3 | c = | M 1 M 2 M 3 | r . In otherwords, the number of rows of the array generated equals the number of columns of M 1 which equals the number of columns of M 3 . One such array is shown in Figure 2.

4. A Hierarchy between One Membrane and Two Membranes

We now compare the families A P 1 ( R P I S ) and A P 2 ( R P I S ) and establish that A P 1 ( R P I S ) is properly included in A P 2 ( R P I S ) . It remains to explore whether the hierarchy collapses or not for higher number of membranes.
Theorem 1.
R P I L = A P 1 ( R P I S ) A P 2 ( R P I S )
Proof. 
In a R P I S as well as A P R P I S with one membrane, the rules are only the R P I S rules and so it is clear that R P I L = A P 1 ( R P I S ) . Also by definition, the inclusion A P 1 ( R P I S ) A P 2 ( R P I S ) follows. The proper inclusion follows from Example 2 on noting that in any picture array M generated, the number of columns = 2 × the number of rows + 1 . If there is only one membrane, there is no way to control application of the rules of the column and row tables as all the tables of rules are in the same region. ☐

5. Comparison with Pure 2D Context-Free Grammars

We now compare the generative power of A P R P I S with certain similar picture generating models. The insertion rules considered both in R P I S and A P R P I S are restricted forms of the insertion rules considered in the picture insertion system defining the class I N P A [41]. Yet we show that there are picture array languages generated by A P R P I S with two membranes that are not in the class I N P A . Also, in [42], a picture array generating model, called pure 2D context-free grammar ( P 2 D C F G ) , is proposed and the generative power of this model is investigated. In this model, all symbols in a column or in a row of a m × n picture array are rewritten by pure context-free rules [42] of the form a α with α in all the rules in a table having the same length. The family of languages generated by P 2 D C F G is denoted by P 2 D C F L . Two variants of P 2 D C F G , called ( l / u ) P 2 D C F G and ( r / d ) P 2 D C F G which are incomparable with P 2 D C F G have also been considered [48,49]. In a ( l / u ) P 2 D C F G the symbols in the leftmost column or the uppermost row only are rewritten while in a ( r / d ) P 2 D C F G the symbols in the rightmost column or the lowermost row are rewritten. We show that there are picture array languages that can be generated by A P R P I S with two membranes but cannot be in P 2 D C F L , ( l / u ) P 2 D C F L and ( r / d ) P 2 D C F L .
Theorem 2.
1.
A P 2 ( R P I S ) P 2 D C F L ϕ
2.
A P 2 ( R P I S ) ( l / u ) P 2 D C F L ϕ
3.
A P 2 ( R P I S ) ( r / d ) P 2 D C F L ϕ
4.
A P 2 ( R P I S ) I N P A ϕ
Proof.
Consider the picture array language L 2 consisting of m × ( 3 n + 2 ) arrays ( m 2 , n 1 ) , such that an array in L 2 is of the form M 1 M 2 M 3 M 4 M 5 where M 1 , M 3 , M 5 are m × n arrays over { a } , { b } , { d } respectively and M 2 , M 4 are m × 1 arrays over { e } . The language L 2 cannot belong to any of the families P 2 D C F L , ( l / u ) P 2 D C F L and ( r / d ) P 2 D C F L because in P 2 D C F G generating in different modes, a language in any of these families, symbols in an array can be rewritten in only one column at a time. The language L 2 cannot also belong to the class I N P A for a similar reason. This means that the array with columns of a s in the beginning, columns of b s in the middle and columns of d s in the end, equal in number, cannot be generated.
The language L 2 is generated by the A P R P I S Π 2 with two membranes where
Π 2 = ( { a , b , d , e } , [ 1 [ 2 ] 2 ] 1 , F 1 , F 2 , R 1 , R 2 , 2 )
with F 1 = { a b d a b d , } F 2 = ϕ . R 1 consists of the column insertion table. ( c 1 , i n ) and a row insertion table ( r , h e r e ) and R 2 consists of the column insertion tables ( c 3 , o u t ) , ( c 2 , h e r e ) , ( c 4 , h e r e ) where
c 1 = { ( a , a b , b ) } , c 2 = { ( a , e , b ) } ,
c 3 = { ( b , d , d ) } , c 4 = { ( b , b e , d ) } ,
and
r = { ( a , a , λ ) , ( b , b , λ ) , ( d , d , λ ) } .
The region 1 alone has an axiom picture array. So a computation in Π 2 can start in this region with the applicable tables of rules. If the rule of column insertion table c 1 is applied then a b will be inserted in every row between two adjacent columns of a s and b s and the array is sent to region 2. If in this region the rule of column insertion table c 3 is applied then d will be inserted in every row between two adjacent columns of b s and d s and the array is sent back to region 1. The process can repeat. At any time, the rule of the row insertion table r can be applied, thus inserting in the picture array a row of the form a a b b d d . If at any time, instead of c 3 , the rule of the column insertion table c 2 (respy. c 4 ) is applied in region 2, then a column of e s will be inserted between two adjacent columns of a s and b s (respy. columns of b s and d s ). A correct sequence of application of the rules is to apply now in region 2, the rule of the column table c 2 followed by c 4 or c 4 followed by c 2 , thus generating a picture array of the form shown in Figure 3. Region 2 is the output region and arrays collected here form the picture array language generated which is L 2 .

6. Comparison with Certain Standard 2D Grammar Models

A well-known class of two-dimensional picture array languages, called the family of context-sensitive matrix languages ( C S M L ) , was introduced by Siromoney et al. [50]. The corresponding class of grammars, known as C S M G involves two phases of generation with the first phase generating a string s over intermediate symbols and in the second phase all the intermediate symbols in s are rewritten in parallel by regular nonterminal rules of the form A a B , or together terminated by regular terminal rules of the form A a , ( A , B are nonterminals and a is a terminal symbol), thus generating the columns of the picture array. The words in the first phase form a context-sensitive language. An extension, called T C S M L of the family C S M L was introduced in [51] by having in a C S M G , an additional feature of tables of nonterminal rules or tables of terminal rules in the second phase. It was shown in [51] that C S M L T C S M L . We show here that there are picture array languages that cannot be in T C S M L but can be generated by A P R P I S with two membranes.
Theorem 3.
A P 2 ( R P I S ) T C S M L ϕ
Proof.
Consider the picture array language L 3 consisting of ( 2 m + 1 ) × ( 2 m + 1 ) arrays, ( m 1 ) , such that an array in L 3 is of the form ( M 1 M 2 M 3 ) M 4 ( M 3 M 2 M 1 ) where M 1 , M 3 are m × m arrays over { a } , { b } respectively, M 2 is an m × 1 array over { e } and M 4 is an 1 × ( 2 m + 1 ) array over { e } . A member of L 3 is shown in Figure 4. The language L 3 cannot belong to the family T C S M L . In fact in a grammar generating a picture array in a language in T C S M L , the number of rows above and below a distinct row of a generated array, cannot be maintained to be equal as the application of the tables of rules cannot be controlled.
The language L 3 is generated by the A P R P I S Π 3 with two membranes where
Π 3 = ( { a , b , e } , [ 1 [ 2 ] 2 ] 1 , F 1 , F 2 , R 1 , R 2 , 2 )
with F 1 = { a b b a } , F 2 = ϕ . R 1 consists of the column insertion tables ( c 1 , i n ) , ( c 2 , i n ) and R 2 consists of the row insertion tables ( r 3 , o u t ) , ( r 4 , h e r e ) where
c 1 = { ( a , a b , b ) , ( b , b a , a ) } , c 2 = { ( a , e , b ) , ( b , e , a ) } ,
r 3 = { ( a , t a b , b ) , ( b , t b a , a ) } , r 4 = { ( a , e , b ) , ( b , e , a ) , ( e , e , e ) } .
Starting with the axiom picture array in region 1, a computation in Π 3 can start in this region with the applicable tables of rules. If the rules of column insertion table c 1 are applied then a b will be inserted in every row between the two symbols a and b in two adjacent columns while b a will be inserted in every row between the two symbols b and a in the same two adjacent columns, thus adding two columns to the picture array. The array generated is sent to region 2. If in this region the rules of row insertion table r 3 is applied then a b will be inserted in all columns between the symbols a and b in two adjacent rows while b a will be inserted between the symbols b and a in the same two adjacent rows, thus adding two rows to the picture array and the array is sent back to region 1. The process can repeat. If at any time, the rules of the column insertion table c 2 are applied in region 1, then a column of e s will be inserted between the two adjacent columns t a a b b and t b b a a and the array is sent to region 2. A correct sequence of application of the tables of rules is to apply now in region 2, the rules of the row table r 4 , thus generating a picture array of the form shown in Figure 4. Region 2 is the output region and arrays collected here form the picture array language generated which is L 3 .  ☐
Head [52] introduced splicing systems while proposing a theoretical model of DNA recombination. Berstel et al. [53] introduced a variant of splicing system, known as flat splicing system and noted ([53] P4) that the flat splicing system involving the operation of flat splicing on words and the insertion system [40] involving the operation of insertion on words, have similarity but the systems are incomparable. Extending the operation of flat splicing to picture arrays, a picture array generating model, called array flat splicing system ( A F S ) , was introduced and investigated in [54]. Here we show that picture array languages that cannot be generated by any A F S can be generated by A P R P I S with two membranes. The family of picture array languages generated by A F S is denoted by L ( A F S ) .
Theorem 4.
A P 2 ( R P I S ) L ( A F S ) ϕ
Proof.
Consider the picture array language L 4 consisting of m × ( n + 2 ) arrays, ( m 2 , n 1 ) , such that an array in L 4 is of the form M 1 M 2 M 3 where M 1 , M 3 are m × 1 arrays over { x } , { y } respectively and M 2 is an m × n array over { a } . A member of L 4 is shown in Figure 5. The language L 4 does not belong to the family L ( A F S ) [54].
The language L 4 is generated by the A P R P I S Π 4 with two membranes where
Π 4 = ( { x , y , a } , [ 1 [ 2 ] 2 ] 1 , F 1 , F 2 , R 1 , R 2 , 2 )
with F 1 = { x a y x a y } . F 2 = ϕ . R 1 consists of the column insertion tables. ( c 1 , h e r e ) , ( c 2 , i n ) and a row insertion table ( r , h e r e ) where
c 1 = { ( x , a , a ) } , c 2 = { ( a , a , y ) } , r = { ( x , x , λ ) , ( y , y , λ ) , ( a , a , λ ) } .
We note that the rule of the column insertion table c 1 inserts a column of a s but the array remains in the region 1 itself. The rule of the column insertion table c 2 has the same effect but the array is sent to the output region 2. The rule of the row insertion table r inserts a row of the form x a a y while an array is generated. ☐
A class of array grammars called parallel contextual array grammars was considered in [55]. Several variants were introduced and their properties established. External parallel contextual array grammar is one such variant generating rectangular picture arrays and the family of picture array languages generated by this kind of array grammars is denoted by EPCA. Here we show that there are picture array languages not in EPCA, which can be generated by ( A P R P I S ) .
Theorem5.
A P 2 ( R P I S ) EPCA ϕ
Proof.
Consider the picture array language L 5 = L 5 L 5 . L 5 consists of 3 × ( 2 n + 1 ) arrays, ( n 0 ) , such that an array M in L 5 is over { a } and is of the form as shown in Figure 6. L 5 consists of 3 × ( 2 n + 3 ) arrays, ( n 0 ) , such that an array M in L 5 is over { a , b } and is of the form as shown in Figure 7. The first and last columns of M are respectively a b a and b a b while all other symbols are a. The language L 5 has been proved to be not in the family EPCA ([55] Lemma 4.5).
But the language L 5 is generated by the A P R P I S Π 5 with two membranes where
Π 5 = ( { a , b } , [ 1 [ 2 ] 2 ] 1 , F 1 , F 2 , R 1 , R 2 , 2 )
with F 1 = F 2 = { M 1 = a a a a a a a a a , M 2 = a a b b a a a a b } . R 1 consists of the column insertion tables. ( c 1 , h e r e ) , ( c 2 , i n ) where c 1 = { ( a , a a , a ) , ( a , a a , b ) } , c 2 = { ( a , a a , λ ) } . R 2 = .
Since region 2 is the output membrane, the axiom arrays in this region will be collected in the language generated. There are no rules in region 2. So in a computation in Π 5 only the rules in region 1 can be applied to the arrays in region 1. Initially, the rules of the table c 1 as well as the rule of the table c 2 are applicable and any of these should be applied to both the arrays M 1 and M 2 . If the rules of the table c 1 are applied to both M 1 and M 2 , then two columns of a s are inserted yielding arrays
a a a a b b a a a a a a a a b , a a a a a a a a a a a a a a a
but the arrays remain in the same region 1 as the column table c 1 has target h e r e associated with it. The process can repeat. If the rule of the table c 2 is applied to any of the arrays generated in an earlier step (including the axiom arrays), then again two columns of a s are inserted into the array but the generated array is sent to output region 2. Since there are no rules in region 2, these arrays cannot evolve further and are collected in the language generated by Π 5 . The language generated is L 5 .

7. An Application of the Model to “Kolam” Pattern Generation

A “kolam” pattern [43] is a visually pleasing floor design, more common in South India, drawn with curly lines around points arranged in a particular pattern, resulting in the intended “kolam” drawing. In [43] “kolam” patterns were considered as picture arrays in the two-dimensional plane with the labels of the cells of the picture array representing primitive “kolam” patterns [56]. In fact array grammars developed in [43] were used to generate the picture arrays and the labels were replaced by the corresponding primitive patterns, thus yielding the kolam pattern composed of these primitive patterns. Here we illustrate by constructing a A P R P I S generating picture arrays representing a particular set of “kolam patterns”, one member of which is shown in Figure 8. The labels of the arrays stand for the primitive kolam patterns defining the “kolam”. An array representing this kind of a kolam is shown in Figure 9.
Let L k be the picture language consisting of ( m + 2 ) × ( 2 n + 3 ) , m 1 , n 1 picture arrays p such that p ( i , 1 ) = p ( i , n + 2 ) = p ( i , 2 n + 3 ) = b , for i { 1 , m + 2 } , p ( 1 , j ) = d 1 for 2 j n + 1 ; n + 3 j 2 n + 2 , p ( n + 2 , j ) = d 2 for 2 j n + 1 ; n + 3 j 2 n + 2 , p ( i , 1 ) = d 3 , for 2 i n + 1 , p ( i , 2 n + 3 ) = d 4 , for 2 j n + 1 , p ( i , n + 2 ) = e , for 2 i n + 1 and all other p ( i , j ) = d . Here d 1 , d 2 , d 3 , d 4 , d , e stand for the “kolam" primitive patterns as in Figure 10 and b stands for blank.
The picture language L k is generated by the A P R P I S with alphabet. { d 1 , d 2 , d 3 , d 4 , d , e , b } , membrane structure [ 1 [ 2 [ 3 ] 3 ] 2 ] 1 , axiom array b d 1 b d 1 b d 3 d e d d 4 b d 2 b d 2 b in region 1 and no axiom array in regions 2 and 3, with 3 as the output region. The sets R 1 , R 2 , R 3 are the sets of tables of insertion rules in regions 1,2 and 3 respectively, where R 1 contains a column insertion table ( c 1 , i n ) and a row insertion table ( r 1 , h e r e ) , R 2 contains two column insertion tables ( c 2 , o u t ) and ( c 3 , i n ) . Here
c 1 = { ( d 1 , d 1 , b ) , ( d , d , e ) , ( d 2 , d 2 , b ) } , c 2 = { ( b , d 1 , d 1 ) , ( e , d , d ) , ( b , d 2 , d 2 )
c 3 = { ( d 1 , d 1 , b ) , ( d , d , d 4 ) , ( d 2 , d 2 , b ) } ,
r 1 = { ( b , d 3 , d 3 ) , ( d 1 , d , d ) , ( b , e , e ) , ( b , d 4 , d 4 ) } .
In a computation, the rules of table c 1 insert a column of the form t d 1 d d d 2 to the left of the middle column of e s while the rules of table c 2 insert a similar column to the right of the middle column of e s . The generated array is sent to region 2 from region 1 on applying c 1 while it is sent from region 2 to region 1 on applying c 2 . The process can repeat adding equal number of columns to the left and right of the middle column. The application of the rules of the table r 1 inserts below the first row, a row of symbols d 3 d d e d d d 4 as many times as needed and the generated array remains in region 1. When the rules of the table c 3 are applied in region 2, it has the same effect as applying c 2 but the insertion is to the left of the last column and the array is sent to the output region 3, with the computation halting. The generated arrays are the picture arrays of L k and no other array is generated. On replacing the labels of the squares in a generated picture array by the corresponding primitive kolam patterns shown in Figure 10, we obtain the “kolam” itself. One such generated “kolam” is shown in Figure 8. It is interesting to note that the “kolam” pattern in Figure 8 has a mathematically pleasing feature of symmetrical subpatterns on the left and right of the middle line made of the primitive pattern e shown in Figure 10.

8. Concluding Remarks

In the framework of membrane computing, a new picture array generating model, called array P System with restricted picture insertion rules ( A P R I S ) has been introduced. The generative power of this model is exhibited by comparing it with many standard families of picture languages. The main theoretical contribution is that the new model A P R I S can generate picture array languages which cannot be generated by the other picture array grammar models considered here. It will be of interest to compare with other families of picture languages not considered here such as the family of picture languages generated by internal parallel contextual array grammars [55]. As an application of this new theoretical model, certain floor-designs, called “kolam” patterns are generated, thereby showing that the model can handle the problem of generation of patterns encoded as picture arrays over a finite set of symbols.

Author Contributions

Conceptualization of this research was done by K.G.S.; Investigation of theoretical results established and applications were done by G.S. and N.G.D.; Writing and preparation of the draft version were done by K.G.S. and G.S.; Writing and editing and providing suggestions for improving the contents were done by G.Z. and A.K.N. Final submission version was prepared with the involvement of all the authors. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Acknowledgments

The authors thank the reviewers for their useful comments which enabled them to improve the presentation of the paper. This work was supported by the National Natural Science Foundation of China (61972324, 61672437, 61702428), by Beijing Advanced Innovation Center for Intelligent Robots and Systems (2019IRS14), New Generation Artificial Intelligence Science and Technology Major Project of Sichuan Province (2018GZDZX0043) and Artificial Intelligence Key Laboratory of Sichuan Province (2019RYJ06).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Păun, G. Membrane Computing: An Introduction; Springer: Berlin/Heidelbrg, Germany, 2000. [Google Scholar]
  2. Păun, G.; Rozenberg, G.; Salomaa, A. The Oxford Handbook of Membrane Computing; Oxford University Press Inc.: New York, NY, USA, 2010. [Google Scholar]
  3. Pan, L.; Păun, G.; Zhang, G. Foreword: Starting JMC. J. Membr. Comput. 2019, 1, 1–2. [Google Scholar] [CrossRef] [Green Version]
  4. Păun, G. Computing with membranes. J. Comp. System Sci. 2000, 61, 108–143. [Google Scholar] [CrossRef] [Green Version]
  5. Zhang, G.; Pérez-Jiménez, M.J.; Gheorghe, M. Real-life Applications with Membrane Computing. In Emergence, Complexity and Computation Series; Springer: Berlin/Heidelberg, Germany, 2017. [Google Scholar]
  6. Wang, J.; Shi, P.; Peng, H. Membrane computing model for IIR filter design. Inf. Sci. 2016, 329, 164–176. [Google Scholar] [CrossRef]
  7. Zhang, G.; Rong, H.; Neri, F.; Pérez-Jiménez, M.J. An optimization spiking neural P system for approximately solving combinatorial optimization problems. Int. J. Neural Syst. 2014, 24, 1440006. [Google Scholar] [CrossRef]
  8. Zhang, G.; Gheorghe, M.; Pan, L.; Pérez-Jiménez, M.J. Evolutionary membrane computing: A comprehensive survey and new results. Inf. Sci. 2014, 279, 528–551. [Google Scholar] [CrossRef]
  9. Andreu-Guzmán, J.A.; Valencia-Cabrera, L. A novel solution for GCP based on an OLMS membrane algorithm with dynamic operators. J. Membr. Comput. 2019, 1, 1–13. [Google Scholar] [CrossRef] [Green Version]
  10. Wang, X.; Zhang, G.; Neri, F.; Jiang, T.; Zhao, J.; Gheorghe, M.; Ipate, F.; Lefticaru, L. Design and implementation of membrane controllers for trajectory tracking of nonholonomic wheeled mobile robots. Integr. Comput. Aided Eng. 2016, 23, 15–30. [Google Scholar] [CrossRef] [Green Version]
  11. Perez-Hurtado, I.; Martınez-del-Amor, M.A.; Zhang, G.; Neri, F.; Pérez-Jiménez, M.J. A membrane parallel rapidly-exploring random tree algorithm for robotic motion planning. Integr. Comput. Aided Eng. 2020, 27, 121–138. [Google Scholar] [CrossRef]
  12. Buiu, C.; George, A. Membrane computing models and robot controller design, current results and challenges. J. Membr. Comput. 2019, 1, 262–269. [Google Scholar] [CrossRef] [Green Version]
  13. Peng, H.; Wang, J.; Ming, J.; Shi, P.; Pérez-Jiménez, M.J.; Yu, W.; Tao, C. Fault diagnosis of power systems using intuitionistic fuzzy spiking neural P systems. IEEE Trans. Smart Grid 2018, 9, 4777–4784. [Google Scholar] [CrossRef]
  14. Wang, T.; Zhang, G.; Zhao, J.; He, Z.; Wang, J.; Pérez-Jiménez, M.J. Fault diagnosis of electric power systems based on fuzzy reasoning spiking neural P systems. IEEE Trans. Power Syst. 2015, 30, 1182–1194. [Google Scholar] [CrossRef]
  15. Rong, H.; Yi, K.; Zhang, G.; Dong, J.; Paul, P.; Huang, Z. Automatic implementation of fuzzy reasoning spiking neural P systems for diagnosing faults in complex power systems. Complexity 2019, 2019, 2635714. [Google Scholar] [CrossRef]
  16. Sánchez-Karhunen, E.; Valencia-Cabrera, L. Modelling complex market interactions using PDP systems. J. Membr. Comput. 2019, 1, 40–51. [Google Scholar] [CrossRef] [Green Version]
  17. Díaz-Pernil, D.; Gutiérrez-Naranjo, M.A.; Peng, H. Membrane computing and image processing: A short survey. J. Membr. Comput. 2019, 1, 58–73. [Google Scholar] [CrossRef]
  18. Peng, H.; Wang, J.; Shi, P.; Pérez-Jiménez, M.J.; Riscos-Núñez, A. An extended membrane system with active membrane to solve automatic fuzzy clustering problems. Int. J. Neural Syst. 2016, 26, 1–17. [Google Scholar] [CrossRef]
  19. Orellana-Martín, D.; Valencia-Cabrera, L.; Riscos-Núñez, A.; Pérez-Jiménez, M.J. P systems with proteins: A new frontier when membrane division disappears. J. Membr. Comput. 2019, 1, 29–39. [Google Scholar] [CrossRef] [Green Version]
  20. Jiang, Y.; Su, Y.; Luo, F. An improved universal spiking neural P system with generalized use of rules. J. Membr. Comput. 2019, 1, 270–278. [Google Scholar] [CrossRef] [Green Version]
  21. Freund, R. How derivation modes and halting conditions may influence the computational power of P systems. J. Membr. Comput. 2020, 2, 14–25. [Google Scholar] [CrossRef] [Green Version]
  22. Leporati, A.; Manzoni, L.; Mauri, G.; Porreca, A.E.; Zandron, C. A Turing machine simulation by P systems without charges. J. Membr. Comput. 2020, 2, 71–79. [Google Scholar] [CrossRef] [Green Version]
  23. Orellana-Martín, D.; Valencia-Cabrera, L.; Riscos-Núñez, A.; Pérez-Jiménez, M.J. Minimal cooperation as a way to achieve the efficiency in cell-like membrane systems. J. Membr. Comput. 2019, 1, 85–92. [Google Scholar] [CrossRef] [Green Version]
  24. Leporati, A.; Manzoni, L.; Mauri, G.; Porreca, A.E.; Zandron, C. Characterizing PSPACE with shallow non-confluent P systems. J. Membr. Comput. 2019, 1, 75–84. [Google Scholar] [CrossRef] [Green Version]
  25. Cooper, J.; Nicolescu, R. Alternative representations of P systems solutions to the graph colouring problem. J. Membr. Comput. 2019, 1, 112–126. [Google Scholar] [CrossRef] [Green Version]
  26. Sosík, P. P systems attacking hard problems beyond NP: A survey. J. Membr. Comput. 2019, 1, 198–208. [Google Scholar] [CrossRef] [Green Version]
  27. Calude, C.S.; Dinneen, M.J.; Hua, R. Quantum solutions for densest k-subgraph problems. J. Membr. Comput. 2020, 2, 26–41. [Google Scholar] [CrossRef] [Green Version]
  28. Buño, K.; Adorna, H. Distributed computation of a k P systems with active membranes for SAT using clause completion. J. Membr. Comput. 2020, 2, 108–120. [Google Scholar] [CrossRef]
  29. Chen, H.; Freund, R.; Ionescu, M.; Păun, G.; Pérez-Jiménez, M.J. On string languages generated by spiking neural P systems. Fundam. Inform. 2007, 75, 141–162. [Google Scholar]
  30. Ferretti, C.; Mauri, G.; Păun, G.; Zandron, C. On three variants of rewriting P systems. Theor. Comp. Sci. 2003, 301, 201–215. [Google Scholar] [CrossRef] [Green Version]
  31. Krithivasan, K.; Metta, V.P.; Garg, D. On string languages generated by spiking neural P systems with anti-spikes. Int. J. Found. Comput. Sci. 2011, 22, 15–27. [Google Scholar] [CrossRef]
  32. Cruz, R.T.A.D.L.; Cabarle, F.G.; Adorna, H.N. Generating context-free languages using spiking neural P systems with structural plasticity. J. Membr. Comput. 2019, 1, 161–177. [Google Scholar] [CrossRef] [Green Version]
  33. Ceterchi, R.; Mutyam, M.; Pǎun, G.; Subramanian, K.G. Array-rewriting P systems. Nat. Comput. 2003, 2, 229–249. [Google Scholar] [CrossRef]
  34. Subramanian, K.G. P systems and picture languages. In Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2007; Volume 4664, pp. 99–109. [Google Scholar]
  35. Subramanian, K.G.; Sriram, S.; Song, B.; Pan, L. An Overview of 2D Picture Array Generating Models Based on Membrane Computing. In Reversibility and Universality. Emergence, Complexity and Computation; Adamatzky, A., Ed.; Springer: Berlin/Heidelberg, Germany, 2018; Volume 30, pp. 333–356. [Google Scholar]
  36. Fujioka, K. Morphic characterizations with insertion systems controlled by a context of length one. Theoret. Comput. Sci. 2013, 469, 69–76. [Google Scholar] [CrossRef]
  37. Haussler, D. Insertion languages. Inf. Sci. 1983, 31, 77–89. [Google Scholar] [CrossRef]
  38. Margenstern, M.; Păun, G.; Rogozhin, Y.; Verlan, S. Context-free insertion-deletion systems. Theor. Comp. Sci. 2005, 330, 339–348. [Google Scholar] [CrossRef] [Green Version]
  39. Kari, L.; Paun, G.; Thierrin, G.; Yu, S. At the crossroads of DNA computing and formal languages: Characterizing recursively enumerable languages using insertion-deletion systems. DIMACS Ser. Discret. Math. Theor. Comput. Sci. 1999, 48, 329–338. [Google Scholar]
  40. Păun, G.; Rozenberg, G.; Salomaa, A. DNA Computing: New Computing Paradigms; Springer: New York, NY, USA, 1998. [Google Scholar]
  41. Fujioka, K. A Two-Dimensional Extension of Insertion Systems. In Theory and Practice of Natural Computing (TPNC 2014); Dediu, A.H., Lozano, M., Martín-Vide, C., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2014; Volume 8890, pp. 181–192. [Google Scholar]
  42. Subramanian, K.G.; Ali, R.M.; Geethalakshmi, M.; Nagar, A.K. Pure 2D picture grammars and languages. Discret. Appl. Math. 2009, 157, 3401–3411. [Google Scholar] [CrossRef] [Green Version]
  43. Siromoney, G.; Siromoney, R.; Krithivasan, K. Array grammars and Kolam. Comput. Graph. Image Proc. 1974, 3, 63–82. [Google Scholar] [CrossRef]
  44. Samdanielthompson, G.; Nagar, A.K.; David, N.G.; Zhang, G.; Subramanian, K.G. Insertion Based Picture Array P systems. In Proceedings of the ACMC 2018, CDMTCS Research Report Series (CDMTCS-530), Auckland, New Zealand, 10–14 December 2018; Dinneen, M.J., Nicolescu, R., Eds.; University of Auckland: Auckland, New Zealand, 2018. [Google Scholar]
  45. Rozenberg, G.; Salomaa, A. Handbook of Formal Languages; Springer: Berlin/Heidelberg, Germany, 1997. [Google Scholar]
  46. Giammarresi, D.; Restivo, A. Two-dimensional languages. In Handbook of Formal Languages; Rozenberg, G., Salomaa, G., Eds.; Springer: Berlin/Heidelberg, Germany, 1997; pp. 215–267. [Google Scholar]
  47. Morita, K. Two-dimensional languages. In Formal Languages and Applications. Series in Fuzziness and Soft Computing; Martin-Vide, C., Mitrana, V., Păun, G., Eds.; Springer: Berlin/Heidelberg, Germany, 2004; Volume 148, pp. 426–437. [Google Scholar]
  48. Krivka, Z.; Martín-Vide, C.; Meduna, A.; Subramanian, K.G. A Variant of Pure Two-Dimensional Context-Free Grammars Generating Picture Languages. In IWCIA 2014, Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2014; Volume 8466, pp. 123–133. [Google Scholar]
  49. Subramanian, K.G.; Geethalakshmi, M.; David, N.G.; Nagar, A.K. Picture Array Generation Using Pure 2D Context-Free Grammar Rules. In IWCIA 2015 Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2015; Volume 4664, pp. 187–201. [Google Scholar]
  50. Siromoney, G.; Siromoney, R.; Krithivasan, K. Abstract families of matrices and picture languages. Comput. Graph. Image Proc. 1972, 1, 284–307. [Google Scholar] [CrossRef]
  51. Siromoney, R.; Subramanian, K.G.; Rangarajan, K. Parallel/sequential rectangular arrays with tables. Int. J. Comput. Math. 1977, 6, 143–158. [Google Scholar] [CrossRef]
  52. Head, T. Formal language theory and DNA: An analysis of the generative capacity of specific recombinant behaviours. Bull. Math. Biol. 1987, 49, 735–759. [Google Scholar] [CrossRef]
  53. Berstel, J.; Boasson, L.; Fagnot, I. Splicing systems and the Chomsky hierarchy. Theor. Comput. Sci. 2012, 436, 2–22. [Google Scholar] [CrossRef]
  54. Pan, L.; Nagar, A.K.; Subramanian, K.G.; Song, B. Picture Array Generation Using Flat Splicing Operation. J. Comput. Theoret. Nanosci. 2016, 13, 3568–3577. [Google Scholar] [CrossRef]
  55. Subramanian, K.G.; Van, D.L.; Helen Chandra, P.; Quyen, N.D. Array Grammars with Contextual Operations. Fundam. Inform. 2008, 83, 411–428. [Google Scholar]
  56. Nagata, S.; Robinson, T. Digitalization of Kolam Patterns and Tactile Kolam Tools. In Formal Models, Languages and Applications; Subramanian, K.G., Rangarajan, K., Madhavan, M., Eds.; World Scientific Publishing: Singapore, 2007; pp. 354–363. [Google Scholar]
Figure 1. A picture array in the language L 1 .
Figure 1. A picture array in the language L 1 .
Applsci 10 08306 g001
Figure 2. A picture array generated by Π 1 .
Figure 2. A picture array generated by Π 1 .
Applsci 10 08306 g002
Figure 3. A picture array generated by Π 2 .
Figure 3. A picture array generated by Π 2 .
Applsci 10 08306 g003
Figure 4. A picture array generated by Π 3 .
Figure 4. A picture array generated by Π 3 .
Applsci 10 08306 g004
Figure 5. A picture array generated by Π 4 .
Figure 5. A picture array generated by Π 4 .
Applsci 10 08306 g005
Figure 6. A picture array in L 5 .
Figure 6. A picture array in L 5 .
Applsci 10 08306 g006
Figure 7. A picture array in L 5 .
Figure 7. A picture array in L 5 .
Applsci 10 08306 g007
Figure 8. A “Kolam” pattern.
Figure 8. A “Kolam” pattern.
Applsci 10 08306 g008
Figure 9. Array representing the “kolam” in Figure 8.
Figure 9. Array representing the “kolam” in Figure 8.
Applsci 10 08306 g009
Figure 10. A set of primitive “Kolam” patterns.
Figure 10. A set of primitive “Kolam” patterns.
Applsci 10 08306 g010
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhang, G.; Samdanielthompson, G.; David, N.G.; Nagar, A.K.; Subramanian, K.G. A Bio-Inspired Model of Picture Array Generating P System with Restricted Insertion Rules. Appl. Sci. 2020, 10, 8306. https://doi.org/10.3390/app10228306

AMA Style

Zhang G, Samdanielthompson G, David NG, Nagar AK, Subramanian KG. A Bio-Inspired Model of Picture Array Generating P System with Restricted Insertion Rules. Applied Sciences. 2020; 10(22):8306. https://doi.org/10.3390/app10228306

Chicago/Turabian Style

Zhang, Gexiang, G. Samdanielthompson, N. Gnanamalar David, Atulya K. Nagar, and K.G. Subramanian. 2020. "A Bio-Inspired Model of Picture Array Generating P System with Restricted Insertion Rules" Applied Sciences 10, no. 22: 8306. https://doi.org/10.3390/app10228306

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop