
Module 35 Worksheet
In Class Questions
1) (S8) Specify how we implemented this idea with FSA’s.
M1 = (Q1, , q1, A1, 1)
M2 = (Q2, , q2, A2, 2)
M3 = (Q3, , q3, A3, 3) where
Q3 =
q3 =
A3 =
3((p,q), a) =
2) (S10) Try and implement this idea with PDA’s
M1 = (Q1, , 1, Z1, q1, A1, 1)
M2 = (Q2, , 2, Z2, q2, A2, 2)
M3 = (Q3, , 3, Z3, q3, A3, 3) where
Convenient notation:
Let “S(q,a,A)” be the “next state” component of
Let “U(q,a,A)” be the “stack update” component of
That is, if 1(q,a,A) = (p, ABC) then
S1(q,a,A) = p
U1(q,a,A) = ABC
Q3 =
q3 =
A3 =
3 = 1 x 2 where x is the cartesian product operator
Z3 =
3:
Current State Input Top Stack Next State Stack Update
(p, q) a (A,B)