CSCE 355 Foundations of Computation

Slides:



Advertisements
Similar presentations
Language and Automata Theory
Advertisements

1 Lecture 32 Closure Properties for CFL’s –Kleene Closure construction examples proof of correctness –Others covered less thoroughly in lecture union,
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 3 School of Innovation, Design and Engineering Mälardalen University 2012.
Erik Jonsson School of Engineering and Computer Science CS 4384 – 001
1 Languages. 2 A language is a set of strings String: A sequence of letters Examples: “cat”, “dog”, “house”, … Defined over an alphabet: Languages.
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.
Finite Automata Great Theoretical Ideas In Computer Science Anupam Gupta Danny Sleator CS Fall 2010 Lecture 20Oct 28, 2010Carnegie Mellon University.
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.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automata And Regular Languages.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Regular.
1 Languages and Finite Automata or how to talk to machines...
Costas Busch - RPI1 Mathematical Preliminaries. Costas Busch - RPI2 Mathematical Preliminaries Sets Functions Relations Graphs Proof Techniques.
Courtesy Costas Busch - RPI1 Mathematical Preliminaries.
1 Regular Languages Finite Automata eg. Supermarket automatic door: exit or entrance.
Theoretical Computer Science COMP 335 Fall 2004
Topics Automata Theory Grammars and Languages Complexities
Introduction to Finite Automata Adapted from the slides of Stanford CS154.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
1 Regular Expressions/Languages Regular languages –Inductive definitions –Regular expressions syntax semantics Not covered in lecture.
Great Theoretical Ideas in Computer Science.
Regular Languages A language is regular over  if it can be built from ;, {  }, and { a } for every a 2 , using operators union ( [ ), concatenation.
Languages & Strings String Operations Language Definitions.
Theory of Computation, Feodor F. Dragan, Kent State University 1 Regular expressions: definition An algebraic equivalent to finite automata. We can build.
Introduction to CS Theory Lecture 3 – Regular Languages Piotr Faliszewski
Lecture # 3 Chapter #3: Lexical Analysis. Role of Lexical Analyzer It is the first phase of compiler Its main task is to read the input characters and.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 2 Mälardalen University 2006.
Mathematical Preliminaries. Sets Functions Relations Graphs Proof Techniques.
1 State SymbolRead- Q E(Q) a b a b a b Convert to a DFA: Start state: Final States:
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 3 Mälardalen University 2010.
Regular Expressions and Languages A regular expression is a notation to represent languages, i.e. a set of strings, where the set is either finite or contains.
CHAPTER 1 Regular Languages
Finite Automata – Definition and Examples Lecture 6 Section 1.1 Mon, Sep 3, 2007.
Deterministic Finite Automata CS 130: Theory of Computation HMU textbook, Chapter 2 (Sec 2.2)
Chapter 3 Regular Expressions, Nondeterminism, and Kleene’s Theorem Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction.
Lecture 1 Overview Topics 1. Proof techniques: induction, contradiction Proof techniques June 1, 2015 CSCE 355 Foundations of Computation.
Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1 Chapter 1 Regular Languages Some slides are in courtesy.
Classifications LanguageGrammarAutomaton Regular, right- linear Right-linear, left-linear DFA, NFA Context-free PDA Context- sensitive LBA Recursively.
UNIT - I Formal Language and Regular Expressions: Languages Definition regular expressions Regular sets identity rules. Finite Automata: DFA NFA NFA with.
Lecture 2 Overview Topics What I forgot from last lecture Proof techniques continued Alphabets, strings, languages Automata June 2, 2015 CSCE 355 Foundations.
Transparency No. 2-1 Formal Language and Automata Theory Homework 2.
Finite Automata Great Theoretical Ideas In Computer Science Victor Adamchik Danny Sleator CS Spring 2010 Lecture 20Mar 30, 2010Carnegie Mellon.
1 Language Recognition (11.4) Longin Jan Latecki Temple University Based on slides by Costas Busch from the courseCostas Busch
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
P Symbol Q E(Q) a b a b a b Convert to a DFA: Start state: Final States:
1/29/02CSE460 - MSU1 Nondeterminism-NFA Section 4.1 of Martin Textbook CSE460 – Computability & Formal Language Theory Comp. Science & Engineering Michigan.
Costas Busch - LSU1 Deterministic Finite Automata And Regular Languages.
Chapter 1 INTRODUCTION TO THE THEORY OF COMPUTATION.
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 Σ:
CSCE 355 Foundations of Computation
Introduction to the Theory of Computation
Languages.
Lecture2 Regular Language
Chapter 2 Finite Automata
Finite Automata & Regular Languages
CSCE 355 Foundations of Computation
Language Recognition (12.4)
REGULAR LANGUAGES AND REGULAR GRAMMARS
Deterministic Finite Automata And Regular Languages Prof. Busch - LSU.
4. Properties of Regular Languages
Introduction to Finite Automata
Closure Properties of Regular Languages
Lecture 6 NFA Subset Construction & Epsilon Transitions
Language Recognition (12.4)
Convert to a DFA: Start state: Final States: State Symbol Read- Q E(Q)
Convert to a DFA: Start state: Final States: P Symbol Q E(Q) a b.
Chapter 1 Regular Language
CSCI 2670 Introduction to Theory of Computing
Presentation transcript:

CSCE 355 Foundations of Computation Lecture 2 Overview Topics What I forgot from last lecture Proof techniques continued Alphabets, strings, languages Automata Aug 27, 2007

What I forgot from last lecture Slides skipped or not well covered: 3 – Course outcomes 8 – Examples of Relations 9 – POSETS 10 – Equivalence relations 15 – Equality of Sets 17 – If and only if 25 – Structural Induction Proof

http://infolab.stanford.edu/~ullman/ialc/slides/slides1.pdf

Recursive Def of Arithmetic Expressions Basis: a number or a variable is an expression. If E and F are expressions then a new expression G can be formed by applying one of the three rules G = E + F G = E * F G = ( E )

Graphs – Visual representation of relations (binary) a R b if and only if ab in the graph

The Pigeon Hole Principle Proof techniques Continued If you have n boxes and more than n balls to put in the boxes then you must be two balls (at least two) in the same box. Formally If A and B are sets with |A| > |B| then there is no 1-1 function from A to B.

Mutual Inductions Example 1.23 On-Off pushbutton automaton

Languages Alphabet – a finite set of symbols String – finite sequence of characters from an alphabet Empty string, length of string Language (over an alphabet)

Operations on Strings

Examples of Languages

Operations on Languages Suppose S and T are languages (sets of strings) Union, intersection, complement concatenation

Powers, Kleene Closure S1 = S Sn = S Sn-1 How would you prove Sn Sm = Sn+m ? What is S0? S*

Some Special Languages

Finite Automata - Informally

Finite Automata - formally A Deterministic Finite Automata (DFA) is a 5-tuple

Transition Diagrams; Transition Tables Conventions Notes Number of out-arcs Dead state

Path determined by a string

Language accepted by a DFA

Example L(M) for DFA M

Given L find DFA for it

Important application of Pigeon Hole Principle to DFAs

Regular Expressions

Homework What’s wrong with Ullman’s proof of “if a complete binary tree has n leaves then it has 2n-1 nodes.” (extra credit) Operations on Strings Given strings s = abc and t=12 What are st, s2, and s3? Is ε (empty string) in every language? Is ϕ a language? It is a sublanguage of every language? Operations on Languages. Given S = {a, b, ab} and T = {1, 22} What is ST? What is TS? What is T2? T3?

4. DFA recognizing the following languages {w in {a,b}* | each a is immediately preceded by a b} {w in {a,b}* | neither aa nor bb is a substring of w } 5. What language does the DFA below recognize

References– Mathematical Foundations http://infolab.stanford.edu/~ullman/ialc.html - The website for the textbook Extended “Proof” techniques http://www.maths.uwa.edu.au/~berwin/humour/invalid.proofs.html Fair Use Books Online http://fair-use.org/bertrand-russell/the-principles-of-mathematics/ Books Dr. Euler's Fabulous Formula: Cures Many Mathematical Ills