<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A new Approach to Generalized Stochastic Petri Nets - Probabilistic Selection Petri Nets</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Kamila Barylska</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anna Gogolińska</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="editor">
          <string-name>Probabilistic Selection Petri Nets</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Nicolaus Copernicus University in Toruń</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper, we propose a modification of Generalised Stochastic Petri Nets that includes only immediate transitions, referred to as Probabilistic Selection Petri Nets (   s). This formalism enables the modelling of realworld systems in such a way that the probability of executing a given action within the model aligns with empirical observations. The paper presents an analysis of the key properties of    s and demonstrates their application in simulating chess game openings.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Petri Nets</kwd>
        <kwd>priorities</kwd>
        <kwd>probability of execution</kwd>
        <kwd>random enabledness</kwd>
        <kwd>modelling</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>{} = ∑︀</p>
      <p>(:∈ℰ()) 
=  for  ∈  , ℰ ( )- set of enabled transitions at .
(1)</p>
      <p>Given reachable marking  , the priority vector  = (1, . . . , ) and  = |ℰ ( )|, we consider
probability mass function ( )  = (1, 2, . . . ,  ). Note that  is a vector which entries fulfill the
condition  =  { = } for  ∈ {1, . . . , },  corresponds to the -th enabled transition, according
to the order in  . A transition is executed when a sample drawn from the  corresponds to its
assigned execution probability.</p>
      <p>
        Remark 1. (a)    s are conceptually similar to Stochastic Petri Nets (  s) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], in which
