Why the algorithm works! Simulating 2 FSA’s with 1 FSA.

Slides:



Advertisements
Similar presentations
Recognising Languages We will tackle the problem of defining languages by considering how we could recognise them. Problem: Is there a method of recognising.
Advertisements

1 Lecture 32 Closure Properties for CFL’s –Kleene Closure construction examples proof of correctness –Others covered less thoroughly in lecture union,
1 Module 20 NFA’s with -transitions –NFA- ’s Formal definition Simplifies construction –LNFA- –Showing LNFA  is a subset of LNFA (extra credit) and therefore.
Theory Of Automata By Dr. MM Alam
1 Regular Expressions and Automata September Lecture #2-2.
Lecture 3UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 3.
1 Module 15 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA –Comparing LFSA to set of solvable languages (REC)
Lecture 9 Recursive and r.e. language classes
1 Lecture 14 Language class LFSA –Study limits of what can be done with FSA’s –Closure Properties –Comparing to other language classes.
1 Module 19 LNFA subset of LFSA –Theorem 4.1 on page 131 of Martin textbook –Compare with set closure proofs Main idea –A state in FSA represents a set.
Homework 8 Solutions #1 True or False a) Regular languages are recursive b) Context free languages are recursively enumerable (r.e.) c) Recursive languages.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
1 Module 9 Recursive and r.e. language classes –representing solvable and half-solvable problems Proofs of closure properties –for the set of recursive.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Lecture 8 Recursively enumerable (r.e.) languages
1 Module 21 Closure Properties for LFSA using NFA’s –From now on, when I say NFA, I mean any NFA including an NFA- unless I add a specific restriction.
Why the algorithm works! Converting an NFA into an FSA.
1 Module 16 Distinguishability –Definition –Help in designing/debugging FSA’s.
Simulating 2 FSA’s with 1 FSA. Purpose This presentation presents an example execution of the algorithm which takes as input two FSA’s and produces as.
1 Lecture 13 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA.
Decidability. Why study un-solvability? When a problem is algorithmically unsolvable, we realize that the problem must be simplified or altered before.
1 Lecture 26 Decision problems about regular languages –Basic problems are solvable halting, accepting, and emptiness problems –Solvability of other problems.
1 Uncountable Sets continued Theorem: Let be an infinite countable set. The powerset of is uncountable.
Why the algorithm works! Simulating 2 FSA’s with 1 FSA.
1 Lecture 16 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA –Comparing LFSA to set of solvable languages (REC)
1 Finite Automata. 2 Finite Automaton Input “Accept” or “Reject” String Finite Automaton Output.
1 Module 18 NFA’s –nondeterministic transition functions computations are trees, not paths –L(M) and LNFA LFSA subset of LNFA –Comparing computational.
Regular Expression to NFA-  (a+ba) * a. First Parsing Step concatenate (a+ba) * a.
Lecture 18 NFA’s with -transitions –NFA- ’s Formal definition Simplifies construction –LNFA- –Showing LNFA  is a subset of LNFA and therefore a subset.
1 Lecture 16 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA –Comparing LFSA to set of solvable languages (REC)
1 Lecture 5 Topics –Closure Properties for REC Proofs –2 examples Applications.
1 Lecture 18 Closure Properties of Language class LFSA –Remember ideas used in solvable languages unit –Set complement –Set intersection, union, difference,
1 Lecture 36 Attempt to prove that CFL’s are closed under intersection –Review previous constructions –Translate previous constructions to current setting.
1 Module 31 Closure Properties for CFL’s –Kleene Closure construction examples proof of correctness –Others covered less thoroughly in lecture union, concatenation.
1 Lecture 16 NFA’s –nondeterministic transition functions computations are trees, not paths –L(M) and LNFA LFSA subset of LNFA –Comparing computational.
1 Lecture 23 Decision problems about regular languages –Programs can be inputs to other programs FSA’s, NFA’s, regular expressions –Basic problems are.
1 Module 25 Decision problems about regular languages –Basic problems are solvable halting, accepting, and emptiness problems –Solvability of other problems.
1 Lecture 19 Closure Properties for LFSA using NFA’s –union second proof –concatenation –Kleene closure.
CS5371 Theory of Computation Lecture 4: Automata Theory II (DFA = NFA, Regular Language)
1 Lecture 20 LNFA subset of LFSA –Theorem 4.1 on page 105 of Martin textbook –Compare with set closure proofs Main idea –A state in FSA represents a set.
NFA- to NFA conversion. Purpose This presentation presents an example execution of the algorithm which takes as input an NFA with -transitions and produces.
Converting an NFA into an FSA Proving LNFA is a subset of LFSA.
Finite Automata Costas Busch - RPI.
Why the algorithm works! Converting an NFA into an FSA.
Grammars, Languages and Finite-state automata Languages are described by grammars We need an algorithm that takes as input grammar sentence And gives a.
1 Module 10 Recursive and r.e. language classes –representing solvable and half-solvable problems Proofs of closure properties –for the set of recursive.
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
Finite-State Machines with No Output
Lexical Analysis — Part II: Constructing a Scanner from Regular Expressions Copyright 2003, Keith D. Cooper, Ken Kennedy & Linda Torczon, all rights reserved.
Lexical Analysis — Part II: Constructing a Scanner from Regular Expressions.
Lexical Analysis Constructing a Scanner from Regular Expressions.
Theory of Computation, NTUEE Theory of Computation Lecture 04 Undecidability Part of the materials are from Courtesy of Prof. Peter J. Downey Department.
1 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA –Comparing LFSA to set of solvable languages (REC)
Recursively Enumerable and Recursive Languages
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA.
1 Module 17 Closure Properties of Language class LFSA –Remember ideas used in solvable languages unit –Set complement –Set intersection, union, difference,
Section 1.2 – 1.3 Outline Intersection  Disjoint Sets (A  B=  ) AND Union  OR Universe The set of items that are possible for membership Venn Diagrams.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
BİL711 Natural Language Processing1 Regular Expressions & FSAs Any regular expression can be realized as a finite state automaton (FSA) There are two kinds.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
Conversions Regular Expression to FA FA to Regular Expression.
Chapters 11 and 12 Decision Problems and Undecidability.
Properties of Regular Languages
CSE 105 theory of computation
CSE322 Finite Automata Lecture #2.
COSC 3340: Introduction to Theory of Computation
More undecidable languages
Instructor: Aaron Roth
CSE 105 theory of computation
CSE 105 theory of computation
Presentation transcript:

