GATE CS 2021, set 1 · Question 61 · Theory of Computation · Numerical answer (NAT) · 2 marks · no negative marks

In a pushdown automaton P = (Q, Σ, Γ, δ, q₀, F), a transition of the form,
where p, q ∈ Q, a ∈ Σ ∪ {ε}, and X, Y ∈ Γ ∪ {ε}, represents
(q, Y) ∈ δ(p, a, X).
Consider the following pushdown automaton over the input alphabet Σ = {a, b} and stack alphabet Γ = {#, A}.
The number of strings of length 100 accepted by the above pushdown automaton is ______.

Two states drawn as circles: state p on the left and state q on the right. A single arrow goes from p to q, labelled 'a, X → Y'.
Pushdown automaton with four states q0, q1, q2, q3 in a row. An arrow labelled 'start' points into q0 (start state). Transition q0 → q1 labelled 'ε, ε → #'. q1 has a self-loop labelled 'a, ε → A'. Transition q1 → q2 labelled 'ε, ε → ε'. q2 has a self-loop labelled 'b, A → ε'. Transition q2 → q3 labelled 'ε, A → A'. q3 is drawn with a double circle (accepting/final state); q0, q1, q2 are single circles.
Answer

Answer 50

Answer from the official GATE CS 2021 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes