• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | CSE 2023 | Question 41

Consider the pushdown automaton (PDA) P below, which runs on the input alpha-bet {a, b},  has  stack alphabet  {⊥, A},  and  has three states  {s, p, q},  with s  being the start state.  A transition from state u to state v, labelled c/X/γ, where c is an input symbol or ϵ, X is a stack symbol, and γ is a string of stack symbols, represents the fact that in-state u, the PDA can read c from the input, with X on the top of its stack, pop X from the stack, push in the string γ on the stack, and go to state v. In the initial configuration, the stack has only the symbol ⊥ in it. The PDA accepts by the empty stack.

img

Which one of the following options correctly describes the language accepted by P ?

(A)

{ambn| 1<m and n<m}

(B)

{ambn | 0 ≤ n ≤ m}

(C)

{ambn | 0 ≤ m and   0 ≤ n}

(D)

{am | 0 ≤ m}∪ {bn | 0 ≤ n}

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments