Research Article

Research on P System with Chain Structure and Application and Simulation in Arithmetic Operation

Table 5


1Startleading flag
2membrane
3O output membrane label
4a b multisets
5a output multisets
6Init initialization membrane 1
7Init initialization the multisets in membrane 1
88 0 8 a, 0 b in multisets
9Init initialization the rule sets in membrane 1
10the 0th rule in membrane 1
11Prio the priority of the rules in membrane 1
12the null priority set
13Init initialization membrane 2
14Init initialization the multisets in membrane 2
150 60 a, 6 b in multisets
16Init initialization the rule sets in membrane 2
17the 0th rule in membrane 2
18Prio the priority of the rules in membrane 2
19the null priority set
20Init initialization output membrane O
21Init initialization the multisets in membrane O
220 00 a, 0 b in multisets
23Init initialization the rule sets in membrane O
24the null rule in membrane O
25Prio the priority of the rules in membrane O
26the null priority set
27Endending flag