recategorized
2,445 views
2 votes
2 votes

The pushdown automation $M=(\left\{q_{0}, q_{1}, q_{2}\right\}, \left\{a, b\right\}, \left\{0, 1\right\}, \delta, q_{0}, 0, \left\{q_{0}\right\})$ with

$\delta (q_{0}, a, 0)= \left\{(q_{1}, 10)\right\}$

$\delta (q_{1}, a, 1)= \left\{(q_{1}, 11)\right\}$

$\delta (q_{1}, b, 1)= \left\{(q_{2}, \lambda)\right\}$

$\delta (q_{2}, b, 1)= \left\{(q_{2}, \lambda)\right\}$

$\delta (q_{2}, \lambda, 0)= \left\{(q_{0}, \lambda)\right\}$

Accepts the language

  1. $L=\left\{a^{n}b^{m} | n, m \geq 0\right\}$
  2. $L=\left\{a^{n}b^{n} | n \geq 0\right\}$
  3. $L=\left\{a^{n}b^{m} | n, m > 0\right\}$
  4. $L=\left\{a^{n}b^{n} | n > 0\right\}$
recategorized

2 Answers

2 votes
2 votes

D is ans.

L= { anbn | n>0}

null not accept here.

edited by
0 votes
0 votes

Ans: B

The no of 'a' and 'b' should be equal..

Answer:

Related questions

3 votes
3 votes
1 answer
2
makhdoom ghaya asked Aug 1, 2016
881 views
Match the following $:$ $\begin{array} {clcl} & \textbf{List – I} && \textbf{List – II} \\ \text{a.}& \text{Context free grammar} & \text{i.} & \text{Linear bounded a...
6 votes
6 votes
7 answers
4