0

I was following this video, and wonder why {anbn | n≥1} is not a regular language?

enter image description here

Pascal Cuoq
  • 79,187
  • 7
  • 161
  • 281
Blake
  • 7,367
  • 19
  • 54
  • 80

2 Answers2

0

Regular language must be recognized by finite automaton. As n is not bounded by any constant the automaton cannot be finite.

Grzegorz Żur
  • 47,257
  • 14
  • 109
  • 105
0

If you take the definition of “regular language” as “recognized by a finite automaton”, let m be the number of states of such an automaton. If the automaton is to recognize a1b1, a2b2, …, am+1bm+1, the states of the automaton cannot be the same after it has read a1, a2, …, am+1, leading to a contradiction.

Pascal Cuoq
  • 79,187
  • 7
  • 161
  • 281