Prof. Busch - LSU1 NFAs accept the Regular Languages.

Slides:



Advertisements
Similar presentations
CSE 311 Foundations of Computing I
Advertisements

CSC 361NFA vs. DFA1. CSC 361NFA vs. DFA2 NFAs vs. DFAs NFAs can be constructed from DFAs using transitions: Called NFA- Suppose M 1 accepts L 1, M 2 accepts.
Finite Automata CPSC 388 Ellen Walker Hiram College.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 3 School of Innovation, Design and Engineering Mälardalen University 2012.
FORMAL LANGUAGES, AUTOMATA, AND COMPUTABILITY
1 Introduction to Computability Theory Lecture3: Regular Expressions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture4: Regular Expressions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture3: Regular Expressions Prof. Amos Israeli.
Introduction to Computability Theory
1 Introduction to Computability Theory Discussion1: Non-Deterministic Finite Automatons Prof. Amos Israeli.
1 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY (For next time: Read Chapter 1.3 of the book)
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.
CS 310 – Fall 2006 Pacific University CS310 Converting NFA to DFA Sections:1.2 Page 54 September 15, 2006.
1 Regular Expressions. 2 Regular expressions describe regular languages Example: describes the language.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automata And Regular Languages.
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 Languages and Finite Automata or how to talk to machines...
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.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Nondeterminism.
1 NFAs accept the Regular Languages. 2 Equivalence of Machines Definition: Machine is equivalent to machine if.
Lecture 3 Goals: Formal definition of NFA, acceptance of a string by an NFA, computation tree associated with a string. Algorithm to convert an NFA to.
Courtesy Costas Busch - RPI1 Non-regular languages.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
Lecture 8 Sept 29, 2011 Regular expressions – examples Converting DFA to regular expression. (same works for NFA to r.e. conversion.) Converting R.E. to.
1 Non-Deterministic Automata Regular Expressions.
Finite Automata Costas Busch - RPI.
Fall 2004COMP 3351 Another NFA Example. Fall 2004COMP 3352 Language accepted (redundant state)
Fall 2006Costas Busch - RPI1 PDAs Accept Context-Free Languages.
Costas Busch - LSU1 Non-Deterministic Finite Automata.
Prof. Busch - LSU1 Linear Grammars Grammars with at most one variable at the right side of a production Examples:
Prof. Busch - LSU1 Non-regular languages (Pumping Lemma)
Prof. Busch - LSU1 Reductions. Prof. Busch - LSU2 Problem is reduced to problem If we can solve problem then we can solve problem.
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.
Fall 2004COMP 3351 Regular Expressions. Fall 2004COMP 3352 Regular Expressions Regular expressions describe regular languages Example: describes the language.
CSE 311: Foundations of Computing Fall 2014 Lecture 23: State Minimization, NFAs.
Theory of Computation, Feodor F. Dragan, Kent State University 1 Regular expressions: definition An algebraic equivalent to finite automata. We can build.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 3 Mälardalen University 2010.
Lecture 5 Sept 06, 2012 Regular expressions – examples Converting DFA to regular expression. (same works for NFA to r.e. conversion.) Converting R.E. to.
CHAPTER 1 Regular Languages
Decidable languages Section 4.1 CSC 4170 Theory of Computation.
CSCI 2670 Introduction to Theory of Computing October 12, 2005.
CSCI 2670 Introduction to Theory of Computing September 13.
Regular Expressions Costas Busch - LSU.
1 Language Recognition (11.4) Longin Jan Latecki Temple University Based on slides by Costas Busch from the courseCostas Busch
CSCI 2670 Introduction to Theory of Computing September 7, 2004.
CSCI 2670 Introduction to Theory of Computing September 11, 2007.
Theory of Computation Automata Theory Dr. Ayman Srour.
Costas Busch - LSU1 PDAs Accept Context-Free Languages.
Costas Busch - LSU1 Deterministic Finite Automata And Regular Languages.
Non-regular languages
Non Deterministic Automata
Properties of Regular Languages
Busch Complexity Lectures: Reductions
Reductions Costas Busch - LSU.
PDAs Accept Context-Free Languages
Single Final State for NFA
Chapter 2 FINITE AUTOMATA.
Regular Expressions Prof. Busch - LSU.
Deterministic Finite Automata And Regular Languages Prof. Busch - LSU.
Non-Deterministic Finite Automata
Properties of Regular Languages
Non-Deterministic Finite Automata
Non Deterministic Automata
CSCI 2670 Introduction to Theory of Computing
Undecidable problems:
Chapter 1 Regular Language
NFAs accept the Regular Languages
Presentation transcript:

