Automata and Languages

Similar documents
Relations. Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations. Reading (Epp s textbook)

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

1.4 Equivalence Relations and Partitions

Relations, Functions, and Sequences

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R.

Section Summary. Relations and Functions Properties of Relations. Combining Relations

CSCI 2200 Foundations of Computer Science Spring 2018 Quiz 3 (May 2, 2018) SOLUTIONS

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Any Wizard of Oz fans? Discrete Math Basics. Outline. Sets. Set Operations. Sets. Dorothy: How does one get to the Emerald City?

Automata Theory for Presburger Arithmetic Logic

Sets and Motivation for Boolean algebra

Chapter 9: Relations Relations

BASIC MATHEMATICAL TECHNIQUES

and e 2 ~ e 2 iff e 1

Solutions to In Class Problems Week 4, Mon.

Finite Automata and Regular Languages

Büchi Automata and their closure properties. - Ajith S and Ankit Kumar

Relations Graphical View

CSC Discrete Math I, Spring Relations

14 Equivalence Relations

Reading 11 : Relations and Functions

Relations, Functions & Binary Operations

Sets. Introduction to Set Theory ( 2.1) Basic notations for sets. Basic properties of sets CMSC 302. Vojislav Kecman

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

Massachusetts Institute of Technology 6.042J/18.062J, Fall 02: Mathematics for Computer Science Professor Albert Meyer and Dr.

Relations. Definition 1 Let A and B be sets. A binary relation R from A to B is any subset of A B.

Spring Based on Partee, ter Meulen, & Wall (1993), Mathematical Methods in Linguistics

Notes. Relations. Introduction. Notes. Relations. Notes. Definition. Example. Slides by Christopher M. Bourke Instructor: Berthe Y.

1.A Sets, Relations, Graphs, and Functions 1.A.1 Set a collection of objects(element) Let A be a set and a be an elements in A, then we write a A.

Introduction to Automata

Foundations of Mathematics

Math 105A HW 1 Solutions

Automata and Languages

Section 0. Sets and Relations

Relations --- Binary Relations. Debdeep Mukhopadhyay IIT Madras

CSE 20 DISCRETE MATH. Fall

Assignment #2 COMP 3200 Spring 2012 Prof. Stucki

Mathematics Review for Business PhD Students

INF210 Datamaskinteori (Models of Computation)

Deviations from the Mean

Automata and Languages

Discrete Mathematics. 2. Relations

A is a subset of (contained in) B A B iff x A = x B Socrates is a man. All men are mortal. A = B iff A B and B A. A B means A is a proper subset of B

Sets. Subsets. for any set A, A and A A vacuously true: if x then x A transitivity: A B, B C = A C N Z Q R C. C-N Math Massey, 72 / 125

DO FIVE OUT OF SIX ON EACH SET PROBLEM SET

1 Chapter 1: SETS. 1.1 Describing a set

Relations. Relations. Definition. Let A and B be sets.

MATH 101: ALGEBRA I WORKSHEET, DAY #1. We review the prerequisites for the course in set theory and beginning a first pass on group. 1.

Math 2534 Solution to Test 3A Spring 2010

Part IA Numbers and Sets

CS 455/555: Mathematical preliminaries

Definition: A binary relation R from a set A to a set B is a subset R A B. Example:

ICS141: Discrete Mathematics for Computer Science I

Today s topics. Introduction to Set Theory ( 1.6) Naïve set theory. Basic notations for sets

Discrete Mathematics. Benny George K. September 22, 2011

Lecture 4.3: Closures and Equivalence Relations

Discrete Mathematics. Chapter 4. Relations and Digraphs Sanguk Noh

Chapter 1 : The language of mathematics.

Week 4-5: Binary Relations

LESSON RELATIONS & FUNCTION THEORY

Chapter 1. Sets and Mappings

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Fuzzy and Rough Sets Part I

Relations. We have seen several types of abstract, mathematical objects, including propositions, predicates, sets, and ordered pairs and tuples.

