2

Here is a GNFA I made from an NFA.

enter image description here

I'm unsure how to treat the node of b(a∪b)* (the first node after the start node and the one below it). Since it doesn't lead to any goal state, do I disregard it in when I generate the regular expression?

1 Answers1

1

Given an NFA, we can simplify it to an equivalent NFA with possibly fewer states by repeatedly applying the following two pruning steps:

  1. Remove any states which are not reachable from the initial state.
  2. Remove any states from which no final state can be reached.

In your case, this will result in removing the left bottom state.

Yuval Filmus
  • 276,994
  • 27
  • 311
  • 503
  • 1
    As an aside, one way this is often implemented in software when constructing DFAs is to add a known null state (i.e. a state which is not reachable from the initial state), performing DFA minimisation, and then removing any states which end up in the same class as that known null state. – Pseudonym Apr 08 '20 at 06:33