How to convert finite automata to regular expression by using Arden’s theorem:
The following method is the utilization of the Arden’s theorem. This is used to find the regular expression recognized by a transition system.
- To get the regular expression from the automata we first create the equations for each state in presenting in the finite automata transition diagram.
Note: Consider the incoming edges only to a state in transaction diagram to construct the equation of each state.
The state equation in the form of
q1 = q1w11 + q2w21 + … + qnwn1 + є (q1 is the initial state)
q2 = q1w12 + q2w22 + … + qnwn2
⋮ ⋮
qn = q1w1n + q2w2n + … + qnwnn
Where, wij is the regular expression representing the set of labels of edges from qi to qj.
Note: For parallel edges there will be that many expressions for that state in the expression.
- Then we solve these equations to get the equation for qi in terms of wij and that expression is the required solution, where qi is a final state.
- Repeatedly applying substitutions method and Arden’s theorem over the state equations and we can express qi in terms of wij’s.
- For getting the set of string recognized by the transition system, we have to take the ‘union’ of all Vi’s corresponding to final states.
Assumptions are made regarding the transition system:
- The transition graph does not have ε-moves.
- It has only one initial state q0.
- Its vertices are represented as q1, q1, .. .. .. .. ,qn.
- Qi the regular expression represents the set of string accepted by the system even though qi is a final state.
Also check: nfa applications
Thank you sir for such great and valuable explanation