318 views
0 votes
0 votes

1 Answer

Best answer
3 votes
3 votes

Both of the them are regular

Here S2 = {anbn | n>=1} ∪ { anbm | n>=1,m>=1 } = { anbm | n>=1,m>=1 } which is regular.

And S1 = { (an)m | n <= m >= 0 } 

Let an = b then S1 becomes 

S1 = { bm | n <= m >= 0 } which is also regular.

Look at the image below

Here FIG A gives the DFA for S2 and FIG B gives the DFA for S1.

selected by

Related questions

0 votes
0 votes
1 answer
2
0 votes
0 votes
2 answers
3
jugnu1337 asked Sep 3, 2023
348 views
FIND the no of 2 state dfa with the designated initial state possible over {a,b,c} which accept empty language is equal to