Solution Exercise 1.43 a A r r s q q > b b e b s’ q r q’ b r’ a A’

Slides:



Advertisements
Similar presentations
Properties of Regular Sets
Advertisements

Lecture 9,10 Theory of AUTOMATA
Regular Expressions and DFAs COP 3402 (Summer 2014)
Deterministic Finite Automata (DFA)
Fall 2006Costas Busch - RPI1 Non-regular languages (Pumping Lemma)
3.2 Pumping Lemma for Regular Languages Given a language L, how do we know whether it is regular or not? If we can construct an FA to accept the language.
FORMAL LANGUAGES, AUTOMATA, AND COMPUTABILITY
CSCI 2670 Introduction to Theory of Computing September 13, 2005.
CS21 Decidability and Tractability
Nonregular languages Sipser 1.4 (pages 77-82). CS 311 Mount Holyoke College 2 Nonregular languages? We now know: –Regular languages may be specified either.
Nonregular languages Sipser 1.4 (pages 77-82). CS 311 Fall Nonregular languages? We now know: –Regular languages may be specified either by regular.
1 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY (For next time: Read Chapter 1.3 of the book)
Courtesy Costas Busch - RPI1 More Applications of the Pumping Lemma.
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.
Costas Busch - RPI1 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
CS5371 Theory of Computation Lecture 5: Automata Theory III (Non-regular Language, Pumping Lemma, Regular Expression)
Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Fall 2008.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 More Applications of the Pumping Lemma. 2 The Pumping Lemma: Given a infinite regular language there exists an integer for any string with length we.
Courtesy Costas Busch - RPI1 Non-regular languages.
Fall 2004COMP 3351 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Fall 2006Costas Busch - RPI1 More Applications of the Pumping Lemma.
CS5371 Theory of Computation Lecture 4: Automata Theory II (DFA = NFA, Regular Language)
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.
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 Regular Languages Finite Automata eg. Supermarket automatic door: exit or entrance.
Prof. Busch - LSU1 Non-regular languages (Pumping Lemma)
Prof. Busch - LSU1 More Applications of the Pumping Lemma.
1 Non-regular languages. 2 Regular languages Non-regular languages.
Today Chapter 1: RE = Regular Languages, nonregular languages RL pumping lemma Chapter 2: Context-Free Languages (CFLs)
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Great Theoretical Ideas in Computer Science.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2012.
1 Unit 1: Automata Theory and Formal Languages Readings 1, 2.2, 2.3.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Closure.
Introduction to CS Theory
Cs3102: Theory of Computation Class 6: Pushdown Automata Spring 2010 University of Virginia David Evans TexPoint fonts used in EMF. Read the TexPoint manual.
CS 3240 – Chapter 4.  Closure Properties  Algorithms for Elementary Questions:  Is a given word, w, in L?  Is L empty, finite or infinite?  Are L.
Deterministic Finite Automata (DFA) - 1 q0q0q0q0 q1q1q1q strings that do not end with "1". Build an automaton to identify strings that end with.
Properties of Regular Languages
Chapter 6 Properties of Regular Languages. 2 Regular Sets and Languages  Claim(1). The family of languages accepted by FSAs consists of precisely the.
Conversions & Pumping Lemma CPSC 388 Fall 2001 Ellen Walker Hiram College.
CS 203: Introduction to Formal Languages and Automata
Exercise 1 Consider a language with the following tokens and token classes: ID ::= letter (letter|digit)* LT ::= " " shiftL ::= " >" dot ::= "." LP ::=
CS 208: Computing Theory Assoc. Prof. Dr. Brahim Hnich Faculty of Computer Sciences Izmir University of Economics.
Computability Regular expressions. Languages defined by regular expresses = Regular languages (languages recognized by FSM). Applications. Pumping lemma.
CSCI 3130: Formal languages and automata theory Tutorial 3 Chin.
Exercise Solution for Exercise (a) {1,2} {3,4} a b {6} a {5,6,1} {6,2} {4} {3} {5,6} { } b a b a a b b a a b a,b b b a.
Recap: Transformation NFA  DFA  s s1s1... snsn p1p1 p2p2... pmpm >...  p1p1  p2p2  pipi s e s1s1 e s2s2 e sisi >
Nondeterministic Finite Automata (NFAs). Reminder: Deterministic Finite Automata (DFA) q For every state q in Q and every character  in , one and only.
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.
Conversions Regular Expression to FA FA to Regular Expression.
 2004 SDU Lecture4 Regular Expressions.  2004 SDU 2 Regular expressions A third way to view regular languages. Say that R is a regular expression if.
