




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















CS 2800: Discrete Structures, Spring 2015 Sid Chaudhuri
โ A relation between sets A (the domain ) and B (the codomain ) is a set of ordered pairs (a, b) such that a โ A, b โ B (i.e. it is a subset of A ร B)
Cartesian product
โ Instead of writing the function f as a set of pairs, we usually specify its domain and codomain as: f : A โ B โฆ and the mapping via a rule such as: f (Heads) = 0.5, f (Tails) = 0. or f : x โฆ x 2 The function f maps x to x 2
โ Instead of writing the function f as a set of pairs, we usually specify its domain and codomain as: f : A โ B โฆ and the mapping via a rule such as: f (Heads) = 0.5, f (Tails) = 0. or f : x โฆ x 2 โ Note: the function is f, not f(x)!
โ A function if surjective (onto) if every element of the codomain has a preimage in the domain
Winter August September October November December January February March April May June July
โ A function if surjective (onto) if every element of the codomain has a preimage in the domain
Winter August September October November December January February March April May June July (Ithaca etc)
x y z 1 2 3 Even Odd A B C g f โ The composition of two functions f : B โ C g : A โ B is the function f โ g : A โ C defined as f โ g : x โฆ f ( g (x) )
โ The composition of two functions f : B โ C g : A โ B is the function f โ g : A โ C defined as f โ g : x โฆ f ( g (x) ) x y z Even Odd A C f โ g g โ f is not possible unless A = C!
โ g : B โ A is a left inverse of f : A โ B if g ( f (a) ) = a for all a โ A
โ g : B โ A is a left inverse of f : A โ B if g ( f (a) ) = a for all a โ A
โ h : B โ A is a right inverse of f : A โ B if f ( h (b) ) = b for all b โ B
โ h : B โ A is a right inverse of f : A โ B if f ( h (b) ) = b for all b โ B
f
โ h : B โ A is a right inverse of f : A โ B if f ( h (b) ) = b for all b โ B
โ The left inverse tells you how to exactly retrace your steps, if you managed to get to a destination