A recursion tree records recursive calls as nodes and their direct recursive subcalls as children. Its node labels can record the work done outside those subcalls. Summing the work over levels or charging it to nodes proves a total running time bound. For , level has approximately instances of size , so its nonrecursive work is . Summing those quantities explains the cases of the master theorem.
If , the displayed identity expresses the decrease of the potential across a split. Here is the binary entropy function. If every split fraction stays in for a fixed , the potential decreases by at least . Consequently, for a recurrence relation with linear work at each split, the inductive hypothesis closes when and covers the base cases. This is a proof by the substitution method for a recurrence of an time complexity bound without requiring equal subproblem sizes.

Articles by others on the same topic (0)

There are currently no matching articles.