Quiz 5

Nils Anders Danielsson

If you cannot access Canvas and submit your answers via email, please only give the answers (a number or a list of numbers), and no motivating arguments.

The first four questions refer to the ε-NFA given by the following transition table:

  ε 0 1
 → q {q₁, q₄}
q {q₂}
q {q₃}
q {q₀, q₇} {q₃}
q {q₅}
q {q₆}
q {q₀, q₇} {q₆}
 * q
  1. (1p) If the ε-NFA is in state q and the next input symbol is 0, what states (if any) is the ε-NFA in after processing this symbol?

    1. q

    2. q

    3. q

    4. q

    5. q

    6. q

    7. q

    8. q

  2. (1p) If the ε-NFA is in state q and the next input symbol is 0, what states (if any) is the ε-NFA in after processing this symbol?

    1. q

    2. q

    3. q

    4. q

    5. q

    6. q

    7. q

    8. q

  3. (1p) If the ε-NFA is in state q, what states (if any) is the ε-NFA in after processing the string 011?

    1. q

    2. q

    3. q

    4. q

    5. q

    6. q

    7. q

    8. q

  4. (1p) Which of the following strings (if any) are in the language of the ε-NFA?

    1. ε

    2. 00

    3. 000001

    4. 0110

    5. 100001

  5. (1p) Now consider the following ε-NFA:

      ε 0 1
     → q {q₁}
    q {q₂}
    q {q₃}
    q {q₀, q₄} {q₃}
     * q

    If the subset construction for ε-NFAs is applied to this ε-NFA and all inaccessible states are removed, which of the DFAs below is equal, up to renaming of states, to the DFA that is obtained?

    1.   0 1
       → A B C
      B C D
      C C C
       * D B D
    2.   0 1
       → A B C
      B C D
      C C C
       * D B D
      E E E
    3.   0 1
       → A B C
      B C D
      C C C
       * D B E
       * E B D