1,693 views
0 0 votes

Consider the Context free language  which has equal no of as and bs. 

eg- abab

Since a proper prefix ab also belongs to this language, this language does not satisfy prefix property as far as i understand. 

But we can clearly draw a deterministic PDA with empty stack acceptance for it.

My doubt is that we cannot make DPDA with empty stack for CFL without prefix property. 

But above example forms a contradiction. Please resolve my doubt. I am getting confused.

Please log in or register to answer this question.

Position:
Show:

Related questions

3 3 votes
2 2 answers
1.1k
1.1k views
Jiten008 asked Oct 24, 2023
1,112 views
Can anyone explain $\overline{ww}$ is $CFL$ or $CSL$ And if $CFL$ can you write the equivalent $CFG$ for this ?
0 0 votes
0 0 answers
2.6k
2.6k views
aditi19 asked Sep 2, 2018
2,565 views
what is the PDA for {L=$a^mb^n$ |m>n}
2 2 votes
2 2 answers
3.9k
3.9k views
rahul sharma 5 asked Nov 21, 2017
3,899 views
Following is the PDA that accept equal number of a and b.How can this be converted to DPDA? When stack top is Z,that it can read epsillon or a or b,which can create choic...
2 2 votes
2 2 answers
1.3k
1.3k views
Veeplob Singh asked Jul 6, 2017
1,258 views
L={a^n b^(2n+1) | n>=1}Also can you give acceping PDA diagram...plz