Theory of Computing CSCI 356/541 Lab Session. Outline Lab 1: Finite Automata  Construct and Run Construct and Run  Manipulating Transitions Manipulating.

Slides:



Advertisements
Similar presentations
Properties of Regular Sets
Advertisements

CSE 311 Foundations of Computing I
4b Lexical analysis Finite Automata
Regular Expressions and DFAs COP 3402 (Summer 2014)
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.
1 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY (For next time: Read Chapter 1.3 of the book)
CS 310 – Fall 2006 Pacific University CS310 Converting NFA to DFA Sections:1.2 Page 54 September 15, 2006.
1 Introduction to Computability Theory Lecture2: Non Deterministic Finite Automata (cont.) Prof. Amos Israeli.
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.
CS5371 Theory of Computation Lecture 6: Automata Theory IV (Regular Expression = NFA = DFA)
1 Non-Deterministic Automata Regular Expressions.
1.Defs. a)Finite Automaton: A Finite Automaton ( FA ) has finite set of ‘states’ ( Q={q 0, q 1, q 2, ….. ) and its ‘control’ moves from state to state.
Lecture 5UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 5.
Fall 2004COMP 3351 Another NFA Example. Fall 2004COMP 3352 Language accepted (redundant state)
Lecture 4UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 4.
Dept. of Computer Science & IT, FUUAST Automata Theory 2 Automata Theory II B Q.For  = {a, b} construct DFA that accepts all strings with exactly one.
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
Regular Expressions (RE) Empty set Φ A RE denotes the empty set Empty string λ A RE denotes the set {λ} Symbol a A RE denotes the set {a} Alternation M.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2012.
THEORY OF COMPUTATION 08 KLEENE’S THEOREM.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
4b 4b Lexical analysis Finite Automata. Finite Automata (FA) FA also called Finite State Machine (FSM) –Abstract model of a computing entity. –Decides.
Jianguo Lu : regular expression and automata.
CSCI 2670 Introduction to Theory of Computing August 26, 2004.
CSCI 2670 Introduction to Theory of Computing August 25, 2005.
CSCI 2670 Introduction to Theory of Computing September 1, 2005.
Finite Automata.
CSCI 2670 Introduction to Theory of Computing October 12, 2005.
CSC312 Automata Theory Nonregular Languages Chapter # 10 by Cohen
CSCI 3130: Formal languages and automata theory Tutorial 3 Chin.
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
using Deterministic Finite Automata & Nondeterministic Finite Automata
Algorithms for hard problems Automata and tree automata Juris Viksna, 2015.
Jianguo Lu : Lab 3 Jan 30, Winter 2004.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
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.
1 Introduction to the Theory of Computation Regular Expressions.
CSCI 2670 Introduction to Theory of Computing September 7, 2004.
CSCI 2670 Introduction to Theory of Computing September 11, 2007.
Deterministic Finite Automata Nondeterministic Finite Automata.
1/29/02CSE460 - MSU1 Nondeterminism-NFA Section 4.1 of Martin Textbook CSE460 – Computability & Formal Language Theory Comp. Science & Engineering Michigan.
Language Recognition MSU CSE 260.
Formal Language & Automata Theory
Standard Representations of Regular Languages
Lexical analysis Finite Automata
CSCE 355 Foundations of Computation
CSE 105 theory of computation
Examples for Finite Automata
Chapter 2 FINITE AUTOMATA.
More on DFA minimization and DFA equivalence
Non-Deterministic Finite Automata
4. Properties of Regular Languages
CS 350 — Fall 2018 gilray.org/classes/fall2018/cs350/
4b Lexical analysis Finite Automata
CSCI 2670 Introduction to Theory of Computing
Chapter 1 Regular Language - 02
4b Lexical analysis Finite Automata
CSE 105 theory of computation
Chapter 1 Regular Language
CSC312 Automata Theory Kleene’s Theorem Lecture # 12
Teori Bahasa dan Automata Lecture 6: Regular Expression
CSC312 Automata Theory Lecture # 24 Chapter # 11 by Cohen Decidability.
Finite Automata Fall 2018.
CSCI 2670 Introduction to Theory of Computing
COSC 3340: Introduction to Theory of Computation
COSC 3340: Introduction to Theory of Computation
Finite Automata Part Three
COSC 3340: Introduction to Theory of Computation
CSE 105 theory of computation
Presentation transcript:

Theory of Computing CSCI 356/541 Lab Session

Outline Lab 1: Finite Automata  Construct and Run Construct and Run  Manipulating Transitions Manipulating Transitions  Convert to DFA Convert to DFA  Minimize DFA Minimize DFA  Convert FA to RE Convert FA to RE  Combine Automata Combine Automata Regular Expressions Regular Pumping Lemma

Exercise 1. Build a FA that recognize strings over {a,b} such that there are an odd number of b’s and even numbers of a’s. Check your answer using JFLAP. 2.Convert (a+b)*cd to an FA 3.Construct a NFA for the expression (ab+c*)(abb)* following part 1 of Kleene’s theorem, Convert it to DFA. Is it minimal? If not then find the Min DFA. 4.Check whether (a*+b*)(c+d)* and (a+b)*(c*+d*) are equivalent or not. 5.By playing the game, based on pumping lemma, determine which one of the following language is regular: a. L={a n b n ;n>=0} (first one) b. L={(ab) 2n ;n=1,2,…} (last one) Explain your answer with parameters used.

Exercise are due on next Monday, 10 th October (17 th October). Try to finish today!!!