190 likes | 284 Vues
Learn about generating functions, including definition and applications in solving recurrences and combinatorial counting. Example problems and solutions provided. Reading assignments for further practice included.
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