Lec 4: Combinatorics 2 Flashcards
What is the combinatorial function and its boundary conditions?
What is the binomial expansion of (a+b)2 and (a+b)3?
What is the binomial expansion equation sing the conbination function?
What is inductive computation of C(n,r) where r is the size of a subset from a set of size n? What is the general formula?
What is Pascal’s Triangle use for?
What is the pigeon-hole principle?
if n items are put into m containers, with n > m, then at least one container must contain more than one item.
For natural numbers k and m, if n = km + 1 objects are distributed among m sets, then the pigeonhole principle asserts that at least one of the sets will contain at least k+1 objects.
3*(6-1)+1 = 16
What is the birthday paradox?
How many people do you need in the room so that at least two of them have the same birthday?
Assume all days have the same probability (1/365)
K = the number of people in the room
We want to calculate P(A) for the event
A = {K birthdays such that at least two are the same}
P(A) = | A | / | outcome space |
Easier to think of it as the 1 - the complement, no two people have the same birthday
| Ac | = 365! / (365 - K)!
P(A) = 1 - P(Ac) = 1 - P(k,365)/365k
outcome space | = 365k
How many strings contain 3 letters and two digits? (digits and letters can repeat and there is no restrictions on their order)
What is the number of strings that start with a digit followed by 4 letters, followed by 2 digits?
Answer: this is a product set:
10*26*26*26*26*10*10 = 26^4*10^3
What is the probability that a random word of length 4 with distinct letters has the letters in increasing alphabetic order?
How many ways to sit 3 out of 7 kids on a marry-go-round with three identical seats?
What is stars and bars?
How many ways to divide 10 cookies among three children? (the cookies are identical and cannot be broken)
- stars and bars problem
-