Skip to content
Go back

Finite Automata, Part 2

Published:  at  12:32 AM

I. DFA 5-Tuple Definition

A. Components

1. Q — States

2. Σ — Alphabet

3. δ — Transition Function

4. qstart — Start State

5. F — Accepting (aka Final) States

B. Acceptance

  1. A DFA reads an input string wΣ* symbol-by-symbol.
  2. Formally, textbooks define the extended transition function:
  1. Acceptance test: A DFA M accepts w iff δ*( q0, w ) ∈ F.

II. NFA 5-Tuple Definition

A. Components

1. Q — States

2. Σ — Alphabet

3. δ — Transition Function

4. qstart — Start State

5. F — Accepting (aka Final) States

B. Acceptance

  1. An NFA reads an input string wΣ*, symbol by symbol (aka “letter by letter”).
  2. Because an NFA can be in multiple states at once, the extended transition concept returns a set of possible states.
  3. NFA (with no 𝜖-transitions)
    • Define the extended transition function:
      • δ*: Q × Σ*P(Q) where:
        • δ*(q, 𝜖) = {q}
        • δ*(q, x ⋅ a) = {q}
  4. NFA (with 𝜖-transitions)