Why the algorithm works! Simulating 2 FSA’s with 1 FSA

Purpose This presentation attempts to give the reader some intuition as to why the algorithm which takes as input two FSA’s and produces as output an FSA which “simulates” both input FSA’s on any input string works correctly. We use the example from the previous presentation to illustrate this intuition.

Why the Transformation Works a b b b a a I III II a,b a a b b A B C D M1M1 M2M2 Constructed FSA

Key Idea a b b b a a I III II a,b a a b b A B C D M1M1 M2M2 Constructed FSA In all configurations, the pair of states that M 1 and M 2 are in is exactly the state that the constructed FSA is in.

Initial Configurations a b b b a a I III II a,b a a b b A B C D I,[1,abbb] A,[1,abbb](I,A),[1,abbb]

Second Configurations a b b b a a I III II a,b a a b b A B C D I,[1,abbb] A,[1,abbb](I,A),[1,abbb] I,[2,abbb] C,[2,abbb](I,C),[2,abbb]

Third Configurations a b b b a a I III II a,b a a b b A B C D I,[1,abbb] A,[1,abbb](I,A),[1,abbb] I,[2,abbb] C,[2,abbb](I,C),[2,abbb] II,[3,abbb]D,[3,abbb](II,D),[3,abbb]

Fourth Configurations a b b b a a I III II a,b a a b b A B C D I,[1,abbb] A,[1,abbb](I,A),[1,abbb] I,[2,abbb] C,[2,abbb](I,C),[2,abbb] II,[3,abbb]D,[3,abbb](II,D),[3,abbb] III,[4,abbb]D,[4,abbb](III,D),[4,abbb]

Final Configurations a b b b a a I III II a,b a a b b A B C D I,[1,abbb] A,[1,abbb](I,A),[1,abbb] I,[2,abbb] C,[2,abbb](I,C),[2,abbb] II,[3,abbb]D,[3,abbb](II,D),[3,abbb] III,[4,abbb]D,[4,abbb](III,D),[4,abbb] I,[5,abbb]D,[5,abbb](I,D),[5,abbb]

Determining Acceptance a b b b a a I III II a,b a a b b A B C D I,[5,abbb]D,[5,abbb](I,D),[5,abbb] The input string abbb is accepted by both input FSA’s. Thus, if the constructed FSA is designed to accept the set intersection or set union of the two languages accepted by the two input FSA’s, the constructed FSA should accept the input string abbb. If the constructed FSA is designed to accept the set difference or symmetric difference of the two languages accepted by the two input FSA’s, it should reject the input string abbb.