Research Article
Research on P System with Chain Structure and Application and Simulation in Arithmetic Operation
| 1 | Start | leading flag | 2 | | membrane | 3 | O | output membrane label | 4 | a b | multisets | 5 | a | output multisets | 6 | Init | initialization membrane 1 | 7 | Init | initialization the multisets in membrane 1 | 8 | 8 0 | 8 a, 0 b in multisets | 9 | Init | initialization the rule sets in membrane 1 | 10 | | the 0th rule in membrane 1 | 11 | Prio | the priority of the rules in membrane 1 | 12 | — | the null priority set | 13 | Init | initialization membrane 2 | 14 | Init | initialization the multisets in membrane 2 | 15 | 0 6 | 0 a, 6 b in multisets | 16 | Init | initialization the rule sets in membrane 2 | 17 | | the 0th rule in membrane 2 | 18 | Prio | the priority of the rules in membrane 2 | 19 | — | the null priority set | 20 | Init | initialization output membrane O | 21 | Init | initialization the multisets in membrane O | 22 | 0 0 | 0 a, 0 b in multisets | 23 | Init | initialization the rule sets in membrane O | 24 | — | the null rule in membrane O | 25 | Prio | the priority of the rules in membrane O | 26 | — | the null priority set | 27 | End | ending flag |
|
|