As we know the language {a^n b^n c^n}
is not CFL for sigma={a,b,c}
, then I am eager to know its complement. Will it be cfl ?
Please let me know where I am wrong. According to me the compliment should be {a^i b^j c^k | i!=j or j != k}
union (a+b+c)*cba(a+b+c)*
.
Asked
Active
Viewed 2,435 times
0
1 Answers
1
The complement of the language {a^nb^nc^n} is a CFL. We can write a CFG for this language.
Informally it is language a^ib^jc* + a^ib*c^j + a*b^ic^j + .*ba.* + .*cb.* + .*ca.*, where i!= j .

Sarvottamananda
- 186
- 5