Reducing the size: recurrences and generating functions
Turning 'what to split on' into something you can run.
延伸阅读
Split on the last step
Chapter 3's act was to fix on a particular element. In problems carrying an order, the most useful 'particular element' is usually the last step: climbing to stair , the last stride was either one step or two, the two classes are disjoint and exhaust the whole, and the addition principle hands you a recurrence. The first mechanism of this chapter is that one sentence: change what you split on and you change the recurrence.
Pack the sequence into a series
Having a recurrence you still have to solve it. Write the whole sequence as a generating function and the recurrence becomes an algebraic equation in that function; solve and expand and the closed form falls out. Its value is not that it is faster but that it replaces an act needing inspiration — finding the closed form — with a procedure you can follow.
From recurrence to closed form: the Catalan case
What is being proved is the Catalan recurrence and its closed form, with each step's class marked.
The boundary of this chapter's claims
The 'split on the last step' commitment as a testable specification
The modelling commitment under test: a real recursive structure has a unique decomposition, so splitting on the last step neither over- nor under-counts.