TOC : Rules for Constructing Arden's Equation | Class-14

đŸ“ŒHighlights: Hello Friends ! In this we explain about Rules for Constructing Arden's Equation.This post cover following such as All rules of Arden's Equation, Example of converting RE to FA by applying these rules.

Let we have any Finite Automata (FA) which follow certain rules.

1. Finite Automata does not contain ∈

    Note: This is only done in DFA. If the automata is NDFA than first convert it                   into DFA then apply

    Know how to convert NDFA to DFA

2. Suppose states or vertices are represented as

        v1, v2, v3, -----------, vn.

    i.e Automata contains n-number of states.

3. Î±ij represent the RE which is constructed by level of edge from vi to vj.

    If there is no edge from vi to vj than Î±ij = Ï†

    Then Arden's equation can be written as 

After the construction of Arden's equation , Now repeatedly substitution of equation and repeatedly applying Arden's result we found RE of many states or vertices in form of (set of I/P symbol)

Now select the RE of final state which is our required result.

Example:

1. Construct RE to FA


    q1 = q1 0 + q3 0 + ∈ -------------------Equation 1

    q2 = q11 1 + q2 1 + q3 1  --------------Equation 2

    q3 = q2 0   ------------------------------Equation 3

Put value of equation 3 in equation 2

    q2 = q11 1 + q2 1 + q2 01 

    q2 = q2 (1 + 01) + q1 1 

Apply Arden's theorem

    q2 =  q1 1  (1 + 01)* ------------- Equation 4
Put the value of q3  in equation 1
    q1 =  q1 0 + q2 00 + ∈
Again put value of equation 4 in the above
    q1 =  q1 0 + q1 1(1 + 01)* 00 + ∈ 
    q1 =  q1(0 + 1 (1 + 01)* 00) + ∈ 

Now apply Arden's theorem

    q1 =  ∈  (0 + 1 (1 + 01)* 00)* 
    q1 =  (0 + 1 (1 + 01)* 00)* 

2. Construct a RE to FA.


    q1 =  q1 0 + q4 0 + q3 0 + ∈ ------------Equation 1
    q2 =  q2 1 + q1 1 + q4 1 ----------------Equation 2
    q3 =  q2 0 ----------------------------Equation 3
    q4 =  q3 1 ----------------------------Equation 4

Put the value of equation 4  in equation 2

    q2 =  q2 1 + q1 1 + q3 11 ---------------Equation 5
Put value of equation 3 in equation 5
    q2 =  q2 1 + q1 1 + q2 011
    q2 =  q2 (1 + 011) + q1 1 
Apply Arden's theorem
    q2 =  q1 1(1 + 011)-------------------Equation 6

Put the value of equation 6 in equation 3
    q2 =  q1 1(1 + 011)0  -----------------Equation 7
Put the value of equation 7  in equation 4
    q4 =  q1 1(1 + 011)0  -----------------Equation 8
Put the value of equation 7 and 8  in equation 1
    q1 =  q1 0 + q1 1 (1 + 011)010 + q1 1 (1 + 011)00 + ∈

    q1 =  q1 ( 0 + 1 (1 + 011)010 + 1 (1 + 011)00 ) + ∈

Now apply Arden's theorem

    q1 =  ∈ ( 0 + 1 (1 + 011)010 + 1 (1 + 011)00 )*
    q1 =  ( 0 + 1 (1 + 011)010 + 1 (1 + 011)00 )* 

Friend this is all about Rules for Constructing Arden's Equation. The above Examples demonstrate how to implement Arden's Rules. We will meet in  new next post ! till thanks !

No comments:

Post a Comment