sailing

Everything...

recursion tree solution

In a recursion tree, each node represents teh cost of a single subproblem somewhere in the set of recursive function invocations. We sum the costs within each level of the tree to obtain a set of per-level costs, and then we sum all the per-level costs to determine the total cost of all levels of the recursion.

posted on 2007-02-08 23:57  乌生鱼汤  阅读(216)  评论(0编辑  收藏  举报

导航