deepdream of
          a sidewalk
Show Answer
Math and science::Theory of Computation

Nondeterministic finite automata (NFA)

Nondeterministic finite automata definition

A nondeterministic finite automaton is a 5-tuple (Q,Σ,δ,q0,F), where

  1. Q is a finite set called the states,
  2. Σ is a finite set called the alphabet,
  3. [...] is the transition function,
  4. q0Q is the start sate, and
  5. FQ is the set of accept states.

String acceptance

Let M=(Q,Σ,δ,q0,F) be a NFA, let w be a string over the alphabet Σ, and let Σε=Σ{ε} (where ε represents [...]).

Then M accepts w iff we can write w=y1y2...ym where yiΣε and there exists a sequence of states in Q, r0,r1,...,rm, meeting three conditions:
  1. r0=q0
  2. [...]
  3. rmF

w is rejected iff it is not accepted.

Every nondeterministic finite automaton has an equivalent [...] (two machines are equivalent iff they recognize the same language). The proof of this is worth studying.