Please check our Instructions to Authors and send your manuscripts to nifs.journal@gmail.com. Next issue: September/October 2024.
Deadline for submissions: 16 November 2024.
Algorithm for transition functioning: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
The algorithm comprises a "building block" for the entire [[algorithm for generalized net functioning]]. | The algorithm comprises a "building block" for the entire [[algorithm for generalized net functioning]]. | ||
The first book it was published in, was the book "[[Generalized Nets (World Scientific)|Generalized Nets]]" from 1991 year <ref>Atanassov K., "Generalized Nets", World Scientific, Singapore, 1991, ISBN 978-981-02-0598-0</ref>. The algorithm was [[Algorithm for transition functioning# | The first book it was published in, was the book "[[Generalized Nets (World Scientific)|Generalized Nets]]" from 1991 year <ref>Atanassov K., "Generalized Nets", World Scientific, Singapore, 1991, ISBN 978-981-02-0598-0</ref>. The algorithm was [[Algorithm for transition functioning#Modified algorithm, 2007|later modified]] in 2007 <ref>Atanassov K., Tasseva V., Trifonov T., [[Issue:Modification of the algorithm for token transfer in generalized nets|Modification of the algorithm for token transfer in generalized nets]], Cybernetics and Information Technologies, Vol. 7, 2007, Np. 1, 62-66</ref>. | ||
The functioning and the results of the work of a given GN transition are equal for both the original and the modified algorithms, yet the difference between both is that in almost any case the modified algorithm yields results more quickly. | The functioning and the results of the work of a given GN transition are equal for both the original and the modified algorithms, yet the difference between both is that in almost any case the modified algorithm yields results more quickly. |
Revision as of 17:47, 22 November 2009
The algorithm for generalized net transition functioning represents the algorithm of GN tokens transfer from an input place of a GN transition to its output place.
The algorithm comprises a "building block" for the entire algorithm for generalized net functioning.
The first book it was published in, was the book "Generalized Nets" from 1991 year [1]. The algorithm was later modified in 2007 [2].
The functioning and the results of the work of a given GN transition are equal for both the original and the modified algorithms, yet the difference between both is that in almost any case the modified algorithm yields results more quickly.
Original algorithm, 1991
Step 1 | Sort the input and output places of the transitions by their priorities.
|
Step 2 | Sort the tokens from group P1 of the input places (following the order from Step 1) by their priorities.
|
Step 3 | Assign value 0 to all elements of R, for which either
|
Step 4 | Calculate the values of the other elements of matrix r and assign the obtained values to the elements of matrix R. |
Step 5 | Calculate the values of the characteristic functions related to the corresponding output places in which tokens will enter. Assign these characteristics to the entering tokens. |
Step 6 | Perform the following sub-steps for each input place by the order of input place priorities:
|
Step 7 | Transfer the tokens with the highest priority, for which all calculated values of the predicates are equal to "false" to the group P2 of the corresponding places. To this group, also transfer all tokens that cannot be transferred to the corresponding output places because these places have already been filled up with tokens from other places with higher priorities. |
Step 8 | Add t0 to the current time, i.e., TIME := TIME + t0 |
Step 9 | Check whether the value of the current time is less than t1 + t2 (the time- components of the considered transition). |
Step 10 | If the answer to the question on Step 9 is "yes", go to Step 2 (to update the tokens' order in the places). |
Step 11 | If the answer to the question on Step 9 is "no", terminate the current functioning of the transition. |
Modified algorithm, 2007
References
- ↑ Atanassov K., "Generalized Nets", World Scientific, Singapore, 1991, ISBN 978-981-02-0598-0
- ↑ Atanassov K., Tasseva V., Trifonov T., Modification of the algorithm for token transfer in generalized nets, Cybernetics and Information Technologies, Vol. 7, 2007, Np. 1, 62-66