190 likes | 279 Views
Chapter 7. Generating Function and Applications. 7.2 Generating Function. Definition of Generating Function G(x): e.g. vs. e.g. 1.2. e.g. 1.4 =?. e.g. 2.2 (NCKU) Show that Constant term is. Considering constant term is.
E N D
Chapter 7 Generating Function and Applications
e.g. 1.4 =?
e.g. 2.2 (NCKU) Show that Constant term is
Considering constant term is
Example 1 Solve with and . From and , we have From , we have
From original recurrence and boundary conditions, we further have
We have Final solution is
Reading Assignment: Solve nonhomogeneous recurrence By using generating function.
Example 4 Given n nodes, how many rooted binary trees that we can build up? When n=5, there are five trees.
Recurrence: We still need the boundary conditions: , , and
We have and It yields to