Beruflich Dokumente
Kultur Dokumente
2
Allowed transitions:
a, b / w
q1 q2
q1 , b/ w q2
(deterministic choices)
Costas Busch - RPI Fall 2003 3
Allowed transitions:
q2 q2
a, b / w1 , b / w1
q1 q1
a, c / w2 , c / w2
q3 q3
(deterministic choices)
Costas Busch - RPI Fall 2003 4
Not allowed:
q2 q2
a, b / w1 , b / w1
q1 q1
a, b / w2
a, b / w2 q3 q3
a , / a b,a /
a , / a b,a / ,z / z
q0 q1 q2 q3
Example:
The language L( M ) {a b : n 0}
n n
is deterministic context-free
a, / a a, a /
b, / b b, b /
, / ,z / z
q0 q1 q2
a, / a a, a /
b, / b b, b /
, / ,z / z
q0 q1 q2
a, a a, a
b, b b, b
q0 , q1 , $ $ q2