MATH 271 Summer 2016 Assignment 4 solutions

Similar documents
Cardinality Lectures

Standard Boolean Forms

9.5 Equivalence Relations

Solutions to Some Examination Problems MATH 300 Monday 25 April 2016

CSE 215: Foundations of Computer Science Recitation Exercises Set #9 Stony Brook University. Name: ID#: Section #: Score: / 4

Functions. How is this definition written in symbolic logic notation?

MATH 22 MORE ABOUT FUNCTIONS. Lecture M: 10/14/2003. Form follows function. Louis Henri Sullivan

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

Functions. Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A.

THREE LECTURES ON BASIC TOPOLOGY. 1. Basic notions.

Let A(x) be x is an element of A, and B(x) be x is an element of B.

Algebra of Sets. Aditya Ghosh. April 6, 2018 It is recommended that while reading it, sit with a pen and a paper.

Cantor-Schröder-Bernstein Theorem, Part 1

A graph is finite if its vertex set and edge set are finite. We call a graph with just one vertex trivial and all other graphs nontrivial.

Lecture 17: Continuous Functions

1. (15 points) Solve the decanting problem for containers of sizes 199 and 179; that is find integers x and y satisfying.

Chapter 3. Set Theory. 3.1 What is a Set?

It is important that you show your work. There are 134 points available on this test.

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Fall

CSC Discrete Math I, Spring Sets

Final Exam, F11PE Solutions, Topology, Autumn 2011

13 th Annual Johns Hopkins Math Tournament Saturday, February 19, 2011 Automata Theory EUR solutions

Generell Topologi. Richard Williamson. May 6, 2013

Locally convex topological vector spaces

Slides for Faculty Oxford University Press All rights reserved.

2.2 Set Operations. Introduction DEFINITION 1. EXAMPLE 1 The union of the sets {1, 3, 5} and {1, 2, 3} is the set {1, 2, 3, 5}; that is, EXAMPLE 2

Math 778S Spectral Graph Theory Handout #2: Basic graph theory

What Is A Relation? Example. is a relation from A to B.

1. Represent each of these relations on {1, 2, 3} with a matrix (with the elements of this set listed in increasing order).

Johns Hopkins Math Tournament Proof Round: Point Set Topology

1KOd17RMoURxjn2 CSE 20 DISCRETE MATH Fall

T. Background material: Topology

SAT-CNF Is N P-complete

Antisymmetric Relations. Definition A relation R on A is said to be antisymmetric

Functions 2/1/2017. Exercises. Exercises. Exercises. and the following mathematical appetizer is about. Functions. Functions

MATH 54 - LECTURE 10

Math 443/543 Graph Theory Notes

Solutions to Exercises 9

Complexity Theory. Compiled By : Hari Prasad Pokhrel Page 1 of 20. ioenotes.edu.np

Sets 1. The things in a set are called the elements of it. If x is an element of the set S, we say

1.1 - Introduction to Sets

QED Q: Why is it called the triangle inequality? A: Analogue with euclidean distance in the plane: picture Defn: Minimum Distance of a code C:


Chapter 4. Relations & Graphs. 4.1 Relations. Exercises For each of the relations specified below:

THEORY OF COMPUTATION

Notes on metric spaces and topology. Math 309: Topics in geometry. Dale Rolfsen. University of British Columbia

Chapter 10 Part 1: Reduction

Indicate the option which most accurately completes the sentence.

2. Metric and Topological Spaces

(d) If the moon shares nothing and the sun does not share our works, then the earth is alive with creeping men.

Math 776 Graph Theory Lecture Note 1 Basic concepts

1 Connected components in undirected graphs

Math 443/543 Graph Theory Notes

Logic and Discrete Mathematics. Section 2.5 Equivalence relations and partitions

Sets. {1, 2, 3, Calvin}.

Discrete Mathematics Exam File Fall Exam #1

751 Problem Set I JWR. Due Sep 28, 2004

