<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">General Multigenerative Grammar Systems</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Roman</forename><surname>Luk65r</surname></persName>
							<affiliation key="aff0">
								<orgName type="department" key="dep1">Dept. of Information Systems</orgName>
								<orgName type="department" key="dep2">Faculty of Information Technology</orgName>
								<orgName type="institution">Brno University of Technology</orgName>
								<address>
									<addrLine>BoZetdchova l</addrLine>
									<postCode>61266</postCode>
									<settlement>Brno</settlement>
									<country key="CZ">Czech Republic</country>
								</address>
							</affiliation>
						</author>
						<author role="corresp">
							<persName><forename type="first">Alexander</forename><surname>Medunar</surname></persName>
							<email>meduna@fit.vutbr.cz</email>
							<affiliation key="aff0">
								<orgName type="department" key="dep1">Dept. of Information Systems</orgName>
								<orgName type="department" key="dep2">Faculty of Information Technology</orgName>
								<orgName type="institution">Brno University of Technology</orgName>
								<address>
									<addrLine>BoZetdchova l</addrLine>
									<postCode>61266</postCode>
									<settlement>Brno</settlement>
									<country key="CZ">Czech Republic</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">General Multigenerative Grammar Systems</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">1404BC8597AA53425CAE7B8953275E68</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-24T18:20+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<textClass>
				<keywords>
					<term>Grammar system</term>
					<term>matrix gralrlmar</term>
					<term>general derivation</term>
				</keywords>
			</textClass>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>This paper presents new models for generating matrix languages. These models are based on multigenerative grammar systems that simultaneously generate several strings in a parallel way. The components of these models are context-free grarrrmars, working in a general way. The rewritten nonterminals are determined by a finite set of nonterminal sequences.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I Introduction</head><p>The formal language theory has intensively investigated various grammar systems (see <ref type="bibr">[1]</ref>, l2l, <ref type="bibr" target="#b7">[8]</ref>), which consist of several cooperating components, usually represented by grammars. Although this variety is extremely broad, all these grammar systems always use a derivation that generates a single string. In this paper, however, we introduce grammar systems that simultaneously generate several strings, which are subsequently composed in a single string by some common string operation, such as concatenation.</p><p>More precisely, for a positive integer n, an r-multigenerative grammar system discussed in this paper works with n context-free grarnmatical components in a general way-{hat is, in every derivation step, each of these components rewrites any nonterminal occurring in its current sentential form. These n derivations are controled n-tuples of nonterminals or rules. Under a control like this, the grammar system generates n strings, out of which the strings that belong to the generated language are made by some basic operations. Specifically, these operations include union, concatenation and a selection of the string generated by the first component.</p><p>In this paper, we prove that all the multigenerative grammar systems under discussion characterize the family of languages, which is generated by matrix grammars. Besides this fundamental result, we give several transformation algorithms of these multigenerative grammar systems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Preliminaries</head><p>This paper assumes that the reader is familiar with the formal language theory (see <ref type="bibr" target="#b3">[4]</ref>). For a set, Q, carcl(Q) denotes the cardinality of Q. For an alphabet, V, f represents the free monoid generated by V under the operation of concatenation. The unit of I is denoted by e. Set I/ : I -{e}; algebraically, X rs thus the free semigroup generated by Zunder the operation of concatenation.</p><p>A context-free grammar is a quadruple, G: (N, T, P, 8, where N and T arc disjoint alphabets. Symbols in N and T arc referred to as nonterminals and terminals, respectively, and S e N is the start symbol of G. P is a finite set of rules of the form A ) x, where A e l,'l and x c (N wT).. To declare that a label r denotes the rule, we write as r: A-+ x.Letu, v e (Nu 7)'. For every r: A -&gt; x e P, write uAv = uxv lr], or simply uAv &gt; uxv. Let =' denote the transitive-reflexive closure of =. The language of G, L(G),is defined as L(G) : {w:S -* w rn G,for some, e t' 7.</p><p>A matrix grammar is a pair, H : (G, A4), where G : (N, T, P, S) is a context-free grammar andM isafinitelanguageoveralphabetP,Mc.P'. Letx6, xt,...,xne(l',1 u T)-for any n ) 0, xi-1 ) xi lpil in G for all i: l, ..., n and ppz...pn e M. Then matrix grammar H makes direct derivation step from xsto xr, denoted zIS xs :&gt; xn. Let =. denote the transitive-reflexive closure of =. The language of H, L(H), is defined as L(11): {w: S 3* w in H, for some * e t'y.</p><p>3 Definitions Dejinition 1. An n-multigenerative nonterminal-synchronized grammar system (n-MGN) is an n+l tuple, f : (Gr, Gz, ..., Gn, Q), where Gi: (Ni, Ti, Pi, S,) is a context-free grammar for each i: l, ...,, n, and Q rs a finite set of n-tuples of the form (At, Ar, ..., An), where Ai e Ni for all i: t, ..., n. Then, a sentential n-form of n-MGN is an z-tuple of the form X: (xv xz, ..., xn), where xi e (Niv-1 T)' for all i : I, ...) n.Let y: (urAp1, u2A2y2, ..., u,Anv) and 7 :</p><p>(uppy u2x2r2, ..., u,&amp;rrr) be two sentential n-fotm, where Ai e Ni, Lti, vi, x; e (//, t-r Z;). for all i : 1, ..., n. Let Ai -+ xi € Pifor all i : I, ..., n and (At, A2, ..., Ar) e Q. Then X directly derives X in f, denoted by X = X. h the standard way, we generalize = to -k, k ) 0, 3*, and =*. The n-language of f , n-L(f), is defined as n-L(f): {(wr, w2,...,w,):(S,,Sr,...,S,,)=*(r,, wz,...,w,),w,e T1* forall i:7,...,n}.</p><p>The language generated byl in the union mode, Lu,io,(l), is defined as Lunion(l): {w: (wr, wr, ..., wn) e n-L(l), w e {wi: i: l, ..., n)}.</p><p>The language generated by I in the concatenation mode, L"on,(f), is defined as where Gi: (Ni, Ti, Pi, S,) is a context-free grammar for each i: l, ..., fl, and Q is a finite set of n-tuples of the form (pt,pr, ...,pn), where pi e Pt for all i: l, ...,fl.A sentential n-form for n-MGR is defined as the sentential n-form for an n-MGN. Let y : (utA1r1, u2A2r2, ..., u,y'4rt ) and X : (utxp1, u2x2v2, ..., u,{nvr) are two sentential nform, where Ai € Ni, Lti, ri,xi e (,M, u Ti)for all i: 1, ...) n. Let pi: Ai -+ xi € Pi for all i : I, ..., n and (pv pr,, ..., pn) e Q. Then X directly derives 1 in f, denoted by X =</p><p>X. An n-Ianguage for any n-MGR is defined as the n-Ianguage for any n-MGN, and a language generated by n-MGN in the X mode, for each X e {union, conc, first}, is def,rned as the language generated by n-MGR in the X mode. Let Gi: (N,, 7,, Pr, S;) for aIl i : l, ..., n, then: q : ( N,, Ti, 4 ' S,) for all i: l, "', n, where:</p><p>N, : {&lt;A, x&gt;: A-)r € P,} u {Sr}, :-::,, ^-l;J"';-: : :;: ;" j;;:, 4' ) )' Lp^'(l ).</p><p>Theorem 1. The class of languages generated by n-MGN in the X mode, where X e {union, conc, first} is equivalent to the class of language generated by n-MGR in the X mode.</p><p>Proof. This follows from Algorithm l, Algorithm2 and Claim l. . N: {s} , ,! N ); r: l,r,t Convention: Let p: A -&gt; x be a rule. Then, label p denotes rule h(A) --&gt; h(x).</p><p>Ctuim 4. For every matrix grammar H, there is an equivalent 2-MGR in the union mode.</p><p>Proof. Use Algorithm 6 with matrix grarnmar H and w in the input, where w is any string in L(l-l), provided that L(H) is nonempty. Otherwise, w is any string.</p><p>Theorem.S. For every matrix grailrmar, there is an equivalent 2-MGR in the X mode, where X e {union,conc,first}.</p><p>Proof. This follows from Claim 2, Claim 3 and Claim 4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Conclusion</head><p>Let .4(n-MGNx) and /(n-MGRx) denote the language families defined by n-MGN in the X mode and n-MGR in the X mode, respectively, where X e {union, conc, first} , let /(H) denote the family of languages generated by matrix grammars. From the previous results, we obtain: . 4H):.4(i-MGNr,i&gt;2. .</p><p>.1(H) :.4(i-MGRx), i &gt; 2.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head></head><label></label><figDesc>Lronr(l): {wtwz...wn: (w5 w2, ..., wn) e n-L(l)}. The languoge generated by I in the first mode, Lnn,(l), is defined as Lp,r,(l): {wi (wr, wr, ..., wr) e n-L(l)|. Example 1. f : (Gr, Gz, Q), where Gr : ({Sr, I ,), {a, b, c}, {Sr -+ aS1, ,S1 --&gt; aA6 A1 --&gt; bA(, At --&gt; bc\, Sr), Gz : ({Sz, Ar.}, {d}, {Sz -+ SzAz, Sz -) Az, Az -+ d), Sz), Q: {(S', Sz), (Av Az)\ is a 2-multigenerative nonterminal-synchronized grammar system. We have 2-L(f): {(anbnc',dn),n&gt; l},Lu,ion(f) : {a'bnc':n} l} u {d':n &gt; 1}, Lrorr(l): {anbnc'd': n) | }, and Ln^,(f): {anb'c': n&gt; l}. DeJinition 2. An n-multigenerative rule-synchronized grammar system (n-MGR) is n+l tuple f : (Gt, Gz, ..., G* Q),</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head>Example 2 .</head><label>2</label><figDesc>f : (Gt, Gz, Q),where Gr : ({St, Ar}, {a, b, c}, {1: 51 -) rzS1, 2: 51 -+ aA1,3: Ar -) bAp,4z A1 --&gt; bc\, Sr), Gz: ({Sz}, {d}, {l: ,S2 -) S2S2,2z Sz -+,S2, 3: 52 -+ d|, Sz), Q : {(1, l), (2, 2),<ref type="bibr" target="#b2">(3,</ref><ref type="bibr" target="#b2">3)</ref>, (4,3)}, is 2-multigenerative rule-slmchronized granrmar system. We have z-LQ): {(anb'cn,dn): n &gt; 1}, Lunion(f): {anb'c':n&gt; l} v {d': n &gt; l}, L"on"(f): {a'bncn{: n&gt; | }, and Ln,,,(f): {e'bnc': n&gt; l}. 3 Results Algorithm 1. Conversion of n-MGN to n-MGR t Input' n-MGN f : (Gt, Gz, ..., G,, Q) . Outpaf.' n-MGR f : (Gu Gz, ..., G,, Q ) such thatn-L(f1: n-L(T) Method: Let Gi: (N,, Ti, Pi, S;) for all i : l, . . ., n, then: 0 : {Qqr -) /r, Az -+ x2, '.., An ) xr): Ai ) xi e P; for all i : 1, ..., n, and (AvAz,...,An) e Q). Algorithm 2. Conversion of n-MGR to n-MGN o Input' n-MGR f : (G', Gz, ..., Gn, Q) . Outpzt.. n-MGN f : 1 G,,Gr, ..., G,, Q)suchthat n-L(f) : n-L(T ) o Method:</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head></head><label></label><figDesc>ri(a) : {a} for all a e Ti; r1(A) : {&lt;A, x&gt;: A -, x e P;} for all A e Ni. 0 : {G.qt, xt}, 1Az, x2}, ..., &lt;An, xr&gt;): (Al -) rr, Az -) x2, ..., An ) xr) e Q} \J {(S', Sz, . . ., S,) } . Cluim 1. Let f be any n-MGN, let f be any n-MGR and let n-L(f) : n-L(f ). Then, LAD : LAf ;, for each X e {union, conc,first}. Proof. L L,,ion(f): {r' (wr,wr, ...,wr) e n-L(T),w e{w; i: t, ...,n}}: {., (wr,wr, ..., wn) e n-L(T),, * e{wi: i: l, . .., n}} : Lunion(f ). II. Lronr(f) : {wt*r...wnt (wr, wz, ..., wn) e n-L(f)} : {wrwz...wn: (w5 w2, ..., wn) e n-L(T )) : L.-.(f ). IIL LT*,,(f): {w,: (wvw2,...,wn) e n-L(f)}: {wi (wt,wr,...,wn) e n-L(f )} :</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_3"><head>Algorithm 3 .</head><label>3</label><figDesc>Conversion of n-MGR in the concatenation mode to matrix grammar o Input' z-MGR f : (Gr, Gz, ..., G,, Q) . Outpzf.' Matrix grammar H: (G, M) such that L,o,.(f): L(m o Method:Let Gi: (N,, Ti, Pi, Sr) for all i : l, ..., n, and let for any j, k : 1,.. ., fl, whereT + ft holds: N1n Np: A; S € N' Then:G : (N, T, P, 8, where:</figDesc></figure>
		</body>
		<back>
			<div type="annex">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>Let G1: (Nl, Ti, Pi, S) for all i : 1, ..., n, and let for any j, k: 1,. Proof. Use Algorithm 6 with matrix grammar H and w : e in the input.</p><p>Claim 3. For every matrix granrmar H, there is an equivalent 2-MGR in the first mode.</p><p>Proof. Use Algorithm 6 with matrix grammar H and any string w eT" in the input. *</p></div>			</div>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<monogr>
		<title level="m" type="main">Grammar Systems: A Grammatical Approach to Distribution and Cooperation</title>
		<author>
			<persName><forename type="first">E</forename><surname>Csuhaj-Varju</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Dassow</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Kelemen</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Gh</forename><surname>Paun</surname></persName>
		</author>
		<imprint>
			<date type="published" when="1994">1994</date>
			<publisher>Gordon and Breach</publisher>
			<pubPlace>London</pubPlace>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Grammar Systems</title>
		<author>
			<persName><forename type="first">J</forename><surname>Dassow</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Gh</forename><surname>Paun</surname></persName>
		</author>
		<author>
			<persName><forename type="first">G</forename><surname>Rozenberg</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Handbook of Formal Languages</title>
				<editor>
			<persName><forename type="first">G</forename><surname>Rozenberg</surname></persName>
		</editor>
		<editor>
			<persName><forename type="first">A</forename><surname>Salomaa</surname></persName>
		</editor>
		<meeting><address><addrLine>Berlin</addrLine></address></meeting>
		<imprint>
			<publisher>Springer</publisher>
			<date type="published" when="1997">1997</date>
			<biblScope unit="volume">2</biblScope>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<monogr>
		<title level="m" type="main">Introduction to Formal Language Theory</title>
		<author>
			<persName><forename type="first">Michael</forename><forename type="middle">A</forename><surname>Harrison</surname></persName>
		</author>
		<imprint>
			<date>e78</date>
			<publisher>Addison-Wesley</publisher>
			<pubPlace>London</pubPlace>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<monogr>
		<author>
			<persName><forename type="first">A</forename><surname>Meduna</surname></persName>
		</author>
		<title level="m">Automata and Languages: Theory and Applications</title>
				<meeting><address><addrLine>London</addrLine></address></meeting>
		<imprint>
			<publisher>Springer</publisher>
			<date type="published" when="2000">2000</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Two-Way Metalinear PC Grammar Systems and Their Descriptional Complexity</title>
		<author>
			<persName><forename type="first">A</forename><surname>Meduna</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Acta Cybernetica</title>
		<imprint>
			<biblScope unit="page" from="126" to="137" />
			<date type="published" when="2003">2003</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<analytic>
		<title level="a" type="main">On the generative capacity of parallel communicating grammar systems</title>
		<author>
			<persName><forename type="first">Gh</forename><surname>Paun</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Salomaa</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Vicolov</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">International Journal of Computer Mathematics</title>
		<imprint>
			<biblScope unit="volume">45</biblScope>
			<biblScope unit="page">4</biblScope>
		</imprint>
	</monogr>
	<note>tee2</note>
</biblStruct>

<biblStruct xml:id="b6">
	<monogr>
		<title level="m" type="main">Formal Languages</title>
		<author>
			<persName><forename type="first">A</forename><surname>Salomaa</surname></persName>
		</author>
		<imprint>
			<date type="published" when="1973">1973</date>
			<publisher>Academic Press</publisher>
			<pubPlace>New York</pubPlace>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<analytic>
		<title level="a" type="main">On simulating Non-returning PC grammar systems with retuming systems</title>
		<author>
			<persName><forename type="first">G</forename><surname>Vaszil</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Theoretical Computer Science</title>
		<imprint>
			<biblScope unit="volume">209</biblScope>
			<biblScope unit="page" from="319" to="329" />
			<date type="published" when="1998">1998</date>
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
