What language is accepted by the pushdown automation

M = ({q0, q1, q2}, {a, b}, {a, b, z}, δ, q0, z, {q2})

with δ(q0, a, a) = {(q0, aa)}; δ(q0, b, a) = {(q0, ba)}

δ(q0, a, b) = {(q0, ab)}; δ(q0, b, b)  = {(q0, bb)}

δ(q0, a, z) = {(q0, az)}; δ(q0, b, z) = {(q0, bz)}

δ(q0, λ, b) = {(q1, b)}; δ(q0, λ, a) = {(q1, a)}

δ(q1, a, a) = {(q1, λ)}; δ(q1, b, b) = {(q1, λ)}

δ(q1, λ, z) = {(q2, z)}?

  1. L = {w | na(w) = nb(w), w Є {a, b}+}}
  2. L = {w | na(w) <= nb(w), w Є {a, b}+}}
  3. L = {w | nb(w) <= na(w), w Є {a, b}+}}
  4. L = {wwR | w Є {a, b}+}

Answer (Detailed Solution Below)

Option 4 : L = {wwR | w Є {a, b}+}

Detailed Solution

Download Solution PDF

The language accepted by the pushdown automation M is the set of all strings that can be generated by the transitions defined in the transition function δ, starting from the initial state q0, and eventually reaching the accepting state q2. The input alphabet for the language is {a, b}. The stack alphabet for the language is {a, b, z}.

The language accepted by the M is L = {wwR | w Є {a, b}+} and the transition diagram is given below. 

 

More Pushdown Automata Questions

More Context Free Languages and Pushdown Automata Questions

Hot Links: teen patti gold new version 2024 teen patti 51 bonus teen patti joy mod apk teen patti rummy 51 bonus