319 views
0 votes
0 votes
NPDA which accepts by final state there is an equivalent NPDA (equivalent means that accepts the same language) which accepts by empty stack and vice-verse. I agree with this point .

But plz anyone show me one simple  NPDA which accepts regular language using empty stack mechanism.

1 Answer

0 votes
0 votes

Say wwr is NPDA. Why is it NPDA? Because we donot know the midpoint of the NPDA. So, here push and pop will be random access. Like say ababccbaba

Now, firstly it will try to take a in push , babccbaba as pop. But not accepted. So, discard it.

Next ab to push  and then abccbaba as pop. will not accept, So discard it...........So, on

When it get ababc as push and cbaba as pop , it will get accepted.

So, get empty stack here. No need of furthur computation

Related questions

0 votes
0 votes
1 answer
1
shweta sah asked Dec 5, 2018
198 views
Do we count the dead state while counting the number of states in minimal DFA??
1 votes
1 votes
0 answers
3
Nils asked Jan 6, 2018
179 views
1) language that contain epsilon can convert into CNF ?2) language that contain epsilon can convert into GNF ?
0 votes
0 votes
0 answers
4
Nils asked Dec 17, 2017
204 views
For any two languages A and B, if A ⊆ B, then A is reducible to B.true or false pls explain