edited by
305 views
0 votes
0 votes
Which of them are not regular-

(a) L={a^m b^n | n>=2023, m<=2023}

(b) L={a^n b^m c^l | n=2023, m>2023, l>m}

according made easy (b) is the answer but can we do like this-

Let L1= {a^n |n=2023} and L2= {b^m c^l | m>2023, l>m} therfore L2’={b^m c^l | m<=2023, l<=m}

Here L1 is regular, since L2’ is finite therefore it is regular (Regular lang are close under complementation) and so L2 is regular

L=L1.L2 (regular lang are closed under concatenation) therefore L is regular.this makes option (b) regular is it right approach ?
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1