COMP9020 Lecture 3 Session 2, 2014 Sets, Functions, and Sequences. Revision: 1.3

Properties of Regular Languages. BBM Automata Theory and Formal Languages 1

COMP4141 Theory of Computation

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

TOPOLOGICAL ASPECTS OF YAO S ROUGH SET

9/19/2018. Cartesian Product. Cartesian Product. Partitions

Comment: The induction is always on some parameter, and the basis case is always an integer or set of integers.

2.2 Lowenheim-Skolem-Tarski theorems

Chapter 2 - Relations

Mathematics Review for Business PhD Students Lecture Notes

Chapter 2 - Basics Structures

Theory of Computation

Discussion Summary 10/16/2018

CS Discrete Mathematics Dr. D. Manivannan (Mani)

Chapter 3. Regular grammars

QUASI-PREFERENCE: CHOICE ON PARTIALLY ORDERED SETS. Contents

UNIT-II. NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: SIGNIFICANCE. Use of ε-transitions. s t a r t. ε r. e g u l a r

EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) 1. RELATIONS

1.4 Cardinality. Tom Lewis. Fall Term Tom Lewis () 1.4 Cardinality Fall Term / 9

Introductory Analysis I Fall 2014 Homework #5 Solutions

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

ECARES Université Libre de Bruxelles MATH CAMP Basic Topology

Section 2: Classes of Sets

What are relations? f: A B

arb where a A, b B and we say a is related to b. Howdowewritea is not related to b? 2Rw 1Ro A B = {(a, b) a A, b B}

Worksheet on Relations

Foundations of Computer Science Lecture 23 Languages: What is Computation?

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

Axioms of Kleene Algebra

0 Logical Background. 0.1 Sets

n CS 160 or CS122 n Sets and Functions n Propositions and Predicates n Inference Rules n Proof Techniques n Program Verification n CS 161

SETS AND FUNCTIONS JOSHUA BALLEW

Lecture Notes On THEORY OF COMPUTATION MODULE -1 UNIT - 2

Chapter Summary. Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2.

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations

Transcription:

Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan

Mathematical Background

Mathematical Background Sets Relations Functions Graphs Proof techniques

Sets Set: collection of objects Finite Infinite Countable Countable Uncountable Ex. 1 S 1 = {a, 2, b} Ex. 2 S 2 = {0, 2, 4, } Ex. 3 Set of real numbers R

-Notation & -Notation The Greek letter (epsilon) is used to denote that an object is an element of a set. When crossed out denotes that the object is not an element. Ex.: 3 S reads: 3 is an element of the set S. A set S is said to be a subset of the set T iff every element of S is also an element of T. This situation is denoted by S T

Specifying Sets By listing elements : Ex. S 1 = {1, 2, 4, 5, 10, 20} S 2 = {0, 2, 4, } By defining property : Ex. S 1 = {n : n N, n divides 20} S 2 = {n : n N, n is even number}

Examples { 11, 12, 13 } {,, } {,,, 11, Leo } { 11, 11, 11, 12, 13 } = { 11, 12, 13 }? {,, } = {,, }?

The Empty Set The empty set is the set containing no elements. This set is also called the null set and is denoted by: { } Quiz 1.? 2.? (yes) (No)

Cardinality The cardinality of a set is the number of distinct elements in the set. S denotes the cardinality of S. Q: Compute each cardinality. 1. {1, -13, 4, -13, 1}? 2. {3, {1,2,3,4}, }? 3. {}? 4. { {}, {{}}, {{{}}} }? (3) (3) (0) (3)

Set Theoretic Operations Set theoretic operations allow us to build new sets out of old. Given sets A and B, the set theoretic operators are: Union ( ) Intersection ( ) Difference (-) Complement ( ) Cartesian Product: A B Power set: P(A) give us new sets A B, A B, A-B, A, AxB, and P(A).

Union Elements in at least one of the two sets: A B = { x x A x B } U A B A B

