Deprecated: Implicit conversion from float-string "1665036176.910" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1665036176.910" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1665036176.910" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1665036176.910" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1665036176.910" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
push down automata / GATE Overflow for GATE CSE
edited by
5,497 views
2 votes
2 votes

The pushdown automation $M=(\{q_0, q_1, q_2\}, \{a,b\}, \{0,1\}, \delta, q_0, 0, \{q_0\})$ with

$\delta(q_0,a,0)=\{q_1,10)\}$

$\delta(q_1,a,1)=\{q_1,11)\}$

$\delta(q_0,b,1)=\{q_2,\lambda)\}$

$\delta(q_2,b,1)=\{q_2,\lambda)\}$

$\delta(q_2,\lambda,0)=\{q_0,\lambda)\}$

Accepts the language

  1. $L=\{a^nb^m \mid n,m \geq 0\}$
  2. $L=\{a^nb^n \mid n \geq 0\}$
  3. $L=\{a^nb^m \mid n,m > 0\}$
  4. $L=\{a^nb^n \mid n > 0\}$
edited by

2 Answers

5 votes
5 votes

This PDA clearly accepts ab , as its language

But as we see that there is a production from Q2 to Q0 makes the input string halt on Q0 , so our final state will be Q0 .

So it will accept empty strings .

Hence , answer B).

0 votes
0 votes
 
 
 
 

This PDA clearly accepts a^nb^n , as its language.

Also there is a production from Q2 to Q0 state that doesn’t read any input and makes stack empty.

So it is PDA where acceptance is by empty stack.

As Acceptance is not by final state, also there are no productions to accept empty string

So, empty strings are not accepted.

Hence , answer D).

Related questions


Deprecated: Implicit conversion from float-string "1547877904.203" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1547877904.203" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1547877904.203" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1547877904.203" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1541482364.739" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1541482364.739" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1541482364.739" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1541482364.739" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1536504993.891" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1536504993.891" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1536504993.891" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1536504993.891" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1536118227.257" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1536118227.257" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1536118227.257" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1536118227.257" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
724
views
1 answers
0 votes
Abhisek Tiwari 4 asked Nov 6, 2018
724 views
Consider Ldf set all languages accepted by DPDA by final state,Lef set of all languages accepted by DPDA by Empty stack ThenA)Ldf proper subset of Lef.B)Ldf = Lef.C)Lef ...
675
views
0 answers
0 votes
Na462 asked Sep 9, 2018
675 views
Consider following PDA WHICH OF FOLLOWING IS TRUE ABOUT LANGUAGE ACCEPTED BY IT ?A. Regular but infiniteB. Regular but finiteC. DCFL but not regularD. CFL but not DCFL
1.0k
views
0 answers
0 votes
Na462 asked Sep 5, 2018
1,020 views
Consider A given PDA as following Qo is the start state here. What is the language accepted by the given PDA ?1. { ( bn a bn a )m | m,n ≥ 0 }2. { ( bn a bn a )m | m,n ...
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 3.8 4% 2.4 3% 72 1.4 1% 2 0.0 0% 569k 48%
Control 17.9 23% 1.4 1% 5 16.8 21% 12 0.0 0% 247k 21%
View 1.7 2% 1.8 2% 12 0.0 0% 0 0.0 0% 74k 6%
Theme 49.4 63% 4.1 5% 15 45.4 58% 3 0.0 0% 280k 23%
Stats 4.8 6% 0.1 0% 0 4.7 6% 1 0.0 0% 0k 0%
Total 77.6 100% 9.7 12% 104 68.3 88% 18 0.0 0% 1172k 100%