execution probabilities are defined via assigned firing frequencies. However,   s incorporate temporal
aspects and are therefore classified as time-based models [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
(b)    s can be derived from   s, under specific conditions: if there are no inhibitor arcs, no
timed transitions, all enabled immediate transitions share the same priority, and the flow function
yields natural number values. Under these constraints, the choice of the transition to execute follows
a discrete uniform probability distribution.
(c) When timed transitions, inhibitors, and priorities are removed,   s no longer resemble   s.
(d) In some applications    s ofer a simpler and more appropriate modelling approach —
particularly because the priority function can take any natural number value, ofering fine-grained probabilistic
control.
      </p>
      <p>A standard reachability graph can be constructed for    s in much the same way as for classical
Petri Nets. However, without incorporating information about the execution probabilities of
transitions, such a graph would be indistinguishable from the classical version. To address this limitation,
we introduce the concept of the Probabilistic Selection Reachability Graph.</p>
      <p>Definition 2. For a given     = (, , , 0,  ), its Probabilistic Selection Reachability
Graph is a tuple   = (,  ), where: (1)  = ( ) is a classical Reachability Graph of  ,
(2)  is a probability function, assigning the probability of executing an action in a given marking to
the edges of the graph, such that  (, ,  ′) =  is the probability of the execution of (enabled)
transition  at marking  , leading to marking  ′, defined in Formula 1.</p>
      <p>The probability function  can be extended to entire execution paths in the  , starting from
the initial marking. Let  = (, , , 0,  ) be a    , and let  = (1, 2, . . . , ) denote a path in
its Reachability Graph, then the probability of following the path  is defined as  ( ) = ∏︀
=1  () for
 ∈ {0, . . . , }, 0[ ⟩+1.</p>
      <p>Definition 3. Let  = (, , , 0,  ) be    with   = (,  ). Let ,  ′ ∈ [0⟩ be
two reachable markings of  . The probability Π(,  ′) of reaching state  ′ from state  in  
is the sum of the labelling of all short paths from state  to state  ′ – Π(,  ′) = ∑︀  ( ) for all
 ’s being short paths between  and  ′. Moreover, Π(,  ) = 1. A marking probability function
Π is a function assigning the probability of reaching state  in the net  (i.e. from the initial marking)
defined as follows Π( ) = Π(0,  ). Of course, Π(0) = 1.</p>
      <p>Since    can be considered as   without timed transitions and priorities, they are indeed
Petri nets. Moreover Probabilistic Selection Petri Nets can be “simulated” using classical Petri Nets.</p>
      <p>Definition 4. We call two    s 1 = (1, 1, 1, 01 ,  1) and 2 = (2, 2, 2, 02 ,  2)
probabilistically equivalent when their sets of places are the same (1 = 2), every marking 
reachable in 1 is also reachable in 2 (i.e. reachability sets in 1 and 2 are the same, denoted by
[01 ⟩1 =[02 ⟩2 and it results in 01 = 02 ), and the probability of reaching  in 1 equals the
probability of reaching  in 1, i.e. Π( )1 = Π( )2 .</p>
      <p>Proposition 1. Proposition 1. For every     , there exists a     ′ that is
probabilistically equivalent to  , in which the priority function assigns the value 1 to all transitions.</p>
    </sec>
    <sec id="sec-2">
      <title>Implementation</title>
      <p>
        To demonstrate the properties of    s, we developed an application called PSPN Chess [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Its
purpose is to generate a Petri Net based on recorded chess openings. The resulting net can be interpreted
as a   , a    , or a    . The application accepts any number of chess games as input and
generates a single Petri Net that represents a chosen number of initial moves from the given set of
games. The games are provided in chess algebraic notation. In the generated Petri Net, two types of
places are defined: the first type represents locations, created for each piece and square; the second
type represents move numbers in the sequence, the number of which is specified as a parameter of the
program. Transitions correspond to the moves performed by pieces, and their priorities are proportional
to the frequency of the corresponding moves within the input data. The PSPN Chess application also
supports simulation of transition execution. Three simulation modes are available: the net can be
executed as a classical   , a    , or a    . Our results indicate that    s are able to mimic
chess games more accurately than other types of Petri Nets. In classical   s, transitions are executed
with equal probability, regardless of the actual frequency of the move they represent. In    s, only
the transitions with the highest priority are selected. In contrast,    -based simulations favour
high-priority transitions, while still allowing less frequent transitions to occur, reflecting realistic
variation observed in actual chess gameplay.
      </p>
    </sec>
    <sec id="sec-3">
      <title>Conclusions and Future Work</title>
      <p>In this paper, we have presented    s — a specific modification of   s. As they omit timed
transitions and inhibitor arcs,    s may be viewed as a relatively direct extension of classical Petri
Nets, bearing similarities to    s. In    s, the probability of firing an enabled transition is
determined by the value of its priority function. Although the underlying idea of    s is conceptually
simple, we believe they provide a valuable and flexible modelling framework. They are particularly
well suited to representing scenarios in which multiple outcomes are possible, but not equally likely.
We demonstrated the applicability of    s using chess openings as an example, where transitions
model moves with difering frequencies. Our future work will focus on modelling real-world systems —
especially those found in biology — where probabilistic behaviour with varying likelihoods is commonly
observed.</p>
      <p>Declaration on Generative AI
The author(s) have not employed any Generative AI tools.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Bause</surname>
            <given-names>F.</given-names>
          </string-name>
          :
          <source>Petri Nets and Priorities</source>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Ajmone Marsan</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Balbo</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chiola</surname>
            <given-names>G.</given-names>
          </string-name>
          , Conte G.:
          <article-title>Generalized Stochastic Petri Nets Revisited: Random Switches</article-title>
          and
          <source>Priorities Proceedings of the Int. Workshop on Petri Nets and Performance Models</source>
          ,
          <year>1987</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Desel</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reisig</surname>
            <given-names>W.</given-names>
          </string-name>
          : Place/transition Petri Nets,
          <source>Lectures on Petri Nets</source>
          , Vol. I: Basic Models,
          <source>Advances in Petri Nets</source>
          ,
          <volume>1491</volume>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Gogolińska</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Algorithms Inspired by Petri Nets in Modeling of Complex Biological Systems (Doctoral dissertation</article-title>
          ),
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Ajmone</given-names>
            <surname>Marsan</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          :
          <article-title>Stochastic Petri Nets: An elementary introduction</article-title>
          ,
          <source>Lecture Notes in Computer Science</source>
          , vol
          <volume>424</volume>
          ,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Wang</surname>
            <given-names>J.</given-names>
          </string-name>
          :
          <source>Stochastic Timed Petri Nets and Stochastic Petri Nets, Timed Petri Nets: Theory and Application</source>
          ,
          <string-name>
            <surname>Springer</surname>
            <given-names>US</given-names>
          </string-name>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>PSPN</surname>
          </string-name>
          <article-title>Chess application</article-title>
          , https://www-users.
          <source>mat.umk</source>
          .pl/∼ leii/chess/
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>