ppt

L2 Supplementary Notes
Page 1
09-02-2010: Recap

General Product Principle


Counting Functions


Functions are lists
Function concepts


For counting list
Injection, surjection, and bijection
Bijiection Principle
L2 Supplementary Notes
09-02-2010: Product Principle
Page 2
L2 Supplementary Notes
09-02-2010: Recap/Counting Functions
Page 3
L2 Supplementary Notes
09-02-2010: Injection and Surjection
Page 4
L2 Supplementary Notes
Page 5
09-02-2010: Bijection
L2 Supplementary Notes
09-02-2010: Bijection Principle
Page 6
L2 Supplementary Notes
Page 7
09-02-2010: Today
L2 Supplementary Notes
Page 8
Increasing Triples

Can we count using general product principle?

# of possible values for i?
 n-2

# of possible values for j?
 Depends on value of i!
 Violates condition of general product principle
L2 Supplementary Notes
Page 9
Use Bijection Principle

n=4

All increasing triples listed.

Do we have all the subsets? How about subset {2, 1, 3}?

It is the same as {1, 2, 3}
L2 Supplementary Notes
Page 10
Increasing Triples
L2 Supplementary Notes
Page 11
Increasing Triples
L2 Supplementary Notes
Page 12
Increasing Triples


Same as

The number of 3-element subsets from {1, 2, …, n}

What is this number?
First consider another number

The number of 3-element permutations from {1, 2, …, n}
L2 Supplementary Notes
 Order matters, not required to be increasing

3-element permutations from {1, 2, 3, 4}
Page 13
L2 Supplementary Notes
General product principle can be applied here
although cannot for increasing triples. Why?

Page 14
L2 Supplementary Notes
3-element subsets/3-element permutations
Page 15
L2 Supplementary Notes
3-element subsets/Increasing triples

Same as

The number of 3-element subsets from {1, 2, …, n}
Page 16
L2 Supplementary Notes
Page 17
L2 Supplementary Notes
Page 18
Permutations

Number of k-element permutations

Number of permutations of a set of size n
L2 Supplementary Notes
Page 19
K-th falling factorial
L2 Supplementary Notes
Page 20
L2 Supplementary Notes
k-element subsets/k-elemen permutations
Page 21
L2 Supplementary Notes
k-element subsets/k-elemen permutations
Page 22
L2 Supplementary Notes
Page 23
L2 Supplementary Notes
Page 24
Summary

Number of increasing triples:

Number of 3-element subsets

Number of 3-element permutations

Number of k-element subsets

Number of k-element permutations
L2 Supplementary Notes
Page 25
Assignment 2: Problem 9

Exco Members: Year 1: 4; Year 2: 5; Year 3: 3

Total number of members: 12

Choose 6 from 12
L2 Supplementary Notes
Page 26
Assignment 2: Problem 9


Exco Members: Year 1: 4; Year 2: 5; Year 3: 3
Number of ways to choose Treasury Subcommittee


12 choose 3
Number of ways to choose Events Subcommittee

9 choose 3
L2 Supplementary Notes
Page 27
Assignment 2: Problem 9



Exco Members: Year 1: 4; Year 2: 5; Year 3: 3
Number of ways to choose Treasury Subcommittee
Number of ways to choose Events Subcommittee


9 choose 3
Answer
L2 Supplementary Notes
Page 28
Assignment 2: Problem 9


Exco Members: Year 1: 4; Year 2: 5; Year 3: 3
“At least” makes things complex.
L2 Supplementary Notes
L2 Supplementary Notes
Wrong Answer



First choose 1 from each year
Then pick 3 from remaining 9 members
Answer
L2 Supplementary Notes
Wrong Answer

First choose 1 from each year


Then pick 3 from remaining 9 members


Anthony (Y1), Mike (Y2), William (Y3)
Billy (Y1), Calvin(Y1), David (Y1),
Committee

Anthony (Y1), Billy (Y1), Calvin(Y1), David (Y1), Mike (Y2), William (Y3)
L2 Supplementary Notes
Wrong Answer

First choose 1 from each year


Then pick 3 from remaining 9 members


Anthony (Y1), Calvin(Y1), David (Y1),
Same Committee as before


Billy (Y1), Mike (Y2), William (Y3)
Anthony (Y1), Billy (Y1), Calvin(Y1), David (Y1), Mike (Y2), William (Y3)
The same committee counted twice.

Not a bijection