Session-20.pdf

# Session-20.pdf - Minimization of DFA Algorithm Begin 1 For...

• 7

This preview shows pages 1–7. Sign up to view the full content.

Minimization of DFA: Algorithm: Begin 1) For p in F and q in Q F do mark(p,q); 2) For each pair of distinct states (p,q) in F * F or (Q-F) * (Q-F) do 3) If input symbols a,( δ (p,a), δ(q,a) ) is marked then Begin 4) Mark (p,q); 5) Recursively mark all unmarked pairs on the list for (p,q) and on the lists of other pairs that are marked at this step. End Else /* no pair ( δ (p,a), δ (q,a)) is marked */ 6) For all input symbol α do 7) Put (p,q) on the list for ( δ (p,a), δ (q,a)) unless δ (p,a)= δ (q,a) End 1) Construct minimum state finite automata for the following finite automata

This preview has intentionally blurred sections. Sign up to view the full version.

b X c X X d X X X e X X X f X X X X g X X X X X X h X X X X X X a b c d e f g First place X in the entries corresponding to one final and one non-final state i.e., we place X on the entries (a,c),(b,c),(c,d),(c,e),(c,f),(c,g),(c,h). For (a,b): 0 1 a b f b g c (a,b) are not equivalent on 1 so mark at (a,b) For (a,d): 0 1 a b d c (a,d) are not equivalent on 0. So mark at (a,d) For (a,e): 0 1 a b f e h f
For (a,f): 0 1 a b f f c g (a,f) are not equivalent on 0. So mark at (a,f) For (a,g): 0 1 a b f g g e For (a,h):

This preview has intentionally blurred sections. Sign up to view the full version.

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Fall '14
• rani
• Automata theory, finite automata, following finite automata, state finite automata

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern