Lecture Combinatorics3 6up
Lecture Combinatorics3 6up
Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 1/26 Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 2/26
I Example of combination with repetition: ”In how many ways I To solve problem, imagine we have ice cream in boxes.
can we pick 3 objects from 5 kinds of objects?”
I We start with leftmost box, and proceed towards right.
I Caveat: Despite looking deceptively simple, quite difficult to
figure this out (at least for me...) I At every box, you can take 0-3 scoops, and then move to next.
Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 3/26 Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 4/26
Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 7/26 Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 8/26
Example 3 Example 4
I I
I I
Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 9/26 Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 10/26
Order matters? Question: How many ways to pick r objects from . . . I How many different strings can be made by reordering the
n objects n types of objects
letters in the word ALL?
Permutation Permutation w/ repetition
I This is not given by 3! because some of the letters in this
Yes
P (n, r ) = n!
(n−r )! P ∗ (n, r ) = n r word are the same
Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 11/26 Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 12/26
Permutations with Indistinguishable Objects, cont. Proof
Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 13/26 Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 14/26
Example 1 Example 2
I I
Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 17/26 Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 18/26
Distributing Objects into Boxes Example: Distinguishable Objects in Distinguishable Boxes
I
I Many counting problems can be thought of as distributing
objects into boxes
I
Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 19/26 Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 20/26
I I
I I
Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 21/26 Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 22/26
I Involves combination I
Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 23/26 Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 24/26
Example 2 Example 3
I How many ways to distribute six indistinguishable objects to I How many ways to assign 15 distinguishable objects into 5
five distinguishable boxes? distinguishable boxes so boxes contain 1, 2, 3, 4, 5 objects
respectively?
I
I
I
I
I
Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 25/26 Instructor: Işıl Dillig, CS311H: Discrete Mathematics Combinatorics 3 26/26