Summary Showing regular Showing non-regular construct DFA, NFA

Slides:



Advertisements
Similar presentations
Finite Automata CPSC 388 Ellen Walker Hiram College.
Advertisements

Fall 2006Costas Busch - RPI1 Non-regular languages (Pumping Lemma)
CSCI 2670 Introduction to Theory of Computing September 13, 2005.
1 Introduction to Computability Theory Lecture3: Regular Expressions Prof. Amos Israeli.
Costas Busch - RPI1 Single Final State for NFAs. Costas Busch - RPI2 Any NFA can be converted to an equivalent NFA with a single final state.
Courtesy Costas Busch - RPI1 Non Deterministic Automata.
Fall 2006Costas Busch - RPI1 Regular Expressions.
1 Introduction to Computability Theory Lecture2: Non Deterministic Finite Automata (cont.) Prof. Amos Israeli.
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.
Lecture 3: Closure Properties & Regular Expressions Jim Hook Tim Sheard Portland State University.
Fall 2004COMP 3351 Single Final State for NFA. Fall 2004COMP 3352 Any NFA can be converted to an equivalent NFA with a single final state.
1 Minimization; Pumping Lemma. October 2, Agenda Minimization Algorithm Guarantees smallest possible DFA for a given regular language Proof of.
1 Single Final State for NFAs and DFAs. 2 Observation Any Finite Automaton (NFA or DFA) can be converted to an equivalent NFA with a single final state.
Lecture 7 Sept 22, 2011 Goals: closure properties regular expressions.
1 NFAs accept the Regular Languages. 2 Equivalence of Machines Definition: Machine is equivalent to machine if.
Fall 2006Costas Busch - RPI1 Properties of Regular Languages.
CS5371 Theory of Computation Lecture 6: Automata Theory IV (Regular Expression = NFA = DFA)
Courtesy Costas Busch - RPI1 Non-regular languages.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
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)
FSA Lecture 1 Finite State Machines. Creating a Automaton  Given a language L over an alphabet , design a deterministic finite automaton (DFA) M such.
1 Non-Deterministic Automata Regular Expressions.
Theory of Computing Lecture 22 MAS 714 Hartmut Klauck.
Fall 2004COMP 3351 Another NFA Example. Fall 2004COMP 3352 Language accepted (redundant state)
Costas Busch - LSU1 Non-Deterministic Finite Automata.
Prof. Busch - LSU1 Non-regular languages (Pumping Lemma)
1 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY For next time: Read 2.1 & 2.2.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
1 A Single Final State for Finite Accepters. 2 Observation Any Finite Accepter (NFA or DFA) can be converted to an equivalent NFA with a single final.
Transparency No. 8-1 Formal Language and Automata Theory Chapter 8 DFA state minimization (lecture 13, 14)
Fall 2004COMP 3351 Regular Expressions. Fall 2004COMP 3352 Regular Expressions Regular expressions describe regular languages Example: describes the language.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2012.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
Theory of Computation, Feodor F. Dragan, Kent State University 1 Regular expressions: definition An algebraic equivalent to finite automata. We can build.
Introduction to CS Theory
DFA Minimization 1 2 Equivalent States Consider the accept states c and g. They are both sinks meaning that any string which ever reaches them is guaranteed.
CSCI 2670 Introduction to Theory of Computing September 1, 2005.
CHAPTER 1 Regular Languages
Class Discussion Can you draw a DFA that accepts the language {a k b k | k = 0,1,2,…} over the alphabet  ={a,b}?
CS 203: Introduction to Formal Languages and Automata
Regular Expressions Costas Busch - LSU.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 9 Mälardalen University 2006.
CSCI 3130: Formal languages and automata theory Tutorial 3 Chin.
Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1 Chapter 1 Regular Languages Some slides are in courtesy.
MINIMIZATION May 12, Agenda 2  These slides are not mine www1.cs.solumbia.edu/~zeph/3261/L9/L9.ppt www1.cs.solumbia.edu/~zeph/3261/L9/L9.ppt.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
Equivalence with FA * Any Regex can be converted to FA and vice versa, because: * Regex and FA are equivalent in their descriptive power ** Regular language.
Regular Languages Chapter 1 Giorgi Japaridze Theory of Computability.
COMP3190: Principle of Programming Languages DFA and its equivalent, scanner.
 2005 SDU Lecture11 Decidability.  2005 SDU 2 Topics Discuss the power of algorithms to solve problems. Demonstrate that some problems can be solved.
