General Discussion of “Properties” The Pumping Lemma Membership, Emptiness, Etc.

Slides:



Advertisements
Similar presentations
Properties of Regular Sets
Advertisements

The Pumping Lemma for CFL’s
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.
Regular Expressions Finite State Automaton. Programming Languages2 Regular expressions  Terminology on Formal languages: –alphabet : a finite set of.
Finite Automata Great Theoretical Ideas In Computer Science Anupam Gupta Danny Sleator CS Fall 2010 Lecture 20Oct 28, 2010Carnegie Mellon University.
1 Introduction to Computability Theory Lecture3: Regular Expressions Prof. Amos Israeli.
Lecture 3UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 3.
CS5371 Theory of Computation
CS 310 – Fall 2006 Pacific University CS310 Pumping Lemma Sections:1.4 page 77 September 27, 2006.
1 More Properties of Regular Languages. 2 We have proven Regular languages are closed under: Union Concatenation Star operation Reverse.
Lecture Note of 12/22 jinnjy. Outline Chomsky Normal Form and CYK Algorithm Pumping Lemma for Context-Free Languages Closure Properties of CFL.
Lecture 7 Sept 22, 2011 Goals: closure properties regular expressions.
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.
Homework 4 Solutions.
CS5371 Theory of Computation Lecture 4: Automata Theory II (DFA = NFA, Regular Language)
Definitions Equivalence to Finite Automata
Topics Automata Theory Grammars and Languages Complexities
CS 503 Spring semester 2015 WPI Most of the slides below are due to Jeffrey Ullman (one of our textbok’s authors). They are slides from a course he gave.
Introduction to Finite Automata Adapted from the slides of Stanford CS154.
Theory of Computing Lecture 22 MAS 714 Hartmut Klauck.
Decision Properties of Regular Languages
Extra on Regular Languages and Non-Regular Languages
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2012.
Decidable Questions About Regular languages 1)Membership problem: “Given a specification of known type and a string w, is w in the language specified?”
Properties of Regular Languages
Review for final pm. 2 Review for Midterm Induction – On integer: HW1, Ex 2.2.9b p54 – On length of string: Ex p53, HW2, HW3.
CS 203: Introduction to Formal Languages and Automata
1 Decision Properties of Regular Languages General Discussion of “Properties” The Pumping Lemma Minimizing DFA.
Finite Automata Chapter 1. Automatic Door Example Top View.
Algorithms for hard problems Automata and tree automata Juris Viksna, 2015.
Finite Automata Great Theoretical Ideas In Computer Science Victor Adamchik Danny Sleator CS Spring 2010 Lecture 20Mar 30, 2010Carnegie Mellon.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
Department of Software & Media Technology
Alphabet, String, Language. 2 Alphabet and Strings An alphabet is a finite, non-empty set of symbols. –Denoted by  –{ 0, 1 } is a binary alphabet. –{
CS314 – Section 5 Recitation 2
Formal Language & Automata Theory
Standard Representations of Regular Languages
Properties of Context-Free Languages
CSE 105 theory of computation
Closure Properties of Regular Languages
Deterministic FA/ PDA Sequential Machine Theory Prof. K. J. Hintz
PROPERTIES OF REGULAR LANGUAGES
CSE 105 theory of computation
CSE 3813 Introduction to Formal Languages and Automata
PDAs Accept Context-Free Languages
Deterministic Finite Automata
CSE 105 theory of computation
Recognizer for a Language
Deterministic Finite Automata
Decision Properties of Regular Languages
Undecidable Problems (unsolvable problems)
Infiniteness Test The Pumping Lemma Nonregular Languages
Chapter Two: Finite Automata
COSC 3340: Introduction to Theory of Computation
4. Properties of Regular Languages
Decidable Languages Costas Busch - LSU.
Introduction to Finite Automata
Deterministic PDAs - DPDAs
Closure Properties of Context-Free languages
Elementary Questions about Regular Languages
Closure Properties of Regular Languages
Chapter 4 Properties of Regular Languages
The Pumping Lemma for CFL’s
Closure Properties of Regular Languages
Regular Language Equivalence and DFA Minimization
Instructor: Aaron Roth
Applications of Regular Closure
CSE 105 theory of computation
Presentation transcript:

General Discussion of “Properties” The Pumping Lemma Membership, Emptiness, Etc.

  A language class is a set of languages.  Example: the regular languages.  Language classes have two important kinds of properties: 1.Decision properties. 2.Closure properties. Properties of Language Classes

  A closure property of a language class says that given languages in the class, an operation (e.g., union) produces another language in the same class.  Example: the regular languages are obviously closed under union, concatenation, and (Kleene) closure.  Use the RE representation of languages. Closure Properties

  Representations can be formal or informal.  Example (formal): represent a language by a RE or FA defining it.  Example: (informal): a logical or prose statement about its strings:  {0 n 1 n | n is a nonnegative integer}  “The set of strings consisting of some number of 0’s followed by the same number of 1’s.” Representation of Languages

  A decision property for a class of languages is an algorithm that takes a formal description of a language (e.g., a DFA) and tells whether or not some property holds.  Example: Is language L empty? Decision Properties

  Think about DFA’s representing protocols.  Example: “Does the protocol terminate?” = “Is the language finite?”  Example: “Can the protocol fail?” = “Is the language nonempty?”  Make the final state be the “error” state. Why Decision Properties?

  We might want a “smallest” representation for a language, e.g., a minimum-state DFA or a shortest RE.  If you can’t decide “Are these two languages the same?”  I.e., do two DFA’s define the same language? You can’t find a “smallest.” Why Decision Properties – (2)

  Our first decision property for regular languages is the question: “is string w in regular language L?”  Assume L is represented by a DFA A.  Simulate the action of A on the sequence of input symbols forming w. The Membership Problem

 Example: Testing Membership Start 1 0 ACB 1 0 0, Next symbol Current state

 Example: Testing Membership Start 1 0 ACB 1 0 0, Next symbol Current state

 Example: Testing Membership Start 1 0 ACB 1 0 0, Next symbol Current state

 Example: Testing Membership Start 1 0 ACB 1 0 0, Next symbol Current state

 Example: Testing Membership Start 1 0 ACB 1 0 0, Next symbol Current state

 Example: Testing Membership Start 1 0 ACB 1 0 0, Next symbol Current state

  There is a circle of conversions from one form to another: What if We Have the Wrong Representation? RE DFA NFA ε -NFA

  Given a regular language, does the language contain any string at all?  Assume representation is DFA.  Compute the set of states reachable from the start state.  If at least one final state is reachable, then yes, else no. The Emptiness Problem

  Is a given regular language infinite?  Start with a DFA for the language.  Key idea: if the DFA has n states, and the language contains any string of length n or more, then the language is infinite.  Otherwise, the language is surely finite.  Limited to strings of length n or less. The Infiniteness Problem