650 views
1 votes
1 votes

We can change indices is different issue , but even if i violate $n<=m$ , language contains that string.

Why its still correct ?

@MiNiPanda

 

1 Answer

2 votes
2 votes
S1  : { (a^n)^m | n<=m>=0} => { (a^n)^m | n,m>=0 & m>=n}

=> { ɛ ,a,aa,aaa,........}

so,Regular Expression for S1 will be a*

S2 : { a^nb^n | n>=1} U { a^nb^m | n>=1,m>=1}

=> {ab,aabb,aaabbb,...} U {ab,aab,abb,aabb,......} => {ab,aab,abb,aabb,......}

so,Regular Expression for S2 will be a+b+

Therefore both S1 and S2 are Regular.

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2
0 votes
0 votes
0 answers
4
suneetha asked Dec 23, 2018
521 views