CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the pushdown automation (PDA) below which runs over the input alphabet(a,b,c). It has the stack alphabet
{z0,x} where z0 is the bottom-of stack marker. The set of states of the PDA is {s,t,u,f} where s is the start state and f is the final state. The PDA accepts by final state.The transitions of the PDA given below are depicted in a standard manner. For example, the transition(s,b,X)(t,XZ0) means that if the PDA is in state s and the symbol on the top of the stack is X. then it can read b from the input and move to state t after popping the top of stack and pushing the symbols Z0 and X (in that order) on the stack.
(s,a,Z0)(s,XXZ0)
(s,ϵ,Z0)(f,ϵ)
(s,a,X) (s,XXX)
(s,b,X) (t,ϵ)
(t,b,X) (t,ϵ)
(t,c,X) (u,ϵ)
(u,c,X) (u,ϵ)
(u,c,Z0) (f,ϵ)
The language accepted by the PDA is


A
{albmcn|l=m}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
{albmcn|2l=m+n}
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
{albmcn|m=n}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
{albmcn|l=m=n}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B {albmcn|2l=m+n}
Equivalent PDA of is given transition below:






At state s for every a, we push two X in stack. And when first b is come then for every b we pop out one X and reaches to state t. And after all b are over if we get c then for every c we pop out one X and reaches to state u.
If all X are popped out then reached to final state f, means that, sum of number of b's and number of c's = twice of number of a's
i.e. L={albmcn|2l=m+n}

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Construction of Pushdown Automata Part - 1
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon