Consider the transition diagram of a PDA given below with input alphabet and stack alphabet . is the initial stack symbol. Let denote the language accepted by the PDA

Which one of the following is TRUE?
View worked solution
Answer: D
To determine which option is correct, let us analyze the language accepted by the given Pushdown Automaton (PDA) and its properties:
- Language Identification: The PDA pushes onto the stack for every input symbol . While reading 's, the machine remains in accepting states, which accepts the language . If a is encountered, the PDA transitions to a state where it pops from the stack for each . It accepts at the end of the input if the stack is emptied back to the initial symbol . This matches the number of 's with 's, accepting the language . Thus, the total language accepted is .
- Determinism: A Deterministic PDA (DPDA) can easily decide this language. While reading 's, the DPDA stays in an accepting state. If the input ends, it accepts . If a appears, it uniquely transitions to a popping state to match the count. Since there are no overlapping transitions (no choice between reading or , or making -transitions), the machine is completely deterministic.
Therefore, is a deterministic context-free language (DCFL), which makes option D the correct statement.
Free practice · Your answers on this page are not saved.
