edited by
359 views
0 votes
0 votes

$L_1 = \{a^n b^n c^n \mid n\geq 1\}, L_2 = Σ^*- L_1$ is : 

  1. $\{a^i b^j c^k ; i!=j\text{ or } i!=k\} \cup (Σ^* - a^*b^*c^*)$
  2. $\{a^i b^j c^k ; i!=j\text{ and } i!=k\} \cup (Σ^* - a^*b^*c^*)$
  3. $\{a^i b^j c^k ; i!=j\text{ or } i!=k\} ∩ (Σ^* - a^*b^*c^*)$
  4. $\{a^i b^j c^k ; i!=j \text{ and }i!=k\} ∩ (Σ^* - a^*b^*c^*)$
edited by

2 Answers

1 votes
1 votes

L= anbncn | n>=1

L= aibjck | i=j and j=k

L2 = Σ*- L1 = L1

so complement of aibjck | i=j and j=k  will be aibjck | i!=j or j!=k

But complement will also include string starting with b followed by a and then followed by c. I mean strings other than the sequence a followed by b followed by c

Hence answer should be A) 

0 votes
0 votes

Option A should be correct .

(Σ* - a*b*c*) will contain all strings which will not contain (a+b+c)* .

but L2 = Σ*- L1 so we have to perform union for getting L2 bcoz it will be having string related to a,b,c

Related questions