(state, symbol, new_state);
in Pushdown Automata, a transition is represented by 5-tuple
(state, symbol, stack_value, stack_operation, new_state).
How do you interpret this case?
____ ____
/ \ x,y/push(z) / \
| s1 |-------------->| s2 |
\____/ \____/
However, sometimes we see a diagram similar to the above one except that
the top stack symbol is omitted, i.e.
____ ____
/ \ x,_/push(z) / \
| s1 |-------------->| s2 |
\____/ \____/
How do you interpret this case?
____ ____
/ \ ^,y/push(z) / \
| s1 |------------------->| s2 |
\____/ \____/
a,_ /push(a)
_____
| |
v |
____ ____ a,_/nop ____ | /====\
/ \ push($) / \ / \__| ^,$/nop // \\
| s1 |----------| s2 |--------->| s3 |------------->|| s4 ||
\ / \ / ___\ / \\ //
~~~~ ~~~~ | ~~~~ \====/
| ^
|_____|
b,a/pop