September1999 CMSC 203 / 0201 Fall 2002 Week #15 – 2/4/6 December 2002 Prof. Marie desJardins.

Slides:



Advertisements
Similar presentations
Formal Languages: main findings so far A problem can be formalised as a formal language A formal language can be defined in various ways, e.g.: the language.
Advertisements

YES-NO machines Finite State Automata as language recognizers.
Chapter Section Section Summary Set of Strings Finite-State Automata Language Recognition by Finite-State Machines Designing Finite-State.
CS21 Decidability and Tractability
Regular operations Sipser 1.2 (pages 47-63). First… a sample proof
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata are like Turing Machines with a restriction: The working space of the tape is the space of the.
Finite Automata Finite-state machine with no output. FA consists of States, Transitions between states FA is a 5-tuple Example! A string x is recognized.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
Turing Machines.

CS 490: Automata and Language Theory Daniel Firpo Spring 2003.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
Finite State Machines Data Structures and Algorithms for Information Processing 1.
Fall 2006Costas Busch - RPI1 The Chomsky Hierarchy.
Turing Machines CS 105: Introduction to Computer Science.
Grammars, Languages and Finite-state automata Languages are described by grammars We need an algorithm that takes as input grammar sentence And gives a.
Finite State Machines Data Structures and Algorithms for Information Processing 1.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
Turing Machines A more powerful computation model than a PDA ?
Finite-State Machines with No Output Longin Jan Latecki Temple University Based on Slides by Elsa L Gunter, NJIT, and by Costas Busch Costas Busch.
Finite-State Machines with No Output
Week #7 – 7/9/11 October 2002 Prof. Marie desJardins
CSE202: Introduction to Formal Languages and Automata Theory Chapter 9 The Turing Machine These class notes are based on material from our textbook, An.
CSCI 2670 Introduction to Theory of Computing September 28, 2005.
Theory of Languages and Automata
1 INFO 2950 Prof. Carla Gomes Module Modeling Computation: Language Recognition Rosen, Chapter 12.4.
1 Computability Five lectures. Slides available from my web page There is some formality, but it is gentle,
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Turing Machines Chapter 17. Languages and Machines SD D Context-Free Languages Regular Languages reg exps FSMs cfgs PDAs unrestricted grammars Turing.
Copyright © Curt Hill Finite State Automata Again This Time No Output.
Complexity and Computability Theory I Lecture #11 Instructor: Rina Zviel-Girshin Lea Epstein.
CMSC 330: Organization of Programming Languages Theory of Regular Expressions Finite Automata.
Turing Machine Finite state automaton –Limitation: finite amount of memory –Prevents recognizing languages that are not regular {0 n 1 n |n = 0,1,2,…}
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata (LBAs) are the same as Turing Machines with one difference: The input string tape space is the.
Chapter 3 Regular Expressions, Nondeterminism, and Kleene’s Theorem Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction.
September1999 CMSC 203 / 0201 Fall 2002 Week #14 – 25/27 November 2002 Prof. Marie desJardins clip art courtesy of
Modeling Computation: Finite State Machines without Output
UNIT - I Formal Language and Regular Expressions: Languages Definition regular expressions Regular sets identity rules. Finite Automata: DFA NFA NFA with.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
1 Language Recognition (11.4) Longin Jan Latecki Temple University Based on slides by Costas Busch from the courseCostas Busch
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.
Conversions Regular Expression to FA FA to Regular Expression.
1 Unit – 5 : STATE MACHINES Syllabus: Languages and Grammars – Finite State Machines State machines and languages – Turing Machines – Computational Complexity.
Theory of Languages and Automata By: Mojtaba Khezrian.
Turing Machines CS 130 Theory of Computation HMU Textbook: Chap 8.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Theory of Languages and Automata By: Mojtaba Khezrian.
Language Recognition MSU CSE 260.
Non Deterministic Automata
Linear Bounded Automata LBAs
Natural Language Processing - Formal Language -
CSE 105 theory of computation
Language Recognition (12.4)
CSE322 The Chomsky Hierarchy
Non-Deterministic Finite Automata
Non Deterministic Automata
Language Recognition (12.4)
Decidability and Tractability
CSE 105 theory of computation
Chapter 1 Regular Language
Finite-State Machines with No Output
Hopcroft, Motawi, Ullman, Chap 8
The Chomsky Hierarchy Costas Busch - LSU.
Non Deterministic Automata
CSE 105 theory of computation
Presentation transcript:

