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 Theory of Computation + – himgta 1.4k views answer comment Share Follow Print See all 4 Comments 4 4 Comments reply Anand. commented Jul 24, 2018 reply Follow flag Let $\sum =\left\{a,b\right\}$ (a) & (c).False $L_1=(a+b)^{*} ,L_2=a^{n}b^{n} \Rightarrow L=(a+b)^{*} $ here $L_2$ is non-regular $b$ should be correct. 0 0 replyShare himgta commented Jul 24, 2018 reply Follow flag They are asking necessarily true according to me its option D.... please clarify! 0 0 replyShare Anand. commented Jul 24, 2018 reply Follow flag to make necessarily true FALSE , you need $1$ case to prove it false. i made $a$,$c$ false by just providing $1$ single example . however $b$ will always be true. 0 0 replyShare MrPeppermint commented Jul 24, 2018 reply Follow flag @Anand. I didn't understand your explanation. Can you please elaborate. 0 0 replyShare Please log in or register to add a comment.
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. BASANT KUMAR answered Jul 24, 2018 BASANT KUMAR comment Share Follow 0 reply Please log in or register to add a comment.
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. Manas Mishra answered Jul 24, 2018 Manas Mishra comment Share Follow 0 reply Please log in or register to add a comment.