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.
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① ②
Π₂ = {{A, E, G}, {B, H}, {F}, {C}}|
Input 0 |
Input 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
So, four groups are obtained.
Again, check the transitions of the states within each
group.
Step 4: Check for Further ChangesΠ₂ = {{A, E, G}, {B, H}, {F}, {C}} ① ② ③ ④
|
Input 0 |
Input 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Π₃ = {{A, E}, {B, H}, {G}, {F}, {C}}
Five groups are obtained.
Now check the groups again.
Π₃ = {{A, E}, {B, H}, {G}, {F}, {C}}
[AE]
Π₃ = {{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]
Minimized State
Input 0
Input 1
[AE]
[BH]
[F]
[BH]
[G]
[C]
[C]
[AE]
[C]
[F]
[C]
[G]
[G]
[G]
[AE]
Comments
Post a Comment