2110711 THEORY OF COMPUTATION 06 NUMBER OF STATES.

Slides:



Advertisements
Similar presentations
Recognising Languages We will tackle the problem of defining languages by considering how we could recognise them. Problem: Is there a method of recognising.
Advertisements

Regular operations Sipser 1.1 (pages 44 – 47). CS 311 Fall Building languages If L is a language, then its complement is L’ = {w | w ∉ L} Let A.
Theory of Computing Lecture 23 MAS 714 Hartmut Klauck.
Lecture 9,10 Theory of AUTOMATA
Summary Showing regular Showing non-regular construct DFA, NFA
Finite Automata Section 1.1 CSC 4170 Theory of Computation.
Regular operations Sipser 1.1 (pages 44 – 47). CS 311 Mount Holyoke College 2 Building languages If L is a language, then its complement is L’ = {w |
Regular operations Sipser 1.2 (pages 47-63). First… a sample proof
Automata and Formal Languages Tim Sheard 1 Lecture 8 Pumping Lemma & Distinguishability Jim Hook Tim Sheard Portland State University.
CS5371 Theory of Computation
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Introduction to the Theory of Computation John Paxton Montana State University Summer 2003.
Regular Expression (EXTRA)
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Nondeterminism.
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.
1 Lecture 15 Distinguishability –Definition –Help in designing/debugging FSA’s NFA’s –nondeterministic transition functions computations are trees, not.
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.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
1 Module 24 Myhill-Nerode Theorem –distinguishability –equivalence classes of strings –designing FSA’s –proving a language L is not regular.
Lecture 23: Finite State Machines with no Outputs Acceptors & Recognizers.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
Introduction to CS Theory
Athasit Surarerks THEORY OF COMPUTATION 07 NON-DETERMINISTIC FINITE AUTOMATA 1.
Languages Given an alphabet , we can make a word or string by concatenating the letters of . Concatenation of “x” and “y” is “xy” Typical example: 
Solution Exercise 1.43 a A r r s q q > b b e b s’ q r q’ b r’ a A’
CS 203: Introduction to Formal Languages and Automata
Recognising Languages We will tackle the problem of defining languages by considering how we could recognise them. Problem: Is there a method of recognising.
MA/CSSE 474 Theory of Computation Minimizing DFSMs.
Computing Machinery Chapter 4: Finite State Machines.
Regular Languages Chapter 1 Giorgi Japaridze Theory of Computability.
1 Advanced Theory of Computation Finite Automata with output Pumping Lemma Theorem.
1/29/02CSE460 - MSU1 Nondeterminism-NFA Section 4.1 of Martin Textbook CSE460 – Computability & Formal Language Theory Comp. Science & Engineering Michigan.
Theory of Languages and Automata By: Mojtaba Khezrian.
Recap: Nondeterministic Finite Automaton (NFA) A deterministic finite automaton (NFA) is a 5-tuple (Q, , ,s,F) where: Q is a finite set of elements called.
Deterministic Finite-State Machine (or Deterministic Finite Automaton) A DFA is a 5-tuple, (S, Σ, T, s, A), consisting of: S: a finite set of states Σ:
Nonregular Languages Section 2.4 Wed, Oct 5, 2005.
Regular Expression (EXTRA)
A Universal Turing Machine
Pumping Lemma.
Non-regular languages
Standard Representations of Regular Languages
CSE 3813 Introduction to Formal Languages and Automata
Pushdown Automata.
Nonregular Languages Section 2.4 Wed, Oct 5, 2005.
Intro to Theory of Computation
CSC 4170 Theory of Computation Nondeterminism Section 1.2.
Hierarchy of languages
Non-Deterministic Finite Automata
Non-Deterministic Finite Automata
Non-regular languages
CS21 Decidability and Tractability
MA/CSSE 474 Theory of Computation Minimizing DFSMs.
Recap lecture 26 Example of nonregular language, pumping lemma version I, proof, examples,
Chapter 1 Regular Language - 02
CS21 Decidability and Tractability
Instructor: Aaron Roth
CSC 4170 Theory of Computation Nondeterminism Section 1.2.
Chapter 1 Regular Language
Recap lecture 18 NFA corresponding to union of FAs,example, NFA corresponding to concatenation of FAs,examples, NFA corresponding to closure of an FA,examples.
Minimize # states in a DFSM
Recap lecture 19 NFA corresponding to Closure of FA, Examples, Memory required to recognize a language, Example, Distinguishing one string from another,
Finite-State Machines with No Output
CSC 4170 Theory of Computation Finite Automata Section 1.1.
CSCI 2670 Introduction to Theory of Computing
Kleene’s Theorem (Part-3)
CHAPTER 1 Regular Languages
CSC312 Automata Theory Lecture # 24 Chapter # 11 by Cohen Decidability.
CSCI 2670 Introduction to Theory of Computing
Non Deterministic Automata
Presentation transcript:

2110711 THEORY OF COMPUTATION 06 NUMBER OF STATES

IMPORTANT The number of distinct states the finite state machine needs in order to recognize a language is related to the number of distinct strings that must be distinguished from each other.

EXAMPLE (0+1)*(000+111)(0+1)* q4 q5 q0 q1 q2 q3 11 011011 00011 1 1 1 0,1 1 1 q0 q1 q2 q3 011010 00110

DISTINGUISHABLE Definition Let L be a language in *. Two strings x and y in * are distinguishable with respect to L if there is a string z in * so that exactly one of the strings xz and yz is in L. The string z is said to distinguish x and y with respect to L.

DISTINGUISHABLE Definition Let L be a language in *. Two strings x and y in * are distinguishable with respect to L if L/x ≠ L/y where L/x = { z  * | xz  L } L/y = { z  * | yz  L }.

EXAMPLE Let  = { 0, 1 }. Let L be the language associated with (0+1)*10. Two strings x = 01101 and y = 010 in *. Since there is a string z = 0 in * such that xz = 011010 is in L but yz = 0100 is not in L, x and y are distinguishable with respect to L. We may say that x and y are indistinguishable with respect to L if there is no such string z. The strings 0 and 100 are indistinguishable with respect to L.

LEMMA Suppose that L  *, and M = (Q,,q0,A,). If x and y are two strings in * for which *(q0,x) = *(q0,y) then x and y are indistinguishable with respective to L. Note: *(q0,x)= qj means that there is a path from q0 to qj with respect to x, *(q0,x) = ((…((q0,x1),x2),…),xj) = qj where x = x1x2…xj.

THEOREM Suppose that L  *, and for some positive integer n, there are n strings in *, any two of which are distinguishable with respect to L. Then there can be no finite state machine recognizing L with fewer than n states.

THEOREM PALINDROME language over the alphabet {0,1} cannot be accepted by any finite automaton. Proof: Any two strings in {0,1}* are distinguishable with respect to PALINDROME language.

EXERCISE How many pair-wise distinguished strings are there with respect to the following languages: Language of all bit strings, not containing any double characters. Language of all bit strings, ending with at least 3 zeroes.