...

/

Nonregular Languages

Nonregular Languages

Learn to use the pumping theorem to prove a language is nonregular.

Examples of nonregular languages

We’ll use the pumping theorem to prove that the following languages are not regular:

  • The language Lab=anbnL_{ab}=a^nb^n.
  • The language of palindromes.
  • The language of repeated halves, {ww    w(a+b)}\{ww \;|\; w \in (a+b)^*\}.
  • The language over Σ={(,)}\Sigma=\{(,)\} of balanced parentheses.
  • The language {ambn    m>n}\{a^mb^n \;|\; m > n\}.
  • The language PRIME = {an}\{a^n\}, where nn is a prime number.
  • The language {an2    n>0}\{a^{n^2} \;|\; n>0\}
...
Access this course and 1400+ top-rated courses and projects.