Finite Automata

San Skulrattanakulchai

February 14, 2019

Deterministic Finite Automaton (DFA)

DFA Anatomy

DFA Computation

Formal Definition

DFA Diagram

DFA Example

Acceptance by DFA

Remarks

Nondeterministic Finite Automaton (NFA)

Formal Definition

Acceptance by NFA

Remarks

  1. In a state/transition diagram for a DFA where \(\Sigma\) has \(n\) symbols, every state has exactly \(n\) edges leaving it, one edge per symbol in \(\Sigma\). In a state/transition diagram for an NFA, on the other hand, some state may have more or fewer than \(n\) edges leaving it. Moreover, two distinct edges leaving the same state may have the same label, and some edge may be labelled with \(\varepsilon\).
  2. If a string \(w\) is accepted by a DFA, then there exists a unique path from the start state to a final state that traces out \(w\). On the other hand, if a string \(w\) is accepted by an NFA, then there exists at least one path (may be more) from the start state to some final state that traces out \(w\).

NFA Example