ZMWSLI0-SL2021-GR11/cw3/zadanie 2/PipeLSystem.txt

25 lines
551 B
Plaintext
Raw Normal View History

2021-05-09 22:54:31 +02:00
#ignore + - \ / ^ &
#axiom
C(1,3)F(0,1)G
#rules
C(a,b) > F(x,w) : b<3 -> C(a,b+1)
C(a,b) > F(x,w) : b>=3 -> #stochastic
p=2 C(1,0)
p=1 C(2,0)
p=0.5 C(3,0)
#stochastic end
C(a,b) < F(x,w) : b>=3 -> F(a,w)
F(x,w) < F(y,w1) : x>0 -> F(x,w1)
F(x,w) : x>0 -> F(0,w)
F(x,w) < G : x==1 -> F(0,1)[+B]\(137.5)G
F(x,w) < B : x==2 -> #stochastic
p=3 B
p=1 G
#stochastic end
F(x,w) < G : x==3 -> F(x,1)W
F(x,w) > [F(x1,w1)]F(x2,w2) -> F(x,(w1^2+w2^2)^(0.5))
F(x,w) > F(x1, w1) -> F(x,w1)
F(x,w) > [B]F(x1,x1) -> F(x,w1)
F(x,w) > [F(x1,x1)]B -> F(x,w1)
#end rules