Sem 2 Liebeck Flashcards
multiplication principle
multiplying number of options in each category to get total number of combinations
eg: 3 stages of choosing one of 26 letters and 3 stages of choosing one of ten letters
26x26x26x10x10x10=17576000 combinations
orderings
s is a set containing n elements
number of different orderings of elements of s is n!
two questions to ask when taking selections
- does order matter?
- are repetitions allowed?
ordered selection allowing repetitions
n^r
ordered selections not allowing repetitions
n!/(n-r)!
binomial coefficients
n!/r!(n-r)!
(a+b)^n=
Σn/r=0 (n choose r)a^n-rb^r
binomial coefficient identities
n choose 0 = n+r choose o
n choose r = n choose (n-r)
n+1 choose r = (n choose r)(n choose r-1)
set partitions
a collection of subsets such that each element of S lies in one of the subsets
multinomial coefficients
total number of ordered partitions of S into subsets of sizes r1,…,rk
(n choose r1,…rk) = n!/r1!r2!…rk!
eg: 6 friends splitting into two teams of 3 = 6!/3!3!=20
unordered selections, no repetition
n choose r
unordered selections, repetition allowed
n+r-1 choose r
=n+r-1 choose n-1
union
AUB
A and B subsets of universal set
either in A,B or both
(fully shaded venn diagram)
intersection
AnB
the set of elements in both A and B
(overlap in venn diagram)
disjoint
intersection is the empty set
distributivity law
An(BUC)=(AnB)U(AnC)
AU(BnC)=(AUB)n(AUC)
difference
A-B
denotedA\B
in A but not in B
(take away full circle from venn diagram so crescent moon shape left)
complement
complement of A in S is S-A
set of all elements of S that are not in A
i.e. what’s been taken away
cartesian product of A and B
set AxB = {(a,b)|a e A and b e B}
R^3
RXRXR
consists of all triples of real numbers
finite set
finite number of elements
cardinality
|s|=n
s has n elements
n is the cardinality of s
inclusion-exclusion principle
A and B finite subsets
|AUB|=|A|+|B|-|AnB|
picture visually to remember. i.e. full venn diagram is one circle plus another take away the overlap
in general |A1U…UAn|=
c1-c2+c3-…+(-1)^n-1Cn