1 Module 8 Closure Properties –Definition –Language class definition set of languages –Closure properties and first-order logic statements For all, there.

Slides:



Advertisements
Similar presentations
Properties of Regular Sets
Advertisements

Introduction to Proofs
Chapter 3 Elementary Number Theory and Methods of Proof.
The Logic of Quantified Statements
Chapter Three: Closure Properties for Regular Languages
Properties of Regular Languages
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
1 Lecture 32 Closure Properties for CFL’s –Kleene Closure construction examples proof of correctness –Others covered less thoroughly in lecture union,
More Set Definitions and Proofs 1.6, 1.7. Ordered n-tuple The ordered n-tuple (a1,a2,…an) is the ordered collection that has a1 as its first element,
Prof. Johnnie Baker Module Basic Structures: Sets
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
RMIT University; Taylor's College This is a story about four people named Everybody, Somebody, Anybody and Nobody. There was an important job to be done.
1 Languages. 2 A language is a set of strings String: A sequence of letters Examples: “cat”, “dog”, “house”, … Defined over an alphabet: Languages.
Finite Automata Section 1.1 CSC 4170 Theory of Computation.
Lecture 3UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 3.
Lecture 9 Recursive and r.e. language classes
1 Module 9 Recursive and r.e. language classes –representing solvable and half-solvable problems Proofs of closure properties –for the set of recursive.
Lecture 8 Recursively enumerable (r.e.) languages
1 More Properties of Regular Languages. 2 We have proven Regular languages are closed under: Union Concatenation Star operation Reverse.
Sets Definition of a Set: NAME = {list of elements or description of elements} i.e. B = {1,2,3} or C = {x  Z + | -4 < x < 4} Axiom of Extension: A set.
1 Lecture 3 Topics –Languages –Language classes –Closure properties.
1 Module 37 Showing CFL’s not closed under set intersection and set complement.
1 Languages and Finite Automata or how to talk to machines...
1 Lecture 5 Topics –Closure Properties for REC Proofs –2 examples Applications.
1 Indirect Argument: Contradiction and Contraposition.
1 Module 31 Closure Properties for CFL’s –Kleene Closure construction examples proof of correctness –Others covered less thoroughly in lecture union, concatenation.
Courtesy Costas Busch - RPI1 Non-regular languages.
Costas Busch - RPI1 Mathematical Preliminaries. Costas Busch - RPI2 Mathematical Preliminaries Sets Functions Relations Graphs Proof Techniques.
Courtesy Costas Busch - RPI1 Mathematical Preliminaries.
1 Relational Algebra and Calculus Yanlei Diao UMass Amherst Feb 1, 2007 Slides Courtesy of R. Ramakrishnan and J. Gehrke.
1 Module 10 Recursive and r.e. language classes –representing solvable and half-solvable problems Proofs of closure properties –for the set of recursive.
1 Regular Expressions/Languages Regular languages –Inductive definitions –Regular expressions syntax semantics Not covered in lecture.
1 A Single Final State for Finite Accepters. 2 Observation Any Finite Accepter (NFA or DFA) can be converted to an equivalent NFA with a single final.
1 Module 9 Closure Properties –Definition –Language class definition set of languages –Closure properties and first-order logic statements For all, there.
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
1 Chapter 1 Automata: the Methods & the Madness Angkor Wat, Cambodia.
Michaelmas Term 2004 Discrete Mathematics CSC 141 Discrete Mathematics Dr. Corina Sas and Ms. Nelly Bencomo
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 – 7.2 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean.
CSCI 2670 Introduction to Theory of Computing Instructor: Shelby Funk.
Mathematical Preliminaries. Sets Functions Relations Graphs Proof Techniques.
Chapter 7 Logic, Sets, and Counting Section 2 Sets.
1 Module 14 Regular languages –Inductive definitions –Regular expressions syntax semantics.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Strings and Languages CS 130: Theory of Computation HMU textbook, Chapter 1 (Sec 1.5)
CompSci 102 Discrete Math for Computer Science
Discrete Mathematical Structures 4 th Edition Kolman, Busby, Ross © 2000 by Prentice-Hall, Inc. ISBN
Mathematical Preliminaries
4.1 Proofs and Counterexamples. Even Odd Numbers Find a property that describes each of the following sets E={…, -4, -2, 0, 2, 4, 6, …} O={…, -3, -1,
COMP 170 L2 L08: Quantifiers. COMP 170 L2 Outline l Quantifiers: Motivation and Concepts l Quantifiers: Notations and Meaning l Saying things with Quantified.
Chapter 2 With Question/Answer Animations. Section 2.1.
Classifications LanguageGrammarAutomaton Regular, right- linear Right-linear, left-linear DFA, NFA Context-free PDA Context- sensitive LBA Recursively.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Strings and Languages Denning, Section 2.7. Alphabet An alphabet V is a finite nonempty set of symbols. Each symbol is a non- divisible or atomic object.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
BİL711 Natural Language Processing1 Regular Expressions & FSAs Any regular expression can be realized as a finite state automaton (FSA) There are two kinds.
5-5 Indirect Proof. Indirect Reasoning: all possibilities are considered and then all but one are proved false. The remaining possibility must be true.
1 Closure E.g., we understand number systems partly by understanding closure properties: Naturals are closed under +, , but not -, . Integers are closed.
The Relation Induced by a Partition
Languages.
Addition/ Subtraction
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Algebra 1 Section 1.1.
COSC 3340: Introduction to Theory of Computation
CSE322 CONSTRUCTION OF FINITE AUTOMATA EQUIVALENT TO REGULAR EXPRESSION Lecture #9.
Strings and Languages cs466(Prasad) L2Lang.
Closure Properties of Regular Languages
Real Numbers and their Properties
Chapter 7 Logic, Sets, and Counting
Terminology and Symbols
Presentation transcript:

1 Module 8 Closure Properties –Definition –Language class definition set of languages –Closure properties and first-order logic statements For all, there exists

2 Closure Properties A set is closed under an operation if applying the operation to elements of the set produces another element of the set Example/Counterexample –set of integers and addition –set of integers and division

3 Integers and Addition Integers 2 5 7

4 Integers and Division Integers 2 5.4

5 Language Classes –We will be interested in closure properties of language classes A language class is a set of languages Thus, the elements of a language class (set of languages) are languages which are sets themselves –Crucial Observation When we say that a language class is closed under some set operation, we apply the set operation to the languages (elements of the language classes) rather than the language classes themselves

6 Example Language Classes * In all these examples, we do not explicitly state what the underlying alphabet  is Finite languages –Languages with a finite number of strings CARD-3 –Languages with at most 3 strings

7 Finite Sets and Set Union * Finite Sets {0,1,00} {0,1,11} {0,1,00,11}

8 CARD-3 and Set Union CARD-3 {0,1,00} {0,1,11} {0,1,00,11} CARD-3: sets with at most 3 elements

9 Finite Sets and Set Complement Finite Sets {0,1,01} {/\,00,10,11,000,...}

10 Infinite Number of Facts A closure property often represents an infinite number of facts Example: The set of finite languages is closed under the set union operation –{} union {} is a finite language –{} union {0} is a finite language –... –{ } union {} is a finite language –...

11 First-order logic and closure properties * A way to formally write (not prove) a closure property –For all L 1,...,L k in LC, op (L 1,... L k ) in LC –Only one expression is needed because of the for all quantifier Number of languages k is determined by arity of the operation op

12 Example F-O logic statements * For all L 1,L 2 in FINITE, L 1 union L 2 in FINITE For all L 1,L 2 in CARD-3, L 1 union L 2 in CARD-3 For all L in FINITE, L c in FINITE For all L in CARD-3, L c in CARD-3

13 Stating a closure property is false What is true if a set is not closed under some k-ary operator? –There exist k elements of that set which, when combined together under the given operator, produce an element not in the set –There exists L 1,...,L k in LC, op (L 1, …, L k ) not in LC Example –Finite sets and set complement

14 Complementing a F-O logic statement Complement “For all L 1,L 2 in CARD-3, L 1 union L 2 in CARD-3” –not (For all L 1,L 2 in CARD-3, L 1 union L 2 in CARD-3) –There exists L 1,L 2 in CARD-3, not (L 1 union L 2 in CARD-3) –There exists L 1,L 2 in CARD-3, L 1 union L 2 not in CARD-3

15 Proving/Disproving * Which is easier and why? –Proving a closure property is true –Proving a closure property is false