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.
Lecture 8 From NFA to Regular Language. Induction on k= # of states other than initial and final states K=0 a a* b a c d c*a(d+bc*a)*
8/27/2009 Sofya Raskhodnikova Intro to Theory of Computation L ECTURE 2 Theory of Computation Finite Automata Operations on languages Nondeterminism L2.1.
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.
1 Positive Properties of Context-Free languages. 2 Context-free languages are closed under: Union is context free is context-free.
1 Regular Expressions. 2 Regular expressions describe regular languages Example: describes the language.
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 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.
Courtesy Costas Busch - RPI1 Non-regular languages.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
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:
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.
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.
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.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
1 Language Recognition (11.4) Longin Jan Latecki Temple University Based on slides by Costas Busch from the courseCostas Busch
Costas Busch - LSU1 Linear Grammars Grammars with at most one variable at the right side of a production Examples:
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.
Lecture 15: Theory of Automata:2014 Finite Automata with Output.
PROPERTIES OF REGULAR LANGUAGES
Busch Complexity Lectures: Reductions
Reductions Costas Busch - LSU.
Formal Language & Automata Theory
PDAs Accept Context-Free Languages
Single Final State for NFA
Language Recognition (12.4)
Regular Expressions Prof. Busch - LSU.
Closure Properties for Regular Languages
Deterministic Finite Automata And Regular Languages Prof. Busch - LSU.
Non-Deterministic Finite Automata
CSE322 PROPERTIES OF REGULAR LANGUAGES
Properties of Regular Languages
CS 154, Lecture 3: DFANFA, Regular Expressions.
COSC 3340: Introduction to Theory of Computation
CSE322 CONSTRUCTION OF FINITE AUTOMATA EQUIVALENT TO REGULAR EXPRESSION Lecture #9.
4. Properties of Regular Languages
Non-Deterministic Finite Automata
Decidable Languages Costas Busch - LSU.
Non Deterministic Automata
Deterministic PDAs - DPDAs
Closure Properties of Context-Free languages
CSCI 2670 Introduction to Theory of Computing
Undecidable problems:
Properties of Context-Free languages
Language Recognition (12.4)
Convert to a DFA: Start state: Final States: P Symbol Q E(Q) a b.
Chapter 1 Regular Language
NFAs accept the Regular Languages
CSCI 2670 Introduction to Theory of Computing
Presentation transcript:

Properties of Regular Languages Prof. Busch - LSU

For regular languages and we will prove that: Union: Are regular Languages Concatenation: Star: Reversal: Complement: Intersection: Prof. Busch - LSU

We say: Regular languages are closed under Union: Concatenation: Star: Reversal: Complement: Intersection: Prof. Busch - LSU

A useful transformation: use one accept state NFA 2 accept states Equivalent NFA 1 accept state Prof. Busch - LSU

In General NFA Equivalent NFA Single accepting state Prof. Busch - LSU

NFA without accepting state Extreme case NFA without accepting state Add an accepting state without transitions Prof. Busch - LSU

Take two languages Regular language Regular language NFA NFA Single accepting state Regular language NFA Single accepting state NFA Prof. Busch - LSU

Example Prof. Busch - LSU

Union NFA for Prof. Busch - LSU

Example NFA for Prof. Busch - LSU

Concatenation NFA for Prof. Busch - LSU

Example NFA for Prof. Busch - LSU

Star Operation NFA for Prof. Busch - LSU

Example NFA for Prof. Busch - LSU

Reverse NFA for 1. Reverse all transitions 2. Make initial state accepting state and vice versa Prof. Busch - LSU

Example Prof. Busch - LSU

Complement 1. Take the DFA that accepts 2. Make accepting states non-final, and vice-versa Prof. Busch - LSU

Example Prof. Busch - LSU

Intersection regular We show regular regular Prof. Busch - LSU

DeMorgan’s Law: regular Prof. Busch - LSU

Example regular regular regular Prof. Busch - LSU

Another Proof for Intersection Closure Machine Machine DFA for DFA for Construct a new DFA that accepts simulates in parallel and Prof. Busch - LSU

States in State in State in Prof. Busch - LSU

DFA DFA transition transition DFA New transition Prof. Busch - LSU

DFA DFA initial state initial state DFA New initial state Prof. Busch - LSU

Both constituents must be accepting states DFA DFA accept state accept states DFA New accept states Both constituents must be accepting states Prof. Busch - LSU

Example: Prof. Busch - LSU

Automaton for intersection Prof. Busch - LSU

simulates in parallel and accepts string if and only if: accepts string and accepts string Prof. Busch - LSU