Fall 2006Costas Busch - RPI1 Properties of Regular Languages.

Slides:



Advertisements
Similar presentations
CS2303-THEORY OF COMPUTATION Closure Properties of Regular Languages
Advertisements

Fall 2003Costas Busch - RPI1 Properties of Context-Free languages.
Fall 2006Costas Busch - RPI1 Non-regular languages (Pumping Lemma)
Automata and Formal Languages Tim Sheard 1 Lecture 9 Reasoning with DFAs.
NFAs Sipser 1.2 (pages 47–54). CS 311 Fall Recall… Last time we showed that the class of regular languages is closed under: –Complement –Union.
Lecture 3UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 3.
Prof. Busch - LSU1 Properties of Context-Free languages.
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.
Finite Automata and Non Determinism
Courtesy Costas Busch - RPI1 Non Deterministic Automata.
Fall 2006Costas Busch - RPI1 Regular Expressions.
Courtesy Costas Busch - RPI1 Positive Properties of Context-Free languages.
CS 310 – Fall 2006 Pacific University CS310 Converting NFA to DFA Sections:1.2 Page 54 September 15, 2006.
1 Positive Properties of Context-Free languages. 2 Context-free languages are closed under: Union is context free is context-free.
1 More Properties of Regular Languages. 2 We have proven Regular languages are closed under: Union Concatenation Star operation Reverse.
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.
Costas Busch - RPI1 Positive Properties of Context-Free languages.
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.
Courtesy Costas Busch - RPI1 Non-regular languages.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
Finite Automata Costas Busch - RPI.
Costas Busch - LSU1 Non-Deterministic Finite Automata.
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.
1 A Non Context-Free Language (We will prove it at the next class)
Fall 2004COMP 3351 Regular Expressions. Fall 2004COMP 3352 Regular Expressions Regular expressions describe regular languages Example: describes the language.
Fall 2003Costas Busch - RPI1 Linear Grammars Grammars with at most one variable at the right side of a production Examples:
NFA Closure Properties. NFAs also have closure properties We have given constructions for showing that DFAs are closed under 1.Complement 2.Intersection.
NFA Closure Properties Sipser pages pages NFAs also have closure properties We have given constructions for showing that DFAs are closed under.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2012.
Prof. Busch - LSU1 NFAs accept the Regular Languages.
INHERENT LIMITATIONS OF COMPUTER PROGAMS CSci 4011.
Regular Expressions Costas Busch - LSU.
Costas Busch - LSU1 Properties of Context-Free languages.
Regular Language Algorithms. Algorithms We have seen many algorithms for manipulating computational systems for the regular languages. Each treats these.
1 Language Recognition (11.4) Longin Jan Latecki Temple University Based on slides by Costas Busch from the courseCostas Busch
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.
1 Some Properties of Regular Languages. 2 Properties Concatenation:Star: Union: Are regular Languages For regular languages and.
P Symbol Q E(Q) a b a b a b Convert to a DFA: Start state: Final States:
1 Closure E.g., we understand number systems partly by understanding closure properties: Naturals are closed under +, , but not -, . Integers are closed.
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Consider problems with answer YES or NO Examples: Does Machine have three states ? Is string a binary.
Lecture 15: Theory of Automata:2014 Finite Automata with Output.
Properties of Regular Languages
PROPERTIES OF REGULAR LANGUAGES
NPDAs Accept Context-Free Languages
Formal Language & Automata Theory
PDAs Accept Context-Free Languages
Single Final State for NFA
Language Recognition (12.4)
Closure Properties for Regular Languages
Non-Deterministic Finite Automata
CSE322 PROPERTIES OF REGULAR LANGUAGES
Properties of Regular Languages
COSC 3340: Introduction to Theory of Computation
CSE322 CONSTRUCTION OF FINITE AUTOMATA EQUIVALENT TO REGULAR EXPRESSION Lecture #9.
Non-Deterministic Finite Automata
Deterministic PDAs - DPDAs
Closure Properties of Context-Free languages
Non-regular languages
Closure Properties of Regular Languages
Properties of Context-Free languages
Language Recognition (12.4)
Chapter 1 Regular Language
NFAs accept the Regular Languages
CSCI 2670 Introduction to Theory of Computing
Presentation transcript:

Fall 2006Costas Busch - RPI1 Properties of Regular Languages

Fall 2006Costas Busch - RPI2 Concatenation: Star: Union: Are regular Languages For regular languages and we will prove that: Complement: Intersection: Reversal:

Fall 2006Costas Busch - RPI3 We say: Regular languages are closed under Concatenation: Star: Union: Complement: Intersection: Reversal:

Fall 2006Costas Busch - RPI4 NFA Equivalent NFA A useful transformation: use one accept state 2 accept states 1 accept state

Fall 2006Costas Busch - RPI5 NFA Equivalent NFA Single accepting state In General

Fall 2006Costas Busch - RPI6 NFA without accepting state Add an accepting state without transitions Extreme case

Fall 2006Costas Busch - RPI7 Regular language Single accepting state NFA Single accepting state Regular language NFA Take two languages

Fall 2006Costas Busch - RPI8 Example

Fall 2006Costas Busch - RPI9 Union NFA for

Fall 2006Costas Busch - RPI10 NFA for Example

Fall 2006Costas Busch - RPI11 Concatenation NFA for

Fall 2006Costas Busch - RPI12 NFA for Example

Fall 2006Costas Busch - RPI13 Star Operation NFA for

Fall 2006Costas Busch - RPI14 NFA for Example

Fall 2006Costas Busch - RPI15 Reverse NFA for 1. Reverse all transitions 2. Make initial state accepting state and vice versa

Fall 2006Costas Busch - RPI16 Example

Fall 2006Costas Busch - RPI17 Complement 1. Take the DFA that accepts 2. Make accepting states non-final, and vice-versa

Fall 2006Costas Busch - RPI18 Example

Fall 2006Costas Busch - RPI19 Intersection regular We show regular

Fall 2006Costas Busch - RPI20 DeMorgan’s Law: regular

Fall 2006Costas Busch - RPI21 Example regular

Fall 2006Costas Busch - RPI22 for DFA Construct a new DFA that accepts Machine simulates in parallel and Another Proof for Intersection Closure

Fall 2006Costas Busch - RPI23 States in State in

Fall 2006Costas Busch - RPI24 transition DFA New transition DFA

Fall 2006Costas Busch - RPI25 initial state New initial state DFA

Fall 2006Costas Busch - RPI26 accept state accept states New accept states DFA Both constituents must be accepting states

Fall 2006Costas Busch - RPI27 Example:

Fall 2006Costas Busch - RPI28 Automaton for intersection

Fall 2006Costas Busch - RPI29 simulates in parallel and accepts stringif and only if: accepts string and accepts string