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

Slides:



Advertisements
Similar presentations
Introduction to Proofs
Advertisements

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
Discrete Structures & Algorithms Basics of Set Theory EECE 320 — UBC.
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.
1 Lecture 4: Formal Definition of Solvability Analysis of decision problems –Two types of inputs:yes inputs and no inputs –Language recognition problem.
Lecture 9 Recursive and r.e. language classes
1 Module 8 Closure Properties –Definition –Language class definition set of languages –Closure properties and first-order logic statements For all, there.
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.
Module 5 Topics Proof of the existence of unsolvable problems
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 16 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA –Comparing LFSA to set of solvable languages (REC)
1 Lecture 5 Topics –Closure Properties for REC Proofs –2 examples Applications.
1 Module 31 Closure Properties for CFL’s –Kleene Closure construction examples proof of correctness –Others covered less thoroughly in lecture union, concatenation.
Costas Busch - RPI1 Mathematical Preliminaries. Costas Busch - RPI2 Mathematical Preliminaries Sets Functions Relations Graphs Proof Techniques.
1 Module 4: Formal Definition of Solvability Analysis of decision problems –Two types of inputs:yes inputs and no inputs –Language recognition problem.
1 Strings and Languages Operations Concatenation Exponentiation Kleene Star Regular Expressions.
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.
INTRODUCTION TO THE THEORY OF COMPUTATION INTRODUCTION MICHAEL SIPSER, SECOND EDITION 1.
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.
The Recursion Theorem Pages 217– ADVANCED TOPICS IN C O M P U T A B I L I T Y THEORY.
1 Chapter 1 Introduction to the Theory of Computation.
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
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.
1 Propositional Logic: Fundamental Elements for Computer Scientists 0. Motivation for Computer Scientists 1. Propositions and Propositional Variables 2.
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.
Decidability Decidable/Undecidable problems. Jaruloj Chongstitvatana Decidability2 Accepting: Definition Let T = (Q, , , , s) be a TM. T accepts.
Opener: Find three consecutive odd integers whose sum is -63 Integer #1 = n Integer #2 = n + 2 Integer #3 = n + 4 (n) + (n + 2) + (n + 4) = -63 3n + 6.
Alphabet, String, Language. 2 Alphabet and Strings An alphabet is a finite, non-empty set of symbols. –Denoted by  –{ 0, 1 } is a binary alphabet. –{
The Relation Induced by a Partition
Theory of Computation Lecture #
Closure Properties of Regular Languages
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Decision Properties of Regular Languages
CSE322 CONSTRUCTION OF FINITE AUTOMATA EQUIVALENT TO REGULAR EXPRESSION Lecture #9.
Closure Properties of Regular Languages
Real Numbers and their Properties
Closure Properties of Regular Languages
Teori Bahasa dan Automata Lecture 1: Course Overview and Introduction
Chapter 7 Logic, Sets, and Counting
Chapter 1 Introduction to the Theory of Computation
CSC 4170 Theory of Computation Finite Automata Section 1.1.
Lesson 3 Properties of Operations
Presentation transcript:

1 Module 9 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 Solvable languages (REC) –Languages whose language recognition problem can be solved Half-solvable languages (RE) –Languages whose language recognition problems can be half- solved Finite languages –Languages with a finite number of strings CARD-3 –Languages with at most 3 strings

7 Finite Sets and Set Union * Finite Languages {a,b,aa} {a,b,bb} {a,b,aa,bb} All Languages

8 CARD-3 and Set Union CARD-3 {a,b,aa} {a,b,bb} {a,b,aa,bb}

9 All Languages Finite Languages and Set Complement Finite Languages {a,b,ab} {/\,aa,ba,bb,aaa,...}

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 –  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 *  L 1,L 2 in FINITE, L 1 union L 2 in FINITE  L 1,L 2 in CARD-3, L 1 union L 2 in CARD- 3  L in FINITE, L c in FINITE  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 –  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 “  L 1,L 2 in CARD-3, L 1 union L 2 in CARD-3” –not (  L 1,L 2 in CARD-3, L 1 union L 2 in CARD-3) –  L 1,L 2 in CARD-3, not (L 1 union L 2 in CARD-3) –  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