564 views
0 votes
0 votes

2 Answers

1 votes
1 votes
L={$\epsilon$,a,b,ab,ba,aa,bb,..}

Trying to generate every string by using the condition

For example assume string aa  X=$\epsilon$ and Y=aa===> na(X)=0 and nb(y)=0  which is equal so it can be in the language. Similarly we can do this for any string. so L=$(a+b)^*$  which is regular.

Correct me if I'm wrong
0 votes
0 votes
Regular Languages does not have memory element and so the language is not regular as it is counting number of X equal to the number of Y.Memory Element is needed to keep track of count.

It is neither regular nor CFL(how will the PDA know when the string of X ended and string of Y started).

It can be accepted by Turing machine and Hence ,CSL.
edited by

No related questions found