-1

I'm trying to study for the summer ahead of class I saw this question, please how do I go about it?

Find NFA/DFA for the language $L = \{0^n1^n : n \in N\}$

Evil
  • 9,525
  • 11
  • 32
  • 53

2 Answers2

4

That language is not regular, thus no finite automaton, be it a DFA, NFA or εNFA, is sufficiently powerful to express it.

To express this language, you'll need a context-free grammar, a push down automaton, or a Turing machine.

Alexander
  • 528
  • 2
  • 8
1

This language has infinite index, thus needs an infinite number of states according to the Myhill–Nerode theorem. You can't have a finite state automaton for it.

Evil
  • 9,525
  • 11
  • 32
  • 53
Pavel
  • 1
  • 3
  • 13