1,415 views
0 0 votes
Given that a language L = L1 ∪ L2, where L1 and L2 are two other languages. If L is known to be a regular language, then which of the following statements is necessarily TRUE?
(a) If L1 is regular then L2 will also be regular
(b) If L1 is regular and finite then L2 will be regular
(c) If L1 is regular and finite the L2 will also be regular and finite
(d) None of these

2 Answers

0 0 votes
L=regular

let l1=$a^{*}b^{*}$ and l2=$a^{n}b^{n}(n>0)$ there union will give the language=($a^{*}b^{*}$) then for above question i think option (b) is suitable answer.
0 0 votes
(b) is the answer because we cannot make an irregular set S regular, by adding a finite number of elements to it. This can be proved as follows:

Let R ∪ F = T be regular, where F is a finite set.

R∪(F−R)=T (both the sets are now disjoint)

⟹R=T−(F−R)⟹R=T∩(F−R)′
Now T is regular set and F is a finite set and so F-R must also be finite and hence regular also. Regular set is closed under complement and intersection which makes R also regular.


We can prove (a) false be taking L1=Σ∗ and L2={anbn∣n>0}. Now, union of these is Σ∗ which is regular but L2 is not regular.

(c) can be proved false by taking L1={a} and L2={an∣n>0}. Now L1∪L2 is regular and L1 finite but L2 is not finite.
Position:
Show:

Related questions

0 0 votes
1 1 answer
873
873 views
mehul vaidya asked Sep 3, 2018
873 views
To find intersection of this two : If i proceed like thisregular ∩ CFG CFG ∩ CFG as regular lang is also CFGbut CFG is not closed under intersectionhence answer may no...
2 2 votes
1 1 answer
703
703 views
iarnav asked Sep 5, 2017
703 views
Let $L⊆Σ^*$ where $Σ=\{a,b\}.$ is above statement True?L = {x∣x has n(a) >= n(b)} is regular?
1 1 vote
1 answers 1 answer
1.1k
1.1k views
Miki_Patel asked Sep 26, 2016
1,068 views
L= { uwwRv : u,v,w are from {a,b}+ } is L regular ?L' = { wwRv : u,v,w are from {a,b}+ } is L' regular ?
0 0 votes
1 1 answer
706
706 views
himgta asked Jul 31, 2018
706 views
How to take union of two DFAs?I am unable to understand this question https://gateoverflow.in/37795/dfa-min-states