retagged by
13,518 views
17 votes
17 votes

Consider the following statements.

  1. If $L_1 \cup L_2$ is regular, then both   $L_1$ and $L_2$ must be regular.
  2. The class of regular languages is closed under infinite union.

Which of the above statements is/are TRUE?

  1. Ⅰ only
  2. Ⅱ only
  3. Both Ⅰ and  Ⅱ
  4. Neither Ⅰ nor  Ⅱ
retagged by

3 Answers

Best answer
24 votes
24 votes
Keeping $L_2$ as $\Sigma^*,$ what ever may be $L_1,$, we get a Regular language.

So, statement I is wrong.

If regular languages are closed under infinite union, then $L=\{a^n.b^n | n>0 \}$ must be regular as it is equal to $\{ab\} \cup \{aabb\} \cup \{aaabbb\} \cup \ldots$

So, statement II is wrong.

Option D is correct.
edited by
1 votes
1 votes
Answer : D

I. is false since (a+b)* is regular but  L1 = (a+b)* and L2 ={$a^{n} b^{n} | n>=0$}

II. is false since  ab, aabb, aaabbb ........  (all of them is regular language) make language DCFL where each one of them is regular
Answer:

Related questions

18 votes
18 votes
7 answers
1
Arjun asked Feb 12, 2020
13,484 views
Consider the following language.$L = \{{ x\in \{a,b\}^*\mid}$number of $a$’s in $x$ divisible by $2$ but not divisible by $3\}$The minimum number of states in DFA that ...
24 votes
24 votes
3 answers
2
Arjun asked Feb 12, 2020
23,593 views
Which one of the following regular expressions represents the set of all binary strings with an odd number of $1’$s?$((0+1)^*1(0+1)^*1)^*10^*$$(0^*10^*10^*)^*0^*1$$10^*...
31 votes
31 votes
4 answers
4
Arjun asked Feb 12, 2020
7,471 views
Raman is confident of speaking English _______six months as he has been practising regularly_______the last three weeksduring, forfor, sincefor, inwithin, for