By summing the number of nodes across all levels, the total size of the tree is estimated. The video uses the finite geometric series example to show that the sum is dominated by the highest-order term.
Conditions: Time cost is measured by the number of recursive calls.; An upper bound estimation using a perfect binary tree is adopted.; The sum starts from with a common ratio of 2.
By summing the number of nodes across all levels, the total size of the tree is estimated. The video uses the finite geometric series example to show that the sum is dominated by the highest-order term.
Conditions: Time cost is measured by the number of recursive calls.; An upper bound estimation using a perfect binary tree is adopted.; The sum starts from with a common ratio of 2.