1,516 views

1 Answer

1 votes
1 votes

L={XWWr| X,W∊(a+b)+}

Here WWis NCFL(because we can push all the term of W in a stack and Wr pop those terms.So it is CFL and also here middle term is not known . So it is NCFL)

here X is regular i.e.(a+b)+

Now reguler .CFL= CFL [Only phi . CFL=phi i.e. regular, but here phi is not possible , as X= (a+b)+ ]

So, it cannot be regular

edited by

No related questions found