Sets. Mukulika Ghosh. Fall Based on slides by Dr. Hyunyoung Lee

= [ U 1 \ U 2 = B \ [ B \ B.

Lecture 15: The subspace topology, Closed sets

Boolean Algebra & Digital Logic

TOPOLOGY, DR. BLOCK, FALL 2015, NOTES, PART 3.

We can determine this with derivatives: the graph rises where its slope is positive.

We show that the composite function h, h(x) = g(f(x)) is a reduction h: A m C.

CONNECTED SPACES AND HOW TO USE THEM

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Sets Fall / 31

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/27/18

Cardinality of Sets. Washington University Math Circle 10/30/2016

Introduction to Sets and Logic (MATH 1190)

Lecture : Topological Space

1. (10 points) Draw the state diagram of the DFA that recognizes the language over Σ = {0, 1}

13 th Annual Johns Hopkins Math Tournament Saturday, February 18, 2012 Explorations Unlimited Round Automata Theory

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

More NP-Complete Problems [HMU06,Chp.10b] Node Cover Independent Set Knapsack Real Games

MATH 139 W12 Review 1 Checklist 1. Exam Checklist. 1. Introduction to Predicates and Quantified Statements (chapters ).

CS446: Machine Learning Fall Problem Set 4. Handed Out: October 17, 2013 Due: October 31 th, w T x i w

Math 187 Sample Test II Questions

A set with only one member is called a SINGLETON. A set with no members is called the EMPTY SET or 2 N

Math236 Discrete Maths with Applications

Homework Set #2 Math 440 Topology Topology by J. Munkres

Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103. Chapter 2. Sets

Topology 550A Homework 3, Week 3 (Corrections: February 22, 2012)

11 Sets II Operations

Module 7. Independent sets, coverings. and matchings. Contents

Point-Set Topology 1. TOPOLOGICAL SPACES AND CONTINUOUS FUNCTIONS

Definition 1 (Hand-shake model). A hand shake model is an incidence geometry for which every line has exactly two points.

CSE 20 DISCRETE MATH. Fall

Finding a -regular Supergraph of Minimum Order

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

NP and computational intractability. Kleinberg and Tardos, chapter 8

FINITELY GENERATED CLASSES OF SETS OF NATURAL NUMBERS

LECTURE 1 Basic definitions, the intersection poset and the characteristic polynomial

Commando: Solution. Solution 3 O(n): Consider two decisions i<j, we choose i instead of j if and only if : A S j S i

1-3 Continuity, End Behavior, and Limits

Lecture 22 Tuesday, April 10

FRUCHT S THEOREM FOR THE DIGRAPH FACTORIAL

Functions. Jason Filippou UMCP. Jason Filippou UMCP) Functions / 19

Chapter 1. Preliminaries

Lecture 2 September 3

Transcription:

MATH 7 ummer 06 Assignment 4 solutions Problem Let A, B, and C be some sets and suppose that f : A B and g : B C are functions Prove or disprove each of the following statements (a) If f is one-to-one then g f is one-to-one olution This statement is false Consider the functions f and g defined by the following diagrams: A f B g C Then f is clearly one-to-one, but g f is not one-to-one (b) If both f and g are one-to-one then g f is one-to-one olution This statement is true Proof Assume that f is one-to-one and g is one-to-one (We will show that g f is one-to-one) Let a, a A and assume that (g f)(a ) = (g f)(a ) (We will show that a = a ) Then g ( f(a ) ) = g ( f(a ) ) which means that f(a ) = f(a ) since g is one-to-one a = a But f is also one-to-one, which means that (c) If g f is one-to-one then f is one-to-one olution This statement is true Proof Assume that g f is one-to-one (We will show that f is one-to-one) Let a, a A ans assume that f(a ) = f(a ) (We will show that a = a ) ince f(a ) = f(a ), applying g to both sides gives us g ( f(a ) ) = g ( f(a ) ) or (g f)(a ) = (g f)(a ) But g f is one-to-one, so a = a (d) If g f is one-to-one then g is one-to-one olution This statement is false Consider the functions defined by the following diagrams: A f B g C

Then g f is clearly one-to-one, but g is not one-to-one (e) If g f is one-to-one and f is onto then g is one-to-one olution This statement is true Proof Assume that g f is one-to-one and that f is onto (We will show that g is one-to-one) Let b, b B and assume that g(b ) = g(b ) (We will show that b = b ) ince f is onto, there exists an a A so that f(a ) = b imilarly, there exists an a A so that f(a ) = b ince g(b ) = g(b ), this gives us g ( f(a ) ) = g ( f(a ) ), which means (g f)(a ) = (g f)(a ) But g f is one-to-one, which means that a = a Hence f(a ) = f(a ) and thus b = f(a ) = f(a ) = b, so b = b Problem Consider the set = {,,, 4, 5, 6, 7, 8, 9, 0} and let F denote the set of all functions from to Define a relation R on F by: for all f, g F, f R g if and only if x so that f(x) = g(x) Let α F be the function defined by α(x) = for each x Let h F be the function defined by h(x) = x+ for each x (a) Is R reflexive? ymmetric, Transitive? Prove your answers olution The relation R is reflexive and symmetric, but not transitive Proof (that R is reflexive) Let f F be arbitrary Then f() = f(), so there is at least one x so that f(x) = f(x) Hence f R f, so R is reflexive Proof (that R is symmetric) Let f, g F be arbitrary and assume that f R g Then there is at least one x so that f(x) = g(x) Hence g(x) = f(x) for that x, which means that g R f, so R is symmetric Proof (that R is not transitive) Let f, g F be the functions defined by f(x) = {, if x =,, if x and g(x) = {, if x =,, if x Function diagrams for these two functions are the following: f g Then f R α since f() = = α() and α R g since g() = = α() But f /R g since f(x) g(x) for all x Thus R is not transitive

(b) Prove or disprove the statement: f F so that g F, f R g olution This statement is false Its negation is: f F, g { so that f /R g Proof (of the negation) Let f F be arbitrary Pick g to be the function defined by {, if f(x) =, g(x) =, if f(x) It is clear that g(x) f(x) for all x Indeed, let x be an element of Then f(x) = or f(x) If f(x) =, then g(x) = If f(x), then g(x) = f(x) In either case, g(x) f(x) for all x This proves the statement (c) How many functions f F are there so that f R α? Explain olution There are 0 0 9 0 The reasoning is as follows Consider the set A = {f F f R α} We want to count A It is easier to count the complement A c = F A, which is the set of functions that are not related to α That is, A c = {f F f /R α} Note that A = F A c The recipe for counting the functions that are not related to α is as follows: Choose a value for f() It cannot be, otherwise f() = α() There are 9 other choices Choose a value for f() It cannot be, otherwise f() = α() There are 9 other choices 0 Choose a value for f(0) It cannot be, otherwise f(0) = α(0) There are 9 other choices Hence A c = 9 0 There are 0 0 total functions from to, so A = F A c = 0 0 9 0 (d) How many functions f F are there so that f R h? Explain olution There are 0 0 9 0 The reasoning is as follows Consider the set H = {f F f R h} We want to count H It is easier to count the complement H c = F H, which is the set of functions that are not related to h That is, H c = {f F f /R h} Note that H = F H c The recipe for counting the functions that are not related to h is as follows: Choose a value for f() It cannot be (since h() = ), otherwise f() = h() There are 9 other choices Choose a value for f() It cannot be (since h() = ), otherwise f() = h() There are 9 other choices Choose a value for f() It cannot be (since h() = ), otherwise f() = h() There are 9 other choices 0 Choose a value for f(0) It cannot be 6 (since h(0) = 6), otherwise f(0) = h(0) There are 9 other choices Hence H c = 9 0 There are 0 0 total functions from to, so H = F H c = 0 0 9 0

(e) How many functions f F are there so that f /R α or f /R h? Explain 4 olution The answer is 9 0 8 0 The reasoning is as follows The functions that we want to count are the functions f F such that f /R α or f /R h Note that f /R α f / A f A c imilarly, note that f /R h f / H f H c This means that we want to count the functions f so that f A c or f H c That is, we want to count the functions f in A c H c Consider the following picture: F A c H c We want to count the union of A c and H c That is, we want to count the shaeded region of the following diagram: F A c H c The number of elements in this set is A c H c = A c + H c A c H c, where A c H c is the set that is the shaded region of the following diagram: F A c H c Note that f A c H c means that f /R α and f /R h We can count the nubmer of functions that are not related to both α and h by the following recipe: Choose a value for f() It cannot be, otherwise f() = α() =, and it cannot be (since h() = ), otherwise f() = h() There are 8 other choices Choose a value for f() It cannot be, otherwise f() = α() =, and it cannot be (since h() = ), otherwise f() = h() There are 8 other choices

5 Choose a value for f() It cannot be, otherwise f() = α() =, and it cannot be (since h() = ), otherwise f() = h() There are 8 other choices 0 Choose a value for f(0) It cannot be, otherwise f(0) = α(0) =, and it cannot be 6 (since h(0) = 6), otherwise f(0) = h(0) There are 8 other choices Hence A c H c = 8 0 Now A c H c = A c + H c A c H c = 9 0 + 9 0 8 0 Problem Consider the set Z + of all positive integers Let be the relation on Z + Z + defined by for all (a, b) and (c, d) in Z + Z + (a, b) (c, d) if and only if a + b = c + d (a) Prove that is an equivalence relation on Z + Z + olution Proof We prove that is reflexive, symmetric, and transitive (Reflexive) Let (a, b) Z + Z + be an arbitrary pair of positive integers Then a + b = a + b, so (a, b) (a, b) Hence is reflexive (ymmetric) Let (a, b) Z + Z + and (c, d) Z + Z + be arbitrary pairs of positive integers Assume that (a, b) (c, d) Then a + b = c + d which means that c + d = a + b Hence (c, d) (a, b) and thus is symmetric (Transitive) Let (a, b), (c, d), (e, f) Z + Z + be arbitrary pairs of positive integers Assume that (a, b) (b, c) and (b, d) (e, f) Then a + b = c + d and c + d = e + f and thus a + b = d + f since = is transitive Hence (a, b) (e, f) and thus is transitive Thus is an equivalence relation because it is reflexive, symmetric, and transitive (b) List all elements of [(, )] and all elements of [(4, 4)] olution Note that + = 9 Then (a, b) (, ) if and only if a + b = 9 The elements of [(, )] are [(, )] = {(, 4), (, ), (5, ), (7, )} Note that 4 + 4 = Then (a, b) (4, 4) if and only if a + b = The elements of [(4, 4)] are [(4, 4)] = {(, 5), (4, 4), (6, ), (8, ), (0, )} (c) Is there an equivalence class of that has exactly 7 elements? Explain olution Yes Consider the equivalence class of (, 7) The elements are [(, 7)] = {(, 7), (, 70), (5, 69),, (54, )} = {(54 k, k) k =,,, 7}, which has 7 elements (d) How many equivalence classes of are there that contain at most 7 elements?

6 olution There are 7 = 54 equivalence classes that contain at most 7 elements Note that for each n Z +, there are two exactly equivalence classes that contain exactly n elements Indeed, we see that [(, )] = {(, )} and [(, )] = {(, )} are the only equivalence classes that contain exactly element For each n, the equivalence classes and [(, n)] = {(, n), (, n ), (5, n ),, (n, )} [(, n)] = {(, n), (4, n ), (6, n ),, (n, )} are the only classes that contain exactly n elements For each n =,,, 7 there are exactly equivalence classes containig n elements o there are a total of 7 classes that have at most 7 elements