CS322D Tutorials.

Slides:



Advertisements
Similar presentations
Lecture 6 Nondeterministic Finite Automata (NFA)
Advertisements

Lecture 8 From NFA to Regular Language. Induction on k= # of states other than initial and final states K=0 a a* b a c d c*a(d+bc*a)*
Examples for Finite Automata
NFAs Sipser 1.2 (pages 47–54). CS 311 Fall Recall… Last time we showed that the class of regular languages is closed under: –Complement –Union.
Intro to DFAs Readings: Sipser 1.1 (pages 31-44) With basic background from Sipser 0.
NFAs Sipser 1.2 (pages 47–54). CS 311 Mount Holyoke College 2 Recall… Last time we showed that the class of regular languages is closed under: –Complement.
Intro to DFAs Readings: Sipser 1.1 (pages 31-44) With basic background from Sipser 0.
Lecture 3UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 3.
CS5371 Theory of Computation
Courtesy Costas Busch - RPI1 Non Deterministic Automata.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automata And Regular Languages.
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.
Homework #2 Solutions.
1 Languages and Finite Automata or how to talk to machines...
CS 310 – Fall 2006 Pacific University CS310 Finite Automata Sections: September 1, 2006.
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.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
Finite Automata Costas Busch - RPI.
Fall 2004COMP 3351 Another NFA Example. Fall 2004COMP 3352 Language accepted (redundant state)
Costas Busch - LSU1 Non-Deterministic Finite Automata.
1 Homework #1 Solutions 2 #1. True or False a)Given a language (set of strings) L, the question: “Is string w  L” is a decision problem: T F b)  =
1 Non-Deterministic Finite Automata. 2 Alphabet = Nondeterministic Finite Automaton (NFA)
CSCI 3130: Formal languages and automata theory Tutorial 2 Chin.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automaton (DFA) Input Tape “Accept” or “Reject” String Finite Automaton Output.
4b 4b Lexical analysis Finite Automata. Finite Automata (FA) FA also called Finite State Machine (FSM) –Abstract model of a computing entity. –Decides.
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: 
TRANSITION DIAGRAM BASED LEXICAL ANALYZER and FINITE AUTOMATA Class date : 12 August, 2013 Prepared by : Karimgailiu R Panmei Roll no. : 11CS10020 GROUP.
Prof. Busch - LSU1 NFAs accept the Regular Languages.
Transition Diagrams Lecture 3 Wed, Jan 21, Building Transition Diagrams from Regular Expressions A regular expression consists of symbols a, b,
Finite Automata.
Decidable languages Section 4.1 CSC 4170 Theory of Computation.
Chapter 6 Properties of Regular Languages. 2 Regular Sets and Languages  Claim(1). The family of languages accepted by FSAs consists of precisely the.
Lecture 11UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 11.
Finite Automata Chapter 1. Automatic Door Example Top View.
Lecture Notes 
Transparency No. 2-1 Formal Language and Automata Theory Homework 2.
Page 1. 1)Let B n = { a k | where k is a multiple of n}. I.e. B 1 = { a k | where k is a multiple of 1} = { a k | k Є {0,1,2,3,…}} = {‘’, a, aa, aaa, aaaa,
Costas Busch - LSU1 Deterministic Finite Automata And Regular Languages.
Fall 2004COMP 3351 Finite Automata. Fall 2004COMP 3352 Finite Automaton Input String Output String Finite Automaton.
Nondeterminism The Chinese University of Hong Kong Fall 2011
CIS Automata and Formal Languages – Pei Wang
Lecture2 Regular Language
Non Deterministic Automata
CSE 105 theory of computation
Theory of Computation Lecture # 9-10.
Deterministic Finite Automata
Finite Automata & Regular Languages
COSC 3340: Introduction to Theory of Computation
Deterministic Finite Automata
Non-Determinism 12CS45 Finite Automata.
Regular Expressions Prof. Busch - LSU.
Deterministic Finite Automata And Regular Languages Prof. Busch - LSU.
Non-Deterministic Finite Automata
COSC 3340: Introduction to Theory of Computation
Non-Deterministic Finite Automata
CSE322 Definition and description of finite Automata
Non Deterministic Automata
Transition Diagrams Lecture 3 Fri, Jan 21, 2005.
CS322D Tutorials.
Finite Automata.
CSCI 2670 Introduction to Theory of Computing
Deterministic Finite Automaton (DFA)
Chapter 1 Regular Language
NFAs and Transition Graphs
CSE 105 theory of computation
Non Deterministic Automata
Finite Automata Fall 2018.
CSCI 2670 Introduction to Theory of Computing
Nondeterminism The Chinese University of Hong Kong Fall 2010
CSE 105 theory of computation
Presentation transcript:

CS322D Tutorials

Q1.Consider the following FSA: Yes Will this machine accept the string 1010? Will it accept 01010? 1010110 ? Write two additional strings that this FSA will accept. Write two additional strings that this FSA will reject. No No 101 , 1010101 111111 , 0000000

Q2. Give state diagrams of NFAs for the following languages Q2. Give state diagrams of NFAs for the following languages. In all parts the alphabet is {0,1} a. The set of strings w that end with the substring 010 (use four states ) b. The set of strings w that contain the substring 010(use four states ) c. {w| w contains the substring 0101, i.e., w = x0101y for some x and y}(use five states )

a. The set of strings w that end with the substring 010 (use four states )

b. The set of strings w that contain the substring 010(use four states )

c. {w| w contains the substring 0101, i. e c. {w| w contains the substring 0101, i.e., w = x0101y for some x and y}(use five states )

Q3. Give state diagrams of DFAs for the following languages Q3.Give state diagrams of DFAs for the following languages. In all parts the alphabet is {0,1} a. {w | w begins and ends with the same symbol} b. {w | w begins with 1 and ends with 0 } c. {w| w contains the substring 0101, i.e., w = x0101y for some x and y} d. {w| w contains even number of 1`s} e. {w| w contains odd number of 0`s}

a.{w | w begins and ends with the same symbol}

b. {w | w begins with 1 and ends with 0 }

c. {w| w contains the substring 0101, i. e c. {w| w contains the substring 0101, i.e., w = x0101y for some x and y}

d. {w| w contains even number of 1`s}

e. {w| w contains odd number of 0`s}