-2

How can I show that $L = \{a^m b^n \mid (m > n \text{ or } m < n) \text{ and } m, n ≥ 1\}$ is not a regular language.

Raphael
  • 73,212
  • 30
  • 182
  • 400

1 Answers1

0

Use the fact that compliment of a regular grammar is regular. So assume this language is regular. Then its complement is also regular that is $$\{{a^{m}b^{m}}\}$$ Now using pumping lemma you can show that this is not a regular language.

iLoveCamelCase
  • 345
  • 2
  • 9