本文共 476 字,大约阅读时间需要 1 分钟。
There are there main methods to solve this problem.
1.1 guess the form of solution,
the recursion-tree method can help to get a good guess 1.2 use mathematical induction to find the constants and show that the solution works
2. The recursion-tree method 2.1 compute the height of the tree
2.2 compute the number of leaf nodes
2.3 sum all levels up, using the
sum of infinite decreasing geometric series to help solving, i.e. 1/(1-q)