edited by
1,122 views
2 votes
2 votes
$L1 = \{a^m b^nc^{max(m,n)} : m,n > 1\}$ $L2 = \{a^{2^n}, n > 1\} \cup \{a^m, m>1\}$

(a) Both are regular     (b) Only L2 is regular
(c) Only L1 is regular   (d) None of the above
Solution: Option (b)

how? here as l2 is not in ap it should not be regular right?
edited by

4 Answers

1 votes
1 votes
Here L1 is not regular

if we talk about L2=CSL U REG =REG

donot take wrong approach  CSL U REG=CSL U CSL =CSL

so L2 is regular
0 votes
0 votes

 L2 is clearly a regular language because {a^m ,m>1} = (a)and it already contains every possible string generated by a^2^n.

0 votes
0 votes

L1= {a^m b^n c^max(m,n) |m,n>1} is not regular as clearly we can see, we need comparison.

L2= {a2^n,n>1} ∪ {am,m>1}

Lets see it individually

{a2^n,n>1} = {a2^2 ,a2^3, a2^4.......... } {which is not regular because its not in AP(Arithmetic progression) }

{am,m>1} =  {aa,aaa,aaaa,..............} {this is regular language, whose regular expression is (aa+)}

{a2^n,n>1} ∪ {am,m>1} = {aa,aaa,aaaa,..............} which is regular

0 votes
0 votes
a^2^n is not regular,but we can say that a^2^n is the proper subset of a^m|m>1 so when we do union of both then all strings of a^2^n eventually becomes part of a^m|m>1.Thus it becomes regular.

Related questions

1 votes
1 votes
0 answers
1
shivanisrivarshini asked Apr 3, 2018
667 views
2 votes
2 votes
1 answer
2
neha.i asked Apr 17, 2017
1,499 views
Let A be a square matrix such that $A^{3}$ = 0, but $A^{2} \neq 0$. Then which of the following statements is not necessarily true?(A) $A \neq A^{2}$(B) Eigenvalues of $A...
3 votes
3 votes
4 answers
3
neha.i asked Apr 17, 2017
3,102 views
A club with $n$ members is organized into four committees so that each member belongs to exactly two committees and each pair of committees has exactly one member in comm...
1 votes
1 votes
1 answer
4