1,016 views
2 2 votes
Suppose L1 and L2 are two language over ∑*

$L=\sum ^{*}-\left ( \left ( \sum ^{*}-L1 \right ) \cup \left ( \sum ^{*}-L2 \right ) \right )$

L1 and L2 are CFL .Which of the following statement is true ?

1.L is necessarily CFL

2.L may or may not CFL

3.L⊆L1

 

(a) only 2                                      (b) 1 and 3

(c)2 and 3                                     (d) All are correct

2 Answers

Best answer
4 4 votes
L=(L1' U L2')'

By demorgan's law..

L= L1 ∩ L2

Since CFL's are not closed under intersection.Therefore L may or may not be CFL.

And by inclusion of intersection we know that ,if A and B are two sets then A ∩ B is a subset of A as well as B .Therefore

L is a subset of L1 as well as L2.

Hence 2 and 3 are correct

Therefore option C.
selected by
1 1 vote

Answer C)

Say,

L1 ={ambn | m=n}

L2 ={ambn | m!=n}

* - L1 =L2

* - L2 =L1

Now, L1 U L2 = ∑*

∑* - ∑* =∅

So, it can be regular

Position:
Show:

No related questions found