The Gateway to Computer Science Excellence
0 votes
98 views

in Theory of Computation by Active (3.9k points) | 98 views
0
Option B

This is NPDA for Set of odd length palindromes
0
It won't be accepting aa or bb ?
0

Yes manisha11  so we can eliminate options a,c,d

 

0
Please show how to do it. I already know the answer.
0

Sambhrant Maurya 

Below image should give you some clarification.

0
We would push S on A not A on S?
0
That's the trick here.

Ex:

We are in stare A and on input 'a' and top of stack as Z then we push aZ i.e. a is pushed on Z.

Please log in or register to answer this question.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,291 answers
198,210 comments
104,902 users