The pushdown automation M = ({q0, q1, q2 }, {a, b}, {0, 1}, δ, q0 , 0, {q0}) with
δ (q0, a, 0) = {q1 , 10}
δ (q1, a, 1) = {q1 , 11}
δ (q1, b, 1) = {q2 , λ}
δ (q2, b, 1) = {q2 , λ}
δ (q2, λ, 0) = {q0 , λ}
Accepts the language
(A) L = {a n b m | n, m ≥ 0}
(B) L = {a n b n | n ≥ 0}
(C) L = {a n b m | n, m ≥ 0}
(D) L = {a n b n | n > 0}
Answer: (B)
Explanation:
Quiz of this Question
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
03 Jul, 2018
Like Article
Save Article