1
$\begingroup$

Is the language $L=\{1^n2^n3^m : n\neq m\}$ context free?

I checked and it satisfies the pumping lemma (Right?). Does it also satisfy Ogden's lemma, or any other test for being non-context free?

$\endgroup$
1
  • 1
    $\begingroup$ Indeed, it seems that Ogden's Lemma is the right approach to show the language is not context-free. See here: cs.stackexchange.com/q/162133/4287 (apart from the simple change in symbols) $\endgroup$ Sep 19 at 21:27

1 Answer 1

1
$\begingroup$

The language is not context free, and indeed Ogden's Lemma can be used to show so. See the answer in the following duplicate.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.