Every finite automaton has an equivalent regular expression.
The conversion of a finite automaton to a regular expression is done through the state elimination method.
The State elimination method follows the following general set of rules:
After steps 1 and 2, the
Let's consider the following finite automaton:
Add a new initial state,
Add a new final state,
Perform the elimination of states other than
Eliminate state
Eliminate state
Eliminate
Eliminate state
Put it all together.
The resultant regular expression for the given finite automaton is as follows: