0

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

enter image description here

Pascal Cuoq
  • 77,397
  • 7
  • 153
  • 272
Blake
  • 6,867
  • 18
  • 52
  • 76

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
  • 44,524
  • 14
  • 110
  • 102
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
  • 77,397
  • 7
  • 153
  • 272