wiz-icon
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 alpabet {Zo,X} where Zo 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 transitions of the PDA given below are depicted in a standard manner. For example, the transition (s, b, X) (t,XZo) means that if the PDA is in states 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 Zo and X (in that order) on the stack.
(s,,Zo(f,)
(s,a,Zo)(S,XXZo)
(s,a,X)(S,XXX)
(s,b,X)(t,)
(t,b,x)(t,)
(t,c,x)(u,)
(u,c,x)(u,)
(u,,Zo)(f,)
The language accepted by the PDA is

Open in App
Solution

For every a we put two X in stack [at state s] After that for every b we pop out one X[reach to state t (getting b after a)]

After that for every c we pop out one X [reach to state u (getting c after b)]

If all X are popped out then reached to final state f, mean for every b there is a, for every c there is a .

a was followed by b and b was followed by c [ state s to t, t to u, u to f, final]

means sum of no of b's and no of c's == twice of no of a's[ one a for one b , one a for one c ]

i.e. {albmcn|2l=m+n}
So, option (c) is correct.

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Basics of Communication Systems
Watch in App
Join BYJU'S Learning Program
CrossIcon