Cell-like Spiking Neural P systems generating odd numbers - Third example¶
A third example was proposed in [1], replacing the rules in the previous example, producing 4 spikes and consuming 2 at each step, by the use of the target indication \(in_{all}\), as indicated in the figure:

Model in P-Lingua¶
The corresponding P-Lingua file is the following:
@model<cell_like_snp>
def main()
{
@mu = [a*2 []'2 []'3 ]'1;
[a*2]'1 --> (a*2;inall) "(a{2})+";
[a]'1 --> (a;out) "(a{2})+";
[a*2]'2 --> (a*2;out);
[a*2]'3 --> (a*2;out);
@mout = 1;
}
References¶
[1]
- Wu, Z. Zhang, G. Paun, L. Pan. Cell-like spiking neural P systems. Theoretical Computer Science, 623 (2016), 180-189.