Intersection Elements in exactly one of the two sets: A B = { x x A x B } U A A B B

Disjoint Sets DEF: If A and B have no common elements, they are said to be disjoint, i.e. A B =. U A B

Set Difference Elements in first set but not second: A-B = { x x A x B } U A-B B A

A = { x x A } Complement Elements not in the set (unary operator): _ U _ A A

Cartesian Product The most famous example of 2-tuples are points in the Cartesian plane R 2. Here ordered pairs (x,y) of elements of R describe the coordinates of each point. We can think of the first coordinate as the value on the x-axis and the second coordinate as the value on the y-axis. The Cartesian product of two sets A and B (denoted by A B) is the set of all ordered pairs (a, b) where a A and b B. A B = { (x,y) x A and y B} Q: What does S equal? (= )

Some Examples L <6 = { x x N, x<6 } L <6 L prime = {2,3,5} Σ = {0,1} Σ Σ= {(0,0), (0,1), (1,0), (1,1)}

Power Sets Formal: P(A) = { S S A } Example: A = {x,y} P(A) = { {}, {x}, {y}, {x,y} } Note the different sizes: P(A) = 2 A A A = A 2

Power Sets The power set of S is the set of all subsets of S. Denote the power set by P (S ) or by 2 s. The latter weird notation comes from the following lemma. Lemma: 2 s = 2 s

Power Sets: Example To understand the previous fact consider S = {1,2,3} Enumerate all the subsets of S : 0-element sets: {} 1-element sets: {1}, {2}, {3} 2-element sets: {1,2}, {1,3}, {2,3} 3-element sets: {1,2,3} Therefore: 2 s = 8 = 2 3 = 2 s 1 + 3 + 3 + 1

Binary Relations A binary relation R is a set of pairs of elements of sets A and B, i.e. R A B - A is called the domain of R - B is called the range (or codomain) of R - If A=B we say that R is a relation on A - We may write arb for (a,b) R

Properties of Binary Relations Special properties for relation on a set A: reflexive : every element is self-related. i.e. ara for all a A symmetric : order is irrelevant. i.e. for all a,b A arb iff bra transitive : when a is related to b and b is related to c, it follows that a is related to c. i.e. for all a,b,c A arb and brc implies arc

Properties of Binary Relations asymmetric : also not equivalent to not symmetric. Meaning: it s never the case that both arb and bra hold. i.e. arb è bra irreflexive : not equivalent to not reflexive. Meaning: it s never the case that ara holds. i.e. for all a, ara

Properties of Binary Relations An equivalence relation R is a relation on a set A which is reflexive, symmetric and transitive. - Generalizes the notion of equals. - R partitions A into disjoint nonempty equivalence classes, i.e., A=A 1 U A 2 U.., such that - A i A j =, for all i = j - a, b A i è arb - a A i, b A j, i = j è a R b - A i s are called equivalence classes and their number may be infinite

Examples Set of Natural numbers is partitioned by the relation R={(i, j): i = j mod 5 } into five equivalence classes : { {0,5,10, }, {1,6,11, }, {2,7,12, }, {3,8,13, }, {4,9,14, } } String length can be used to partition the set of all bit strings. { {},{0,1},{00,01,10,11},{000,,111}, }

Closures of Relations If P is a set of properties of relations, the P-closure of a relation R is the smallest relation R such that: 1. R R 2. ar b è P((a, b)) is true 3. No more elements in R - Ex. The transitive-closure of a relation R, denoted by R + is defined by: 1. arb è (a, b) R + 2. (a, b) R +, (b, c) R + è (a, c) R + 3. Only elements in (1) and (2) are in R + - Note that: the {reflexive, transitive}-closure of a relation R is denoted by R*

Examples For the relation R = {(1,2), (2,2), (2,3)} on the set {1,2,3}, R + and R * are R + ={(1,2), (2,2), (2,3), (1, 3)} R + Transitive R * ={(1,1), (1,2), (2,2), (2,3), (1, 3), (3,3)} R + Transitive + Reflexive