Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Automata Theory Theory of Computation Lecture 5 Tasneem Ghnaimat.

Similar presentations


Presentation on theme: "Introduction to Automata Theory Theory of Computation Lecture 5 Tasneem Ghnaimat."— Presentation transcript:

1 Introduction to Automata Theory Theory of Computation Lecture 5 Tasneem Ghnaimat

2 Non-deterministic FSA In DFSA, when machine is in given state, and reads the next symbol, we know that the next symbol is determined. In NFSA, there are many choices exist for the next state. NFSA may have the symbol (), Tasneem Ghnaimat

3 Example on NFSA (M1) 0,1 0,1 1 0, ε 1 Tasneem Ghnaimat q0 q1q2 q1 q3

4 Example on NFSA (M2) ε 0,1 1 0,1 q0q2 q1 Tasneem Ghnaimat

5 Example on NFSA State transition table for M2 Tasneem Ghnaimat 10 Φ q1 Φ q0 Φ q2 q1 q0q2

6 How to use NFSA After reading a symbol, if there are several paths, the machine splits itself into multiple copies, of itself and follows all possibilities in parallel. Each copy of the machine takes one of the possible ways and continues as usual. If any one of the copies is in accept state, the NFSA accepts the input string. Tasneem Ghnaimat


Download ppt "Introduction to Automata Theory Theory of Computation Lecture 5 Tasneem Ghnaimat."

Similar presentations


Ads by Google