Lecture 15: Theory of Automata:2014 Finite Automata with Output.
Properties of Regular Languages
PROPERTIES OF REGULAR LANGUAGES
Single Final State for NFA
CS 154, Lecture 4: Limitations on DFAs (I),
Regular Expression We shall build expressions from the symbols using simple operations include concatenation, union and kleen closure. Several intuitive.
More on DFA minimization and DFA equivalence
Properties of Regular Languages
4. Properties of Regular Languages
Non-Deterministic Finite Automata
Non Deterministic Automata
Deterministic PDAs - DPDAs
Chapter 1 Regular Language - 02
Instructor: Aaron Roth
CHAPTER 1 Regular Languages
NFAs accept the Regular Languages
Presentation transcript:

Summary Showing regular Showing non-regular construct DFA, NFA construct regular expression show L is the union, concatenation, intersection (regular operations) of regular languages. Showing non-regular pumping lemma assume regular, apply closure properties of regular languages and obtain a known non-regular language.

Equivalence & Minimization of Automata

Outline Equivalence of a state in a DFA regular languages Minimization of DFA smallest possible DFA for a given regular language

Equivalent States. Example Consider the accept states c and g. They are both sinks meaning that any string which ever reaches them is guaranteed to be accepted later. Q: Do we need both states? 0,1 b c 1 0,1 1 a d e 0,1 1 1 f g

Example (cont) A: No, they can be unified as illustrated below. Q: Can any other states be unified because any subsequent string suffixes produce identical results? b 0,1 1 1 a d 0,1 e cg 1 1 f

Example (cont) A: Yes, b and f. Notice that if you’re in b or f then: if string ends, reject in both cases if next character is 0, forever accept in both cases if next character is 1, forever reject in both cases So unify b with f. b 0,1 1 1 a d 0,1 e cg 1 1 f

Example (cont) Intuitively two states are equivalent if all subsequent behavior from those states is the same. Come up with a formal characterization of state equivalence. Q: Any other ways to simplify the automaton? 0,1 1 a d 0,1 e cg 0,1 1 bf

Example (cont) A: Get rid of d. i.e. Getting rid of unreachable useless states doesn’t affect the accepted language. 0,1 a 0,1 e cg 0,1 1 bf

Equivalent States. Definition Two states q and q’ in a DFA M = (Q, Σ, δ, q0, F ) are said to be equivalent (or indistinguishable) if for all strings u  Σ*, the states on which u ends on when read from q and q’ are both accept, or both non-accept. Equivalent states may be glued together without affecting M’ s behavior.

Minimization Algorithm. Goals DEF: An automaton is irreducible if it contains no useless states, and no two distinct states are equivalent. The goal of minimization algorithm is to create irreducible automata from arbitrary ones. Later: remarkably, the algorithm actually produces smallest possible DFA for the given language, hence the name “minimization”.

Minimization of DFA’s Example: The DFA has equivalence classes {{A,E}, {B,H}, {C}, {D,F}, {G}}

Equivalence Class Transitivity: If p ≡ q and q ≡ r, then p ≡ r Proof: Suppose to the contrary that p ≢ r Then or vice versa. Now is either accepting or not If Otherwise The vice versa case is proved symmetrically

Minimization of DFA’s (cont)

Example Can be minimized to

Cannot apply the TF-algo to NFA’s For Example, to minimize Simply remove state C However, A ≢ C

Minimized DFA Cannot be Beaten Let B be the minimized DFA obtained by applying the TF-Algo to DFA A. We know that L(A) = L(B) What if there existed a DFA C with L(C) = L(B) and fewer states than B? If we run the TF-Algo on B “union” C Also If we could distinguish successors then

Minimized DFA Cannot be Beaten (cont) Claim: For each state p in B there is at least one state q in C, s.t. Proof: There are no inaccessible states, so Now and Since C has fewer states than B, there must be two states r & s of B s.t. For some state t of C. But CONTRADICTION!!