September1999 CMSC 203 / 0201 Fall 2002 Week #15 – 2/4/6 December 2002 Prof. Marie desJardins

September1999 MON 12/2 FSMs WITH NO OUTPUT (10.3)

September1999 October 1999 Concepts/Vocabulary  Language concatenation  Kleene closure A*: concatenation of 0 or more strings from A  Finite-state automaton (FSA) M=(S,I,f,s 0,F): states S, input alphabet I, transition function f: S  I  S, initial state s 0, final states F  “Recognize” a string (series of inputs) that results in a series of transitions starting at s 0 and ending in any s  F  Nondeterministic FSA M=(S,I,f,s 0,F): transition function f: S  I  P(S) [power set of S]  “Recognizes” a string that can result in some series of transitions starting at s 0 and ending in any s  F  For any language recognized by a nondeterministic FSA, there is a deterministic FSA that recognizes the same language

September1999 October 1999 Examples  Exercise : Describe the elements of the set A* for the followingvalues of A:  (a) {10}  (c) {0, 01}  (d) {1, 101}  Exercise : Find the language recognized by the given deterministic FSA: Start s0s0 s1s1 s2s ,1

September1999 October 1999 Examples II  Exercise : Find the language recognized by the given nondeterministic FSA: Start s0s0 s1s1 s2s , s3s3

September1999 October 1999 Examples III  Exercise /28: Find a deterministic FSA that recognizes each of the following sets, and a nondeterministic FSA that recognizes the set, and has fewer states than the dFSA (if possible)  (a) {0}  (b) {1, 00}  (c) {1 n | n=2, 3, 4, …}

September1999 WED 12/4 LANGUAGE RECOGNITION (10.4)

September1999 October 1999 Concepts/Vocabulary  Regular expressions: , = { }, x  I = {x}, (AB) [concatenation], (A  B) [union], and A* [Kleene closure]  Regular set: Any set that can be represented by a regular expression  Can be recognized using (deterministic) finite-state automata (Kleene’s Theorem)  “if” part proved by “constructive induction”  “only if” part left as **exercise 20  Regular set = regular (type 3) grammar!  (More powerful automata: Pushdown automaton, linear bounded automata)

September1999 October 1999 Examples  Exercise : Express each of the following sets using a regular expression:  (a) the set of strings of one or more 0s followed by a 1  (c) the set of strings with either no 1 preceding a 0 or no 0 preceding a 1  (d) the set of strings containing a string of 1s so that the number of 1s equals 2 modulo 3, followed by an even number of 0s  Construct a FSA for (d) above

September1999 October 1999 Examples II  Exercise : Construct a nondeterministic FSA that recognizes the language generated by the regular grammar G=(V,T,S,P) where V={0,1,S,A,B}, T={0,1}, S is the start symbol, and the set of productions is:  (b) S  1A, S  0, S , A  0B, B  1B, B  1

September1999 FRI 12/6 TURING MACHINES (10.5)

September1999 October 1999 Concepts/Vocabulary  Turing machine: general model of computation  Inventor Alan Turing  T=(S,I,f,s 0 ): states S, alphabet I that includes blank symbol B, partial function f: S  I  S  I  {R,L}, and start state s 0  S  Control unit has states S; read/write tape is infinite in both directions; single read/write head takes input from the tape, writes to the tape, and moves left or right  Specify as 5-tuples (s, x, s’, x’, d): in state s, if you read x, transition to state s’, output x’, and then move one step in direction d

September1999 October 1999 Concepts/Vocabulary II  Halting and language recognition  T halts if f is undefined (i.e., no 5-tuple) for (s, x)  A final state is a state that no 5-tuple begins with (i.e., no transitions are defined from the state)  A string is recognized if T halts in a final state  A string is not recognized if T doesn’t halt, or halts in a state that isn’t final  Any problem that can be solved, or algorithm that can be written, with a digital computer, can also be solved with a Turing machine, despite its simplicity!  Church-Turing thesis: Any problem that can be solved with an effective algorithm can be solved with a Turing machine

September1999 October 1999 Examples  Example : Find a Turing machine that recognizes the set of bit strings that have a 1 as their second bit (that is, the regular set (0  1)1(0  1)*).  Example : FInd a Turing machine that recognizes the set {0 n 1 n | n  1}