I am try to find the solution to the recurrence T(n) = T (n-1) + T(n/2) + 1
Whats I have done:
T(n) = 2T(n-1 + n/2) + 1
T(n) = 2T(2n/2 - 2/2 + n/2) +1
T(n) = 2 T((3n - 1)/2) +1
if U(X) = T(x/3 + 1) then:
U(X) = 2U(x/2)
U(X) = x
T(n) = 3(N - 1) + 1
This makes any sense ?
Edit: The context is computer science, so when you divide n/2 and n odd you get the next inferior natural number (e.g 1/2 -> 0)
If $T(1) \geq 0$ then $T(n) \geq 0$ for all $n$ and thus $T(n) \geq T(n-1)$ for all $n$. This gives $$T(n) \geq 2T(\lfloor n/2 \rfloor) \geq 2^{\lfloor \log_2 n \rfloor} T(1)$$ and $$T(n) \leq 2 T(n-1) \leq 2^{n-1} T(1).$$ Based on the plot of the values of $T(n)$, it looks like $T(n)$ has superlinear growth.
– Antonio Vargas Nov 28 '12 at 03:22