Minimization of DFA using partition method(Ardens Theorem)

 

Minimization of DFA using  partition method

Handwritten Notes- Click Here


Example: Minimization of DFA

State

Input 0

Input 1

A

B

F

B

G

C

C

A

C

E

H

F

F

C

G

G

G

E

H

G

C

Step 1: Initial Partition

The final state is:{C}
The non-final states are:{A, B, E, F, G, H}

Therefore, the initial partition is:
Π₁ = {{A, B, E, F, G, H}, {C}}
Here, all non-final states are initially placed together, while the final state forms a separate group.


Step 2: First Partition Refinement
Now examine the transitions of the states in each group.
For each state, check where it goes on input 0 and input 1.

Π₁ = {{A, B, E, F, G, H}, {C}}
                 Group①                  ②

Input 0

Input 1

Π₂ = {{A, E, G}, {B, H}, {F}, {C}}
  So, four groups are obtained.


Step 3: Second Partition Refinement
Again, check the transitions of the states within each group.

Π₂ = {{A, E, G}, {B, H}, {F}, {C}}
                    ①            ②     ③     

Input 0

Input 1


Π₃ = {{A, E}, {B, H}, {G}, {F}, {C}}
Five groups are obtained.               


Step 4: Check for Further Changes
Now check the groups again.

Π₃ = {{A, E}, {B, H}, {G}, {F}, {C}}
               ①             ②          ③   ④       

Input 0

Input 1

Πfinal = {{A, E}, {B, H}, {G}, {F}, {C}}

The groups remain unchanged after the next comparison.


Step 5: Construct the Minimized DFA

Each equivalence class is represented by one state.We can represent the new states as

[AE]
[BH]
[G]
[F]
[C]

Minimized State

Input 0

Input 1

[AE]

[BH]

[F]

[BH]

[G]

[C]

[C]

[AE]

[C]

[F]

[C]

[G]

[G]

[G]

[AE]


Video Explanation



Comments

Popular posts from this blog

Queue ADT

Entity-Relationship(ER) Model

Different types of Data Models in DBMS