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 (i.e., we do not distinguish between accepting and non-accepting 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.
(1)((s, a,\epsi )->(s, a))
(2)((s, b,\epsi )->(s, b))
(3)((s,\epsi ,\epsi )->(f,\epsi ))
(4)((f, a, a)->(f,\epsi ))
(5)((f, b, b)->(f,\epsi ))
(6)((f,\epsi , $)->(g,\epsi ))
a) Trace the PDA on the following words w (i.e., give the sequence of configurations
of a computation on input w) and determine whether they are accepted by empty
stack.
1. w = abba
2. 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 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!