in Theory of Computation
596 views
1 vote
1 vote

in Theory of Computation
596 views

4 Comments

And to the person whose downvoting, if you have a counter argument please do share your thoughts rather than just downvoting:-D :-D...
0
0
we can draw DFA for L1 having regular expression R = (aa)* (bb)* + a(aa)* b(bb)*
but for L2 need infinite comparison & counting so it will not be regular
0
0
Cool man thanks!
0
0

1 Answer

4 votes
4 votes
Best answer
i)m+n should be even and we know even + even =even  and odd+odd=even

So we can draw a DFA having even no of a's and even no of b's or with odd no of a's and odd no of b's.

L1=(aa)*(bb)* + a(aa)*b(bb)*

ii)But for L2 it is given m-n=4 which means we need to do  comparison and count no of a's and b's  which is not possible with DFA's because it has finite memory.
selected by