in Theory of Computation retagged by
8,757 views
5 votes
5 votes
Consider L1, L2 ⊆ Ʃ* such that L1 and L1 ∪ L2 are regular.
(a) L2 is definitely regular

(b) L2 may not be regular

(c) L2 is context free

(d) None of above

Is it option B or C? How?
in Theory of Computation retagged by
by
8.8k views

4 Answers

7 votes
7 votes
Best answer
B.

let L1=(a+b)*

L1 contains all posible strings over A and B.

and L2= any language.

L1 union L2 =L1 =regular
selected by

2 Comments

Got the answer:

L1: a*b*c*-->reg
L2: a^nb^nc^n-->not cfl, and not regular

L1 U L2: a*b*c*-->reg

Hence option B.
0
0
Yup, got it.. thanks...
0
0
2 votes
2 votes

option B is answer. L2 may not be regular, This can be see by following example-

let L1 = Σ and L2 = {anbn∣n>0} . Now,  (L1 ⋃ L2) is  Σ∗ which is regular but L2 is not regular. 

1 vote
1 vote
may or may not be regular
0 votes
0 votes

B is the Answer

check this for detailed explanation https://gateoverflow.in/3876/given-that-a-language-la-l1-u-l2

Related questions