Question: A PDA accepts by empty stack if the stack is empty when the input word has been completely processed ( i . e . ,
A PDA accepts by empty stack if the stack is empty when the input word has been completely
processed ie we do not distinguish between accepting and nonaccepting states Consider the
following PDA. It has three states, the initial state s and states f and g It has the following
transitions, where $ is a bottom marker on the stack before the computation begins.
s aepsi s a
s bepsi s b
sepsi epsi fepsi
f a afepsi
f b bfepsi
fepsi $gepsi
a Trace the PDA on the following words w ie give the sequence of configurations
of a computation on input w and determine whether they are accepted by empty
stack.
w abba
w abb
b Describe the language accepted by the PDA.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
