Research Article

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

Algorithm 2

Rule selection algorithm for simulation of P chain system.
INPUT: object multisets of membrane , rule set , priority set of rule execution P (P is represented by the ordered pairs
    of rule labels, such as , denoted as ; for the chained rules, P is showed as , , meaning
    to be performed by order);
OUTPUT: rule set chosen to be used
(1) For every rule in the set , if each value in the INT vector corresponded to the former of the rule is no more than
  corresponding value in , rule is put into the candidate rule set .
(2) For each ordered pairs in priority set P, setting , if rule and are both in L, then if , ,
  then , are left in , and the sequence is , , otherwise delete the less prior rule .