Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Conduct a needs assessment. page 269

Answered: 1 week ago