<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">OJMSi</journal-id><journal-title-group><journal-title>Open Journal of Modelling and Simulation</journal-title></journal-title-group><issn pub-type="epub">2327-4018</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ojmsi.2013.13005</article-id><article-id pub-id-type="publisher-id">OJMSi-34305</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Interrelation of Languages of Colored Petri Nets and Some Traditional Languages
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>oharik</surname><given-names>R. Petrosyan</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Andrey</surname><given-names>M. Avetisyan</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Lilit</surname><given-names>A. Ter-Vardanyan</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Seismology, Institute of Geophysics and Engineering Seismology after A. Nazarov of NAS RA, Gyumri, Armenia</addr-line></aff><aff id="aff1"><addr-line>Faculty of Mathematics, Physics and Informatics, Armenian State Pedagogical University after Kh. Abovyan, Yerevan, Armenia</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>petrosyan_gohar@list.ru(ORP)</email>;<email>lilit@sci.am(LAT)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>11</day><month>07</month><year>2013</year></pub-date><volume>01</volume><issue>03</issue><fpage>27</fpage><lpage>29</lpage><history><date date-type="received"><day>January</day>	<month>29,</month>	<year>2013</year></date><date date-type="rev-recd"><day>February</day>	<month>28,</month>	<year>2013</year>	</date><date date-type="accepted"><day>March</day>	<month>7,</month>	<year>2013</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  The article studies the interrelation of Languages of Colored Petri Nets and Traditional formal languages. The author constructed the graph of Colored Petri Net, which generates L* Context-free language. This language may not be modeled using standard Petri Nets [1]. The Venn graph and diagram that the author modified [1], show the interrelation between languages of Colored Petri Nets and some Traditional languages. Thus the class of languages of Colored Petri Nets is supposed to include an entire class of Context-free languages.
 
