1 Lecture 13 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA.

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

Introduction to Computability Theory
Lecture 6 Nondeterministic Finite Automata (NFA)
1 Module 20 NFA’s with -transitions –NFA- ’s Formal definition Simplifies construction –LNFA- –Showing LNFA  is a subset of LNFA (extra credit) and therefore.
Turing Machines (At last!). Designing Universal Computational Devices Was Not The Only Contribution from Alan Turing… Enter the year 1940: The world is.
Finite Automata Section 1.1 CSC 4170 Theory of Computation.
Turing Machines New capabilities: –infinite tape –can read OR write to tape –read/write head can move left and right q0q0 input tape.
1 Lecture 4: Formal Definition of Solvability Analysis of decision problems –Two types of inputs:yes inputs and no inputs –Language recognition problem.
1 Module 15 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA –Comparing LFSA to set of solvable languages (REC)
1 Module 19 LNFA subset of LFSA –Theorem 4.1 on page 131 of Martin textbook –Compare with set closure proofs Main idea –A state in FSA represents a set.
Why the algorithm works! Converting an NFA into an FSA.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
1 Lecture 16 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA –Comparing LFSA to set of solvable languages (REC)
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Module 18 NFA’s –nondeterministic transition functions computations are trees, not paths –L(M) and LNFA LFSA subset of LNFA –Comparing computational.
Turing Machines.
Lecture 18 NFA’s with -transitions –NFA- ’s Formal definition Simplifies construction –LNFA- –Showing LNFA  is a subset of LNFA and therefore a subset.
1 Lecture 12 Computations –Formal Definition –Important Terms Computational Models –Formal Definition –Sequential access memory (tape) –Graphical representation.
1 Lecture 16 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA –Comparing LFSA to set of solvable languages (REC)
1 Lecture 13 Turing machine model of computation –Sequential access memory (tape) –Limited data types and instructions –Graphical representation –Formal.
1 Lecture 15 Distinguishability –Definition –Help in designing/debugging FSA’s NFA’s –nondeterministic transition functions computations are trees, not.
1 Lecture 16 NFA’s –nondeterministic transition functions computations are trees, not paths –L(M) and LNFA LFSA subset of LNFA –Comparing computational.
1 Lecture 13 Turing machine model of computation –Sequential access memory (tape) –Limited data types and instructions –Formal Definition –Equivalence.
1 Lecture 20 LNFA subset of LFSA –Theorem 4.1 on page 105 of Martin textbook –Compare with set closure proofs Main idea –A state in FSA represents a set.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Module 4: Formal Definition of Solvability Analysis of decision problems –Two types of inputs:yes inputs and no inputs –Language recognition problem.
Converting an NFA into an FSA Proving LNFA is a subset of LFSA.
CSC 361Finite Automata1. CSC 361Finite Automata2 Formal Specification of Languages Generators Grammars Context-free Regular Regular Expressions Recognizers.
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Regular Expressions/Languages Regular languages –Inductive definitions –Regular expressions syntax semantics Not covered in lecture.
1 Non-Deterministic Finite Automata. 2 Alphabet = Nondeterministic Finite Automaton (NFA)
Regular Languages A language is regular over  if it can be built from ;, {  }, and { a } for every a 2 , using operators union ( [ ), concatenation.
Turing Machines A more powerful computation model than a PDA ?
Finite-State Machines with No Output
CS490 Presentation: Automata & Language Theory Thong Lam Ran Shi.
Lecture 2UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 2.
Theory of Computation - Lecture 3 Regular Languages What is a computer? Complicated, we need idealized computer for managing mathematical theories... Hence:
Turing Machines – Decidability Lecture 25 Section 3.1 Fri, Oct 19, 2007.
Lecture Pushdown Automata. stack stack head finite control tape head tape.
Turing Machines Chapter 17. Languages and Machines SD D Context-Free Languages Regular Languages reg exps FSMs cfgs PDAs unrestricted grammars Turing.
1 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA –Comparing LFSA to set of solvable languages (REC)
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
Natural Language Processing Lecture 4 : Regular Expressions and Automata.
TM Design Macro Language D and SD MA/CSSE 474 Theory of Computation.
1 Turing machines Chapter 4, Smith and Kimber. A Turing machine is an abstraction of a human “computer”. Consists of - control, in the form of states -
BİL711 Natural Language Processing1 Regular Expressions & FSAs Any regular expression can be realized as a finite state automaton (FSA) There are two kinds.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
1 Module 12 Computation and Configurations –Formal Definition –Examples.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
February 1, 2016CS21 Lecture 121 CS21 Decidability and Tractability Lecture 12 February 1, 2016.
Lecture2 Regular Language
Busch Complexity Lectures: Turing Machines
CS21 Decidability and Tractability
Turing Machines Chapter 17.
CSC312 Automata Theory Chapter # 5 by Cohen Finite Automata
Deterministic Finite Automata
Turing Machines 2nd 2017 Lecture 9.
COSC 3340: Introduction to Theory of Computation
Deterministic Finite Automata
CSE322 Finite Automata Lecture #2.
Chapter 3: The CHURCH-Turing thesis
CSE322 Definition and description of finite Automata
MA/CSSE 474 Theory of Computation
MA/CSSE 474 Theory of Computation
CSC312 Automata Theory Chapter # 5 by Cohen Finite Automata
Nondeterministic Finite State Automata (Dr. Torng)
Presentation transcript:

1 Lecture 13 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA

2 Quick Review What is a configuration? What is a computation?

3 Finite State Automata New Computational Model

4 Finite State Automata (FSA) 1 2 a,b 1 2 a;a;R b;b;R a;a;R b;b;R Written character is identical to read character Tape head moves right one cell Model can be simplified by removing these elements

5 Formal Definition FSA M=(Q, ,q 0,A,  ) –Q = set of states = {1,2} –  = character set = {a,b} –q 0 = initial state = 1 –A = set of accepting (final) states = {1} –  = state transition function Comments: –Read only –Tape head moves right 1 2 a,b

6 Exercise FSA M = (Q, , q 0, A,  ) –Q = {1, 2, 3} –  = {a, b} –q 0 = 1 –A = {2,3} –  : {  (1,a) = 1,  (1,b) = 2,  (2,a)= 2,  (2,b) = 3,  (3,a) = 3,  (3,b) = 1} Draw this FSA as a transition diagram

7 Transition Diagram a a a b b b

8 Computing with FSA’s

9 Computation Example (1, aabbaa) (1,abbaa) (1,bbaa) (2,baa) (3,aa) (3,a) (3  a a a b b b Input: aabbaa

10 Computation of FSA’s in detail A computation of an FSA M on an input x is a complete sequence of configurations We need to define –Initial configuration of the computation –How to determine the next configuration given the current configuration –Halting or final configurations of the computation

11 Given an FSA M and an input string x, what is the initial configuration of the computation of M on x? –(q 0,x) –Examples x = aabbaa (1, aabbaa) x = abab (1, abab) x = (1, ) Initial Configuration a a a b b b FSA M

12 (1, aabbaa) |- M (1, abbaa) –config 1 “yields” config 2 in one step using FSA M (1,aabbaa) |- M (2, baa) –config 1 “yields” config 2 in 3 steps using FSA M (1, aabbaa) |- M (2, baa) –config 1 “yields” config 2 in 0 or more steps using FSA M Comment: –|- M determined by transition function  –There must always be one and only one next configuration If not, M is not an FSA Definition of |- M a a a b b b 3 FSA M *

13 Halting configuration –(q, ) –Examples (1, ) (3, ) Accepting Configuration –State in halting configuration is in A Rejecting Configuration –State in halting configuration is not in A Halting Configurations a a a b b b FSA M

14 Two possibilities for M running on x –M accepts x M accepts x iff the computation of M on x ends up in an accepting configuration (q 0, x) |- M (q, ) where q is in A –M rejects x M rejects x iff the computation of M on x ends up in a rejecting configuration (q 0, x) |- M (q, ) where q is not in A –M does not loop or crash on x There is always one and only one next configuration. Tape head always moves right one cell until EOF FSA M on x b b b a a a FSA M * *

15 –For the following input strings, does M accept or reject? aa aabba aab babbb Examples b b b a a a FSA M

16 Notation from the book  (q, c) = p  k (q, x) = p  * (q, cx) = p –q, p e Q –k is any integer r 1 –c e  –x e  * or  k Examples –  (1, a) = 1 –  (1, b) = 2 –  4 (1, abbb) = 1 –  * (1, abbb) = 1 –   (2, baaaaa) = 1 Definition of  * (q, x) a a a b b b FSA M

17 L(M) –The set of strings M accepts –We say that M accepts/decides/recognizes L(M) No looping/crashing means accept/decide are equivalent –What is L(M) for the FSA M above? LFSA –L is in LFSA iff there exists an FSA M such that L(M) = L. Main goal for this unit –Understand language class LFSA L(M) and LFSA b b b a a a FSA M