Example. Some non-regular languages [018J]

The following languages will turn out to non-regular:

  1. The set of strings over {\mathopen {}\left \{(,),a,b,\ldots ,z\right \}\mathclose {}} in which parentheses are well-nested.
  2. The set of strings over {\mathopen {}\left \{a,b,\ldots ,z\right \}\mathclose {}} that are palindromes, i.e. that read the same backwards as forwards.
  3. The set of strings over {\mathopen {}\left \{a,b\right \}\mathclose {}} consisting of some number of as followed by the same number of bs.