</p></abstract><kwd-group><kwd>Petri Nets; Colored Petri Nets; Context-Free Languages; Context-Sensitive Languages; Regular Languages</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Petri Nets (PN) is a graphical tool for the formal description of the flow of activities in complex systems. With respect to other more popular techniques of graphical system representation (like block diagrams or logical trees), PN is particularly suited to represent logical interactions among parts or activities in a system in a natural way.</p><p>PN used for modeling real systems is sometimes referred to as Condition/Events nets. Places identify the conditions of the parts of the system (working, idling, queuing, and failing), and transitions describe the passage from one condition to another (end of a task, failure, repair...). An event occurs (a transition fires) when all the conditions are satisﬁed (input places are marked) and give concession to the event. Occurrence of the event completely or partially modifies the status of the conditions (marking). The number of tokens in a place can be used to identify the number of resources lying in the condition denoted by that place. The following examples illustrate typical situations of interaction of activities arising in system modeling [1,2].</p><p>The formal definition of a standard Petri nets:</p><p>Petri Net <img src="2-2860001\22a693e0-d920-4b3e-a340-316f44b7f861.jpg" /> pair, where <img src="2-2860001\77160ad7-d5ec-4d8f-b06a-ba9adb950f17.jpg" /> is the network structure and <img src="2-2860001\a802c6f9-124a-419c-9398-04d239f92a0e.jpg" /> is the network condition.</p><p>In structure C of a P-positions, T-transitions are finite sets. <img src="2-2860001\9748ccc3-f6aa-40eb-97c9-07b16c7087a3.jpg" />are the input and output functions, respectively, where <img src="2-2860001\335eda6e-78a1-4f56-8149-80505005a412.jpg" /> are all possible collections (repetitive elements) of P. <img src="2-2860001\1e08d425-e048-4b1b-be1a-964db1e9ef73.jpg" />is the function of condition, where <img src="2-2860001\2d788ac5-2ccf-4fbb-98a8-3d7a50199054.jpg" /> is the set of integers. We determine (in a known manner) the allowed transitions of Petri Nets and the transitions from one state to another, as well as the set of reachable states [1,2].</p><p>Coloured Petri Nets (CPN) is a graphical oriented language for design, specification, simulation and verification of systems [3-8]. It is in particular well-suited for systems that consist of a number of processes which communicate and synchronize. Typical examples of application areas are communication protocols, distributed systems, automated production systems, work flow analysis and VLSI chips.</p><p>The CPN language allows the model to be represented as a set of modules, allowing complex nets (and systems) to be represented in a hierarchical manner.</p><p>In the classical or traditional Petri Net tokens do not differ from each other, we can say that they are colorless. Unlike standard Petri nets in colored, Petri Net of a position can contain tokens of arbitrary complexity, for example, lists, etc., that enables modeling be more reliable.</p></sec><sec id="s2"><title>2. Definition</title><p>The mathematical definition of Colored Petri Net: CPN is a nine-tuple</p><p><img src="2-2860001\f6ea0538-f161-4a35-8627-84acf3215378.jpg" /></p><p>where:</p><p>1) <img src="2-2860001\4da0d71e-14ad-4fad-83d1-4d652c6f6b76.jpg" />is a finite set of non-empty types, also called color sets. In the associated CPN Tool, these are described using the language CPN-ML [<xref ref-type="bibr" rid="scirp.34305-ref9">9</xref>]. A token is a value belonging to a type.</p><p>2) P is a finite set of places. In the associated CPN Tool these are depicted as ovals/circles.</p><p>3) T is a finite set of transitions. In the associated CPN Tool these are depicted as rectangles.</p><p>4) A is a finite set of arcs. In the associated CPN Tool these are depicted as directed edges. The sets of places, transitions, and arcs are pairwise disjoint, that is</p><p><img src="2-2860001\6a001aab-fccc-4610-9576-784658e1ce44.jpg" />.</p><p>5) N is a node function. It is defined from A into<img src="2-2860001\07aef77f-86bb-44c0-8c39-2f317d7f0fd1.jpg" />. In the associated CPN Tool this depicts the source and sink of the directed edge.</p><p>6) C is a color function,<img src="2-2860001\f70c0fff-5103-4263-a736-b63c50ea3925.jpg" />.</p><p>7) G is a guard function. It is defined from T into expressions such that:</p><p><img src="2-2860001\9fada2f4-eee6-4b17-960e-7e5474072c9e.jpg" /></p><p>8) E is an arc expression function. It is defined from A into expressions such that:</p><p><img src="2-2860001\f5359e8f-34d2-4828-adf3-1fc241816088.jpg" /></p><p>where p is the place of <img src="2-2860001\387ad087-fa23-4b6a-9d55-275b6f16c1c7.jpg" /> and <img src="2-2860001\f84bbb31-98d5-4761-bc57-b517a077c947.jpg" /> denotes the multi-set type over the base type<img src="2-2860001\1477218b-994c-4463-850a-429b7488d53d.jpg" />.</p><p>9) I is an initialization function. It is defined from P into closed expressions so that:</p><p><img src="2-2860001\a6e9e349-2784-41d9-af24-8866ffd2aa3a.jpg" /></p><p>In the CPN Tool this is represented as initial marking next to the associated place.</p><p>The distribution of tokens, called marking, in the places of a CPN determines the state of a system being modeled. The dynamic behavior of a CPN is described in terms of the firing of transitions. The firing of a transition takes the system from one state to another. A transition is enabled if the associated arc expressions of all incoming arcs can be evaluated to a multi-set, compatible with the current tokens in their respective input places, and its guard is satisfied. An enabled transition may fire by removing tokens from input places specified by the arc expression of all the incoming arcs and depositing tokens in output places specified by the arc expressions of outgoing arcs.</p><p>One of the most studied simple class of formal languages is the class of Regular languages. It is known that any Regular language is the language of Petri Nets [1,10]. It’s possible to construct Petri Net, which generates</p><p><img src="2-2860001\47f7dad6-aa62-4905-bf05-1bfdbc5a5891.jpg" />a Context-free language, which is not Regular [<xref ref-type="bibr" rid="scirp.34305-ref1">1</xref>]. Not all the languages of Petri Nets are Context-free, built a network that generates <img src="2-2860001\c3bdf426-c83e-456c-b33b-43d3446adaf4.jpg" /> a Context-sensitive language, which is not Context-free language [<xref ref-type="bibr" rid="scirp.34305-ref1">1</xref>]. Unlike Regular languages, which are the languages of Petri Nets, there are Context-free languages, which are not languages of Petri Nets. Such examples of Context-freе language we are noted the following:</p><p><img src="2-2860001\8ae01646-3251-4c6e-8e42-ece24d21fc35.jpg" /><img src="2-2860001\1a9634b7-7568-4c9b-8e47-4100c94e9145.jpg" />(in particular,<img src="2-2860001\c12d0c08-52b1-4405-b5d5-0719c758b5f5.jpg" />). This fact illustrates the limitation of Petri Net as a tool, that generates the languages [<xref ref-type="bibr" rid="scirp.34305-ref1">1</xref>].</p><p>In Petri Nets is not possible to remember arbitrarily long sequence of arbitrary characters. In Petri Nets the sequence of limited length can be remembered (this is also possible in finite automata) [<xref ref-type="bibr" rid="scirp.34305-ref1">1</xref>].</p><p>However, Petri Nets do not have the “capacity of pushdown memory” which is necessary for the generation of Context-free languages. The interrelation of languages of Petri Nets with other classes of languages investigated Ven [<xref ref-type="bibr" rid="scirp.34305-ref1">1</xref>], this is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref> in the form of a diagram.</p></sec><sec id="s3"><title>3. Results</title><p>We modeled <img src="2-2860001\ed8c870a-dcfa-4a80-8c09-8bdd50972562.jpg" /> language (star Klin) by CPN, in particular<img src="2-2860001\77b174e7-fed6-4965-aa3d-4cf702959163.jpg" />.</p><p>The <xref ref-type="fig" rid="fig2">Figure 2</xref> shows a Colored Petri Net, which generates the <img src="2-2860001\bd695948-6784-44dc-85c8-71ad908d9ffd.jpg" /> language that is, Colored Petri Net is a more powerful tool than the classical Petri Net. To understand types of data which are used in a figure, it is necessary to give a declaration.</p><p>In the figure introduced two positions of count of type and marked as first and second. In the figure, two transitions marked with the symbol a that are generating symbol a, and a transition marked with the symbol b, which generates the symbol b.</p><p>In the figure position of count of type remembers the number of transitions are fired and regulates, so the number of appearances a symbol b was equal to the number of appearances a symbol a.</p><p>In fact, when the marked with a transition is fired, generates the symbol a, if the marked with b transition is fired, generates the symbol b. To the transitions are attached logical expressions (guards):<img src="2-2860001\a22ed535-fbf7-481a-8941-05492f61a2e1.jpg" />, if the logical expression is true, then the transition is allowed, and if false, then the transition is not allowed. If the first position of count of type value of token is equal to one, the marked with a first transition is fired. The value of n must be fixed advance.</p><p>Let n = 2, then is fired marked with a the first transition, and ct = 2, then is fired marked with a the second transition, are generated by aa symbols, in this case second position of count of type value of token is equal to</p><p>two: count= 2, and twice is fired marked with b the transition, are generated by bb, when the value of the first counter is equal to one, cycle will be repeated, etc.</p><p>Many properties of colored Petri nets, as logical expressions, types of markers, the expression of the arcs, etc., which are used to control the transition firing [<xref ref-type="bibr" rid="scirp.34305-ref3">3</xref>].</p><p>In <xref ref-type="fig" rid="fig2">Figure 2</xref> Colored Petri Net is constructed for the given language, which supposes following interrelation of languages of Colored Petri Net with some of traditional languages classes (<xref ref-type="fig" rid="fig3">Figure 3</xref>).</p></sec><sec id="s4"><title>REFERENCES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.34305-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">J. L. Peterson, “Petri Net Theory and the Modeling of Systems,” Prentice Hall, Upper Saddle River, 1981.</mixed-citation></ref><ref id="scirp.34305-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">T. Murata, “Petri Nets: Properties, Analysis and Applications,” Proceedings of the IEEE, Vol. 77, No. 4, 1989, pp. 541-580. doi:10.1109/5.24143</mixed-citation></ref><ref id="scirp.34305-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">K. Jensen, “Coloured Petri Nets: Basic Concepts, Analysis Methods and Practical Use,” Springer-Verlag, Berlin, 1992. doi:10.1007/978-3-662-06289-0</mixed-citation></ref><ref id="scirp.34305-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">K. Jensen, “Coloured Petri Nets: Basic Concepts, Analysis Methods and Practical Use. Volumn 1. Basic Concepts. Monographs in Theoretical Computer Science,” Springer-Verlag, Berlin, 1997.</mixed-citation></ref><ref id="scirp.34305-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">K. Jensen, “Coloured Petri Nets: Basic Concepts, Analysis Methods and Practical Use. Volumn 2. Analysis Methods Monographs in Theoretical Computer Science,” Springer-Verlag, Berlin, 1997.</mixed-citation></ref><ref id="scirp.34305-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">K. Jensen, “Coloured Petri Nets: Basic Concepts, Analysis Methods and Practical Use. Volumn 3. Practical Use. Monographs in Theoretical Computer Science,” Springer-Verlag, Berlin, 1997.</mixed-citation></ref><ref id="scirp.34305-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">K. Jensen, “Coloured Petri Nets: A High-level Language for System Design and Analysis,” In: G. Rozenberg, Ed., Advances in Petri Nets 1990, Lecture Notes in Computer Science, Vol. 483, Springer-Verlag, Berlin, 1991, pp. 342-416.</mixed-citation></ref><ref id="scirp.34305-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">K. Jensen, “Coloured Petri Nets: A High-level Language for System Design and Analysis,” In: K. Jensen and G. Rozenberg, Eds., High-Level Petri Nets. Theory and Application, Springer-Verlag, Berlin, 1991, pp. 44-122.</mixed-citation></ref><ref id="scirp.34305-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">J. D. Ullman, “Elements of ML Programming,” Prentice-Hall, Upper Saddle River, 1998.</mixed-citation></ref><ref id="scirp.34305-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">A. V. Aho and J. D. Ullman, “Theory of Parsing, Translation, &amp; Compiling,” Prentice Hall, Upper Saddle River, 1973</mixed-citation></ref></ref-list></back></article>