Presentation is loading. Please wait.

Presentation is loading. Please wait.

Why the algorithm works! Converting an NFA into an FSA.

Similar presentations


Presentation on theme: "Why the algorithm works! Converting an NFA into an FSA."— Presentation transcript:

1 Why the algorithm works! Converting an NFA into an FSA

2 Purpose This presentation attempts to give the reader some intuition as to why the algorithm which takes as input an NFA without -transitions and produces as output an equivalent FSA works correctly. We use the example from the previous presentation to illustrate this intuition.

3 Why the Construction Works a b a,b b b aa 1 2 3 4 5 6 NFAEquivalent FSA Input String babaa

4 Key Idea a b a,b b b aa 1 2 3 4 5 6 NFAEquivalent FSA We will illustrate the computation of both the NFA and the FSA on the input string babaa. In all configurations, the set of states the NFA is in will be identical to the state the FSA is in.

5 Initial Configurations a b a,b b b aa 1 2 3 4 5 6 (1, babaa) ({1}, babaa)

6 Second Configurations a b a,b b b aa 1 2 3 4 5 6 (1, babaa) ({1}, babaa) (3, abaa) ({3}, abaa)

7 Third Configurations a b a,b b b aa 1 2 3 4 5 6 (1, babaa) ({1}, babaa) (3, abaa) ({3}, abaa) (3, baa)(4, baa) ({3,4}, baa)

8 Fourth Configurations a b a,b b b aa 1 2 3 4 5 6 (1, babaa) ({1}, babaa) (3, abaa) ({3}, abaa) (3, baa)(4, baa) ({3,4}, baa) (3, aa)(5, aa)({3,5}, aa)

9 Fifth Configurations a b a,b b b aa 1 2 3 4 5 6 (1, babaa) ({1}, babaa) (3, abaa) ({3}, abaa) (3, baa)(4, baa) ({3,4}, baa) (3, aa)(5, aa)({3,5}, aa) (3, a)(4, a) ({3,4}, a)

10 Accepting Configurations a b a,b b b aa 1 2 3 4 5 6 (1, babaa) ({1}, babaa) (3, abaa) ({3}, abaa) (3, baa)(4, baa) ({3,4}, baa) (3, aa)(5, aa)({3,5}, aa) (3, a)(4, a) ({3,4}, a) (3, )(4, ) (6, ) ({3,4,6}, )


Download ppt "Why the algorithm works! Converting an NFA into an FSA."

Similar presentations


Ads by Google