Naive recursion is highly inefficient because it generates exponentially many repeated subproblems. When visualized as a recursion tree, identical nodes such as , , and are triggered multiple times by different parent nodes, meaning the same calculations are redundantly executed across different branches.
Conditions: The algorithm uses naive recursion without memoization.; The recurrence relation is .
Naive recursion is highly inefficient because it generates exponentially many repeated subproblems. When visualized as a recursion tree, identical nodes such as , , and are triggered multiple times by different parent nodes, meaning the same calculations are redundantly executed across different branches.
Conditions: The algorithm uses naive recursion without memoization.; The recurrence relation is .