Regular Languages Chapter 1 Giorgi Japaridze Theory of Computability.
1 Advanced Theory of Computation Finite Automata with output Pumping Lemma Theorem.
Complexity and Computability Theory I
Non-regular languages
Standard Representations of Regular Languages
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
PROPERTIES OF REGULAR LANGUAGES
Intro to Theory of Computation
Infiniteness Test The Pumping Lemma Nonregular Languages
Regular Expression We shall build expressions from the symbols using simple operations include concatenation, union and kleen closure. Several intuitive.
Elementary Questions about Regular Languages
Non-regular languages
FORMAL LANGUAGES, AUTOMATA, AND COMPUTABILITY
Recap lecture 19 NFA corresponding to Closure of FA, Examples, Memory required to recognize a language, Example, Distinguishing one string from another,
CHAPTER 1 Regular Languages
THEORY OF COMPUTATION 06 NUMBER OF STATES.
Presentation transcript:

Solution Exercise 1.43 a A r r s q q > b b e b s’ q r q’ b r’ a A’ Input: Automaton A accepting L Output: Automaton AD accepting DROP-OUT(L) Process: 1) Let A’ be a duplicate of A 2) Let q1, …, qn be the states in A, then rename the states in A’ as q1’, …, qn’ 3) For every transition: ((qk,),qc) in A Construct a new transition ((qk,e),qc’ ) 4) The automation AD is formed by A and A’, plus the transitions in (3), with the starting state of AD being the starting state of A a A r r s q q > b b e b s’ q r q’ b r’ a A’ and removing from the list of favorables all states in A

Solution Exercise 1.60 a q q3 … qk+1 q1 q q2 > a a,b a,b a,b b k-1 states

Nonregular Languages L = {akbk : k N} Lets show that is regular: find a regular expression for L, or automaton that accepts L How can we proof that L is nonregular?

Pumping Lemma (Theorem 1.70) Lemma. Let L be a regular language. There exists an integer p > 0 such that for any string w  L with |w|  p, then there exist strings x, y, and z such that: w = xyz y  e |xy|  p xyiz L for i = 0, 1, 2, … y has at least 1 letter The substring xy contains at most the first p letters of w (and z contains the rest of letters) Pumping part: xz, xy2z, xy10z and any other string of the form xyiz must be in L

Sketch of Proof (1) Lets analyze how words are accepted by finite automata. Lets take a generic word: w = 1 2 … m If w is accepted by a DFA D. What does it mean: s1 1 s2 2 … m sm Where each si are states in D D: >

Sketch of Proof (2) s1 1 s2 2 … m sm Where each si are states in D > Let p = # of states in D. If m > p, what does this means for these s1, s2, …, sm? s1 1 si … m sm D: sj same > x y z Thus, w can be split into 3 parts x, y and z

Exercises Lets proof that L = {akbk : k N} is nonregular using the pumping lemma Given a word w, wR denotes the reverse of the word. Lets proof that Palindromes = {w  * : w = wR} is nonregular using the pumping lemma ( = {a,b}) Note: In Example 1.73 of the book (read it!) only case Number 1is necessary to analyze. The other two cases cannot happen because |xy|  p (the text below the cases states it so too but at least one of the selected answers to exercises again analyze more cases than it is necessarily -e.g., Exercise 1.29 (a) -)

Homework (Optional: Wednesday!) Exercise 1.29 (a), (b) Problem 1.46 (b) Problem 1.53 (Hint: you can pick any numbers x, y and z as long as: x = y+z, and Viewed as an string, x = y+z has at least p characters So what you are trying to do is to take some numbers x, y and z so when you “pump” the summation longer adds up)