Download presentation
Presentation is loading. Please wait.
Published byMaximilian Mathews Modified over 8 years ago
2
Polynomials Count! CS 15-251 Lecture 9 X1 X1 X2 X2 + + X3 X3
3
Review: the binomial formula
4
Review: The multinomial formula
5
Representation: Understand the relationship between different representations of the same information or idea 1 2 3
6
“Closed form” or “Generating form” or “Generating function” “Power series” (“Taylor series”) expansion The binomial formula gives two representations of the same function:
7
By playing these two representations against each other we obtain a new representation of a previous insight: Let x=1. We find that The number of subsets of an n-element set There are 2 n subsets of an n element set.
8
Let x= -1. We find that …or equivalently, that By by setting x to –1 we obtain a new insight: The number of even sized subsets of an n element set is the same as the number of odd sized subsets.
9
More odds and evens Let O n be the set of`binary strings of length n with an odd number of ones. Let E n be the set of`binary strings of length n with an even number of ones. We have just presented an algebraic proof that O n = E n An elegant combinatorial proof can be had by putting O n and E n in one-to-one correspondence. The correspondence principle says that if two sets can be placed in one-to-one correspondence, then they are the same size!
10
An attempt at a correspondence Let f n be the function that takes an n-bit string and flips all its bits....but do even n work? In f 6 we have 110011 001100 101010 010101 Uh oh. Complementing maps evens to evens! f n is clearly a one-to-one and onto function for odd n. E.g. in f 7 we have 0010011 1101100 1001101 0110010
11
A correspondence that works for all n Let f n be the function that takes an n-bit string and flips only the first bit. For example, 0010011 1010011 1001101 0001101 110011 010011 101010 001010 Check : 1. f n : O n E n ? 2. f n is one-to-one? i.e. x y f n (x) f n (y) 3. f n is onto? i.e. for all y E n, there exists an x O n such that f n (x)=y there exists an x O n such that f n (x)=y
12
What is the coefficient of BA 3 N 2 in the expansion of (B + A + N) 6 ? The number of ways to rearrange the letters in the word BANANA. Keeping counts in coefficients
13
How many integer solutions to the following equations? k items n -1 breakpoints ///////
15
We obtain x k for each way of choosing a power of x from each of n expressions in such a way that the exponents sum to k, i.e., once for each solution to
16
The coefficient of x k in (1-x) -n = The # of solutions to
17
The fact that the manipulation of polynomial equations can encode the same theorems that are proved by combinatorial reasoning is very significant! Never underestimate the insights encoded into the coefficients of a polynomial!
18
Recall the Fibonacci sequence
19
How did I do that?
20
You could give the generating function to a good calculus student and ask for the power series expansion. Using the method of partial fractions, the student would discover:
21
The “method of generating functions” is so powerful that it can solve: Most recurrences Most sums Most of the neat math facts that we have ever seen Generating-Functionology by Herbert S. Wilf (Academic Press) Is HIGHLY recommended!
22
Getting to know the binomial coefficients… Three binomial identities we that have seen: 1. 2. 3.
23
By convention: (empty product = 1)
24
An important identity:
25
How to count pathways Meandering in a nameless modern metropolis Scenario: You’re in a city where all the streets, numbered 0 through x, run north-south, and all the avenues, numbered 0 through y, run east-west. How many [sensible] ways are there to walk from the corner of 0th St. and 0th avenue to the opposite corner of the city? 0 y x 0
26
Meandering in a nameless modern metropolis All paths require exactly x+y steps: All paths require exactly x+y steps: x steps east, y steps north x steps east, y steps north Counting paths is the same as counting which of the x+y steps are northward steps: Counting paths is the same as counting which of the x+y steps are northward steps: 1 y x 0 0 (i,j) Now, what if we add the constraint that the path must go through a certain intersection, call it (i,j)?
27
An important identity for binomial coefficients Graphical intuition: Let n=x+y be the total steps needed in the city walk problem, and let k=y be the number of northward steps. There are two cases for the very last step taken.
28
Manhattan Level n 0 1 3 4 2...................................... k’th Avenue 0 1 2 3 4
29
..... level n k’th Avenue 1 1 1 1 1 1 1 1 1 1 1 3 2 3 4 4 6 15 6 6 5 5 10 15 20
30
..... level n k’th Avenue 1 1 1 1 1 1 1 1 1 1 1 3 2 3 4 4 6 15 6 6 5 5 10 15 20
31
..... level n k’th Avenue 1 1 1 1 1 1 1 1 1 1 1 3 2 3 4 4 6 15 6 6 5 5 10 15 20
32
..... level n k’th Avenue 1 1 1 1 1 1 1 1 1 1 1 3 2 3 4 4 6 15 6 6 5 5 10 15 20
33
“Pascal’s Triangle” Chu Shin-Chieh 1303 The Precious Mirror of the Four Elements... Known in Europe by 1529 Blaise Pascal 1654
34
Pascal’s Triangle 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 “It is extraordinary how fertile in properties the triangle is. everyone can try his hand.”
35
Summing the rows… gives us powers of 2 1 1 + 1 1 + 2 + 1 1 + 3 + 3 + 1 1 + 4 + 6 + 4 + 1 1 + 5 + 10 + 10 + 5 + 1 1 + 6 + 15 + 20 + 15 + 6 + 1 =1=2=4=8=16=32=64
36
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 6+20+6 1+15+15+1=
37
Summing the diagonals… yields Little Gauss’s formula and more! 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1
38
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 =2 =5 =13 =3 =8
39
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 2 2 2 2 2 2 2
40
Application:
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.