Prof. Busch - LSU1 NFAs accept the Regular Languages

Prof. Busch - LSU2 Equivalence of Machines Definition: Machine is equivalent to machine if

Prof. Busch - LSU3 NFA DFA Example of equivalent machines

Prof. Busch - LSU4 Theorem: Languages accepted by NFAs Regular Languages NFAs and DFAs have the same computation power, accept the same set of languages Languages accepted by DFAs

Prof. Busch - LSU5 Languages accepted by NFAs Regular Languages accepted by NFAs Regular Languages we only need to show Proof: AND

Prof. Busch - LSU6 Languages accepted by NFAs Regular Languages Proof-Step 1 Every DFA is trivially an NFA Any language accepted by a DFA is also accepted by an NFA

Prof. Busch - LSU7 Languages accepted by NFAs Regular Languages Proof-Step 2 Any NFA can be converted to an equivalent DFA Any language accepted by an NFA is also accepted by a DFA

Prof. Busch - LSU8 Conversion NFA to DFA NFA DFA

Prof. Busch - LSU9 NFA DFA

Prof. Busch - LSU10 NFA DFA empty set trap state

Prof. Busch - LSU11 NFA DFA union

Prof. Busch - LSU12 NFA DFA union

Prof. Busch - LSU13 NFA DFA trap state

Prof. Busch - LSU14 NFA DFA END OF CONSTRUCTION

Prof. Busch - LSU15 General Conversion Procedure Input: an NFA Output: an equivalent DFA with

Prof. Busch - LSU16 The NFA has states The DFA has states from the power set

Prof. Busch - LSU17 1. Initial state of NFA: Initial state of DFA: Conversion Procedure Steps step

Prof. Busch - LSU18 NFA DFA Example

Prof. Busch - LSU19 2. For every DFA’s state compute in the NFA add transition to DFA Union step

Prof. Busch - LSU20 NFA DFA Example

Prof. Busch - LSU21 3. Repeat Step 2 for every state in DFA and symbols in alphabet until no more states can be added in the DFA step

Prof. Busch - LSU22 NFA DFA Example

Prof. Busch - LSU23 4. For any DFA state if some is accepting state in NFA Then, is accepting state in DFA step

Prof. Busch - LSU24 NFA DFA Example

Prof. Busch - LSU25 If we convert NFA to DFA then the two automata are equivalent: Lemma: Proof: AND We only need to show:

Prof. Busch - LSU26 First we show: We only need to prove:

Prof. Busch - LSU27 symbols Consider NFA

Prof. Busch - LSU28 denotes a possible sub-path like symbol

Prof. Busch - LSU29 We will show that if then NFA DFA state label state label

Prof. Busch - LSU30 More generally, we will show that if in : (arbitrary string) then NFA DFA

Prof. Busch - LSU31 Proof by induction on Induction Basis: is true by construction of NFA DFA

Prof. Busch - LSU32 Induction hypothesis: NFA DFA Suppose that the following hold

Prof. Busch - LSU33 Induction Step: NFA DFA Then this is true by construction of

Prof. Busch - LSU34 Therefore if NFA DFA then

Prof. Busch - LSU35 We have shown: With a similar proof we can show: END OF LEMMA PROOF Therefore: