This file makes the finite-sum core of the CLRS recursion-tree method explicit.
Main results:
Theorem CLRS.Chapter04.recursion_tree_additive_unroll: an additive
one-step recurrence is exactly the base value plus the sum of level costs.
Theorem CLRS.Chapter04.recursion_tree_additive_upper_envelope: if each
level cost is bounded by an envelope, the whole tree is bounded by the sum of
the envelope.
Theorem CLRS.Chapter04.recursion_tree_constant_level_cost: constant
level costs give the usual linear closed form.
Current gaps:
This is the finite linearized core of the recursion-tree method. Branching
recurrences such as T(n) = aT(n/b) + f(n) should instantiate it after
grouping each depth of the recursion tree into one level-cost function.
namespaceCLRSnamespaceChapter04
Unroll an additive recurrence into the sum of its level costs.
simp[sum_range_succ,add_assoc]
If every level cost is bounded by an envelope, then the unrolled recursion tree
is bounded by the sum of that envelope.