Question: ( 6 points ) Let the following pushdown automaton K = ( { s 0 , s 1 } , { a , b }

(6 points)
Let the following pushdown automaton K=({s0,s1},{a,b},{A,B,#},,s0,#) be given, where the
transition function is defined as follows:
(s0,a,#)={(s0,A#)}
(s0,a,A)={(s0,AA)}
(s0,b,#)=O?
(s0,b,A)=O?
(s0,,#)={(s1,#)}
(s0,,A)={(s1,A)}
(s1,a,#)=O?
(s1,a,A)=O?
(s1,b,#)=O?
(s1,b,A)={(s1,)}
(s1,,#)={(s1,)}
(s1,,A)={(s1,)}
(a) Simulate the pushdown automaton on the two words aab and abb. Write down all reachable
configurations (including dead-ends) and the transitions between them as a tree, i.e. your solution
should begin like this:
(Note: In case of non-determinism, there can be more than one configuration reachable from a
single configuration.)
(b) Does the pushdown automaton accept the words aab and abb ?(For this you can refer to your
answer to subtask (a).)
(c) Give the language of the pushdown automaton K from above. Justify your answer! In particular,
explain how A's end up on the stack (what has to be read and when?) and what has to happen
for an A to disappear from the stack again.
 (6 points) Let the following pushdown automaton K=({s0,s1},{a,b},{A,B,#},,s0,#) be given, where

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!