Lec 3: Basic Combinatorics Flashcards
What are sets in these forms:
- Explicit
- Implicit
- Intersection
- Union
What is the product of sets?
Taking all possible combinations
| color | = 2
| size | 5
size of produce set = 3 x 2 x 5
style | == size of set style = 3
What is raising a set to a power?
What is the factorial function?
The number of way to order n objects in n!
The number of possible ways to put n different objects into n different slots is
n * (n-1) * (n-2) * … * 2 * 1 = n!
- so n factorial
When do we use permutations?
How many ways are there to pick k out of n elements when the order matters
What is the permutation function?
When do we use combinations?
How many ways are there to pick k out of n elements when the order does not matter
How many ways are there to pick 3 out of 7 elements when order does not matter?
C (3, 7)
What is the combinatorial function?
C(3,7) or C(4,7)
How many different 3 digit numbers from the digits 1-9?
2 2 1
9 x 9 x 9 = 9^3
How many different 4 digit numbers from the digits 1-9 where all of the digits are different?
Permutation
- P (9, 4) = 9!/ (9-4)!
How many different 4 digit numbers from the digits 1-9 where all of the digits are different and the digits are in increasing order?
- when the order is fixed, order doesn’t matter
- combinatorics
- C(9,4) = 9!/(4!5!)
Suppose you choose 4 different digits from the set 1-9 and you place them in increasing order. What is the probability that the first digit is 3?
what is the size of the sample space?
What is the size of the event?
- P(A) = |A|/|omega|
- What is the size of the sample space?
- |omega| = C(9,4) = 9!/(4! 5!)
- What is the size of the event?
- |A| = C(6,3)
- Probability?
- P(A) = [C(6,3)]/[C(9,4)]
How many different words can be created by rearranging (all) the letters in the word MISSISSIPPI?