Recently I came across the fact that the recurrence relation
$$T_1(n) = T_1(n-1) + T_1(n-2)$$
has the time complexity of $O(2^n)$, despite the fact that the recursion tree is not full binary tree as in case of $T_2(n) = 2\times T_2(n-1)$
Now I have come across two more recurrences:
- $T_3(n)=2T_3(n/2) + n$
- $T_4(n) =T_4(n/5) + T_4(7n/10) + n$
The recursion tree of first one forms complete binary tree, while that of 2nd dont. So I thought both will have same time complexity as in case of $T_1$ and $T_2$. But that was not the case. 1st recurrence have time complexity of $O(n \log{n})$ and second, $O(n)$!
Why is it so? Is it because, the difference between the rate at which branches of recursion tree of $T_1$ which terminate early and which terminate late is not much, but in $T_4$ the difference is more?
The first recurrence you are quoting is the Fibonacci recurrence, it's solution is exponential, but not $2^n$ (although it is $O(2^n)$).
As for the actual question, the coefficient in front of the recurrence has a lot of meaning. The main features you need to pay attention to are
Have you seen the Master Theorem yet?