Non-Deterministic Finite State Automata (NFA Or NFSA)

2y ago
10 Views
3 Downloads
1,003.73 KB
5 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Halle Mcleod
Transcription

Non-Deterministic Finite State Automata (NFA orNFSA)Q: What does deterministic mean?that the path is determined, i.e., fixed, there is no choice.NFSA. A non-deterministic finite state automata (NFSA) extendsDFSA by allowing choice at each state.Differences between DFSA and NFSA: NFSA. Given a state qi and an input x there can be morethan one possible transition, i.e,δ (q, x) {set of qi } NFSA. Given state qi , we can have an " transition.δ (qi , ") qjThis means we can spontaneously jump from qi to qj .Q: How do we know if a string is accepted by an NFSA?We must check all possible paths and as long as one of themends in an accepting state, then the string is accepted.93

Examples of NFSAConsider the strings that are represented by the regular expression: (010 01) NFSA:(q0 , 0) q1(q1 , 1) q2(q2 , 0, ") q0DFSA:(q0 , 0) q1(q1 , 1) q2(q2 , 0) q3(q3 , 1) q2(q3 , 0) q1Formally. An NFSA, is a machine M (Q, Σ , δ, s, F ) where each of Q, Σ , s, F are as for a DFSA. δ : Q (Σ {"}) P(Q) (P(Q) is a set of states). δ : Q Σ P(Q).94

Limitations of DFSA and NFSAQ: Can every set of strings be recognized by a DFSA? an NFSA?No, NoQ: How much more powerful is an NFSA over a DFSA?Not more powerfulDetailed answers. Only strings representable by regular expressions can berecognized by an NFSA or DFSA. There exists an algorithm to convert between deterministicand non-deterministic machines.Theorem. If L is a regular language then the following are allequivalent:1. L is denoted by a regular expression2. L is accepted by a deterministic FSA3. L is accepted by a non-deterministic FSA(See the course text for the proof.)95

Closure Properties of FSA-accepted LanguagesQ: What do we mean by closure?if we perform some operation on elements of a set, the new element still belongs to the set.Theorem Every regular language L is closed under complementation, union, intersection, concatenation and the Kleene star operation.Q: What does this mean?If L and L% are regular languages, then so too are L L% , L L% , L, LL% , L .Proof of L L% . Let M be a NFSA that accepts L. Let M % be a NFSA that accepts L% .Q: How can we construct M that will accept either language?add a new start state, s with " transitions to the start states of M %and M .Proof of L .Given M accepting L, how can we build a new NFSA to acceptL ?from each accepting state we make an epsilon transission backto the start (which is a new start to allow the empty string.96

Regular LanguagesQ: How can we prove that a language L is regular?build a DFSA or a regular expressionQ: How can we prove that a L is not regular? Any FSA has a finite number of states, say n. Therefore if L is infinite, then L has strings with n symbols. Q: What does this imply about at least one state of theFSA? we must at some point return to an earlier state,say qi . Repeating this cycle an arbitrary number of times must yieldanother string in L. Q: What does this mean?Any string on n symbols, must have a portion of it that isjust a cycle being repeated some number of times. Q: How does this help us?If we can show for a particular language that no such cyclingsubstring can exist, then the language cannot be regular97

Only strings representable by regular expressions can be recognized by an NFSA or DFSA. There exists an algorithm to convert between deterministic and non-deterministic machines. Theorem. If L is a regular language then the following are all equivalent: 1. L is denoted by a regular expre

Related Documents:

Deterministic Finite Automata plays a vital role in lexical analysis phase of compiler design, Control Flow graph in software testing, Machine learning [16], etc. Finite state machine or finite automata is classified into two. These are Deterministic Finite Automata (DFA) and non-deterministic Finite Automata(NFA).

In computer science we find many examples of finite state systems:-1- Switching circuit, such as the control unit of a computer. . Theory Finite State System Non Deterministic Finite Automata (NFA) Non Deterministic Finite Automaton (NFA): . Let L be a set accepted by a non deterministic finite automata. Then there exists

Complexity, the Central Concepts of Automata Theory - Alphabets, Strings, Languages, Problems. Deterministic Finite Automata, Nondeterministic Finite Automata, an application: Text Search, Finite Automata with Epsilon-Transitions, Finite automata with output - Mealy and Moore machines, Equivalence of Mealy and Moore machines.

properties of bipolar general fuzzy switchboard automata are discussed in term of switching and commutative by proving the theorems that are related into these concepts. . 2.3 Automata theory 18 2.4 Optimisation problems 23 2.4.1 Critical path problem 23 . Deterministic finite automata FSM - Finite state machine FSA - Finite state automata .

Finite Set Automata:- Formal Definition, Finite State Machine, Deterministic Finite Automata . "Introduction to Automata Theory, Languages and Computation", 3rd Edition,2006 4. Anand Sharma, "Theory of Automata and Formal language", Laxmi Publications, 2nd . Packet Switching Network, Frame Relay Network, ATM Protocol Architecture .

Advanced Automata Theory is a lecture which will rst review the basics of formal languages and automata theory and then give insight into speci c topics from wider area of automata theory. In computer science, automata are an important tool for many theoretical results and various types of automata

Automata theory plays a foundational role in computer science, and it is hoped that some of this success can be transferred to the quantum case. Quantum finite automata can be used to model the dynamics of finite quantum systems in the same way that deterministic finite automa

Automata and Formal Languages II Tree Automata Peter Lammich SS 2015 1/161. Overview by Lecture Apr 14: Slide 3 Apr 21: Slide 2 Apr 28: Slide 4 May 5: Slide 50 . Finite tree automata: Basic theory (TATA Ch. 1) Pumping Lemma, Clo