Select Page

The language recognized by a DFA (Deterministic Finite Automaton) and an NFA (Nondeterministic Finite Automaton) can be defined based on the strings that cause the automaton to reach an accept state. Let’s define the language of each:

  1. Language of a DFA:

    The language recognized by a DFA is the set of all strings that, when input to the DFA, cause it to reach an accept state. Formally, the language of a DFA

    is denoted as

    , and it’s defined as follows:

    L(M)={wΣM accepts w}

    Where:

    • is the input alphabet.

    • is the set of all possible strings over the alphabet 


      .

    • is the DFA.
    • accepts a string 


      if, when started in its initial state and given the input string

      , it ends up in an accept state.

  2. Language of an NFA:

    The language recognized by an NFA is defined similarly to that of a DFA. It’s the set of all strings that, when input to the NFA, cause it to reach an accept state. Formally, the language of an NFA

    is denoted as

    , and it’s defined as follows:

    L(N)={wΣN accepts w}

    Where:

    • is the input alphabet.

    • is the set of all possible strings over the alphabet
      Σ

       

    • is the NFA.

    • accepts a string

       

      if there exists at least one sequence of transitions that leads to an accept state when


    • is input to 


      .

  3. NFA with ε-Transitions:

    When dealing with an NFA that has ε-transitions (transitions that can be made without consuming any input), we extend the definition of the language to account for the possibility of taking these transitions. The language recognized by an NFA with ε-transitions

    is defined as follows:

     

    there exists a path in 
     from the initial state to an accept state by consuming symbols and ε-transitions}

    In this case, the NFA can transition between states without consuming any input symbols, following ε-transitions. This adds flexibility to the transitions, potentially allowing for the recognition of a broader set of languages compared to a regular NFA.