Consider the pushdown automaton (PDA) below, which runs on the input alphabet , has stack alphabet , and has three states , with being the start state. A transition from state to state , labelled , where is an input symbol or , is a stack symbol, and is a string of stack symbols, represents the fact that in state , the PDA can read from the input, with on the top of its stack, pop from the stack, push in the string on the stack, and go to state . In the initial configuration, the stack has only the symbol in it. The PDA accepts by empty stack. Which one of the following options correctly describes the language accepted by ?
Tap to open full sizeFigure description
State diagram with three states s, p, q. s is the start state (arrow entering from the left). Self-loop on s with two labels: a/⊥/A⊥ and a/A/AA. Self-loop on p with label b/A/ε. Self-loop on q with two labels: ε/A/ε and ε/⊥/ε. Edge s to p labelled b/A/ε. Edge s to q labelled ε/A/ε. Edge p to q labelled ε/A/ε. No state is marked accepting (acceptance is by empty stack).
- (A)
- (B)
- (C)
- (D)