combinatorics cards Flashcards
pigeonhole principle
let n∈ℕ. If at least n+1 pigeons are placed in n pigeonholes, then some pigeonhole contains at least two pigeons
pigeonhole principle general
let n,k∈ℕ. If at least n pigeons are placed in k pigeonholes, the some pigeonhole contains atleast ⌈n/k⌉ pigeons
ceiling of x, ⌈ x ⌉
the smallest integer greater than or equal to x
floor of x, ⌊ x ⌋
the greatest integer less than or equal to x
⌈ x ⌉ =
⌊ - x ⌋
other ways the define the set {1,2,3,4}
EXAMPLES
{x∈ℕ: x<5}
{x-1| x∈{2,3,4,5}}
Union
AUB is the set consisting of anything in A OR anything in B
Intersection
A∩B is the set consisting of anything in A AND anything in B
Difference
A\B is the set consisting of anything in A but not in B
Complement
In context of the universal set the complement of A is defined by Aᶜ = U/A
consequences of the axiom of extension
- it doesnt matter the order of elements
- elements cannot appear in a set more than once
- There is exactly one set with no elements called the empty set {}
property of ∈
not transitive i.e. if a∈b and b∈c that doesn’t mean a∈c
subset
A is a subset of B if the set A is contained in B. A⊆B.
image of a under f
f(a)
image
the set of elements in the codomain which are mapped to
functions a and b are equal if
- equal domains
- equal codomains
- same rule
injective
different elements of the domain map to different elements in the codomain
surjective
every element of the codomain is mapped to
bijective
both injective and surjective
if f is a bijection then there is precisely…
one element of the domain s.t. f(a)=b
bijective functions are…
invertible
the inverse of a bijection is…
a bijection
A set X has size n if there exists…
a bijection f:{1,2…n}->X
distributivity of ∩ and ∪
A∩(B∪C) = (A∩B)∪(A∩C)
∩ ∪ are
associative and commutative
ordered r-tuple
a sequence of r objects which we refer to as elements or co-ordinates in a given order (a,b,c,…)
in tuples..
order matters and elements can be repeated
cartesian product
cartesian product of A and B is given by AxB {(a,b): a∈A and b∈B}
powers of sets
Aⁿ = AxAx…xA
Power set
a set whose elements are the subsets of A
choosing a possibility of one type or another
m+n posiibilities (assuming no overlap)
choosing a possiblity of each type
mn posibilities