NOTE: We are not to use proofs (limits, induction, or otherwise) in this problem.
We were to prove the upper bound for the Fibonacci recursion is some exponential. The Fibonacci recurrence relation is given as T(n) = T(n-1) + T(n-2) + 1. Can someone please explain the recursive substitution happening here:
Prove T(n) = O(α^n).
α^n = α^(n-1) + α^(n-2) + 1
α^2 = α + 1 + 1/(α^(n-1))
α^2 = α + 1
α = 1.618 (approx.)
T(n) is interchangeable.
O(n) = 1.6^n
And how is this proving the upper bound, Big O, for that recursion? We are supposed to prove that the upper bound for T(n)=T(n/2) + 1 is O(log n).
in Fibonacci sequence, we know that
$$a_n={\frac { \left( \sqrt {5}+1 \right) ^{n}+ \left( 1-\sqrt {5} \right) ^ {n}}{{2}^{n}}}$$
now, $O(a_n) = O\left({\frac { \left( \sqrt {5}+1 \right) ^{n}}{{2}^{n}}} \right)$
$=O((1.62)^n)$ (Rounding off to 2 decimal places)
Infact you can write this as
$= O(2^n)$