1. Gyanastra
  2. Theory of Computation
  3. NFA
  4. Formal Definition of NFA as a Quintuple
Free lesson, no account needed 3 min read 2 practice questions after it
Asked in past papers1 time
  • UGC NET2013

Theory of Computation · NFA

Formal Definition of NFA as a Quintuple

Overview

A non-deterministic finite automaton (NFA) is formally specified as a quintuple of five components, exactly parallel in structure to the DFA tuple. The decisive difference from a DFA lies in the transition function δ\delta, whose precise form is the key point to understand.

Key concepts

  • Quintuple: An NFA is defined as a set of five items, NFA=(Q,Σ,δ,Q0,F)\text{NFA} = (Q, \Sigma, \delta, Q_0, F).
  • QQ — set of states: The same as in the DFA; because this is a finite automaton, QQ must be finite.
  • Σ\Sigma — input alphabet: Must be a finite set.
  • δ\delta — transition function: Its exact form is explained separately, by taking an example of an NFA.
  • Q0Q_0 — start state: The single start state.
  • FF — set of final (accepting) states.
  • Non-determinism vs. determinism: A non-deterministic machine can sometimes be implemented even by a deterministic machine; it is somewhat difficult, but it can be done.

How it works

  1. Specify the finite set of states QQ.
  2. Specify the finite input alphabet Σ\Sigma.
  3. Specify the transition function δ\delta — the distinguishing component of the NFA versus the DFA; its precise definition is the key point to understand.
  4. Specify the start state Q0Q_0.
  5. Specify the set of final states FF.
Figure. An NFA is defined by Q, Sigma, delta, Q0, and F. The transition function delta is the key difference from a DFA and may yield no state, one state, or several states.

Formulas

  • NFA=(Q,Σ,δ,Q0,F)\text{NFA} = (Q, \Sigma, \delta, Q_0, F) — QQ: finite set of states; Σ\Sigma: finite input alphabet; δ\delta: transition function; Q0Q_0: start state; FF: set of final (accepting) states.

Revision summary

  • An NFA is a quintuple of exactly five components, just like the DFA tuple.
  • QQ must be finite because it is a finite automaton.
  • Σ\Sigma must be a finite set.
  • Q0Q_0 is the single start state; FF is the set of final states.
  • The distinguishing component of the NFA versus the DFA is δ\delta, the transition function.
  • Non-determinism can, in principle, always be implemented by a deterministic machine, though it may be difficult.

Previous-year exam insights

  • In an NFA, δ(q,a)\delta(q,a) may be the empty set (no transition on that symbol), may contain one state, or may contain several states; a DFA requires exactly one state for every (state, symbol) pair.
    Asked inUGC NET 2013
  • An NFA accepts a string if there exists at least one path from some start state to some final state labelled by that string (existential acceptance); a DFA accepts if its unique path ends in a final state.
    Asked inUGC NET 2013
  • Every NFA (with or without ε\varepsilon-moves) can be converted to an equivalent DFA by the subset construction, where DFA states are subsets of NFA states; hence NFAs and DFAs accept exactly the same class of languages (the regular languages).
    Asked inUGC NET 2013
  • The number of states of the minimal DFA for a language is unique; minimization is done by removing unreachable states, then merging equivalent states (e.g. via Hopcroft's or the table-filling/Myhill-Nerode method).
    Asked inUGC NET 2013
  • ε\varepsilon-closure of a state is the set of states reachable from it using only ε\varepsilon-transitions (including the state itself); it is needed to compute the language of an ε\varepsilon-NFA and in the subset construction.
  • A language is regular iff it is accepted by some DFA, some NFA, or some ε\varepsilon-NFA, and iff it is denoted by some regular expression; these models are all equivalent in power.
Pages 1–2 of 2