[Math] Using the master theorem/master method when $f(n) = 0$

asymptoticsrecurrence-relations

I'm trying to find a solution to the recurrence $T(n)=3T(\frac{n}{2})$ with the master theorem for divide-and-conquer recurrences, but I'm not sure which case I can apply since $f(n) = 0$.

If you can use the master theorem, I'm leaning towards $T(n)=\Theta(n^{\log_2{3}})$, since $0 \leq n^{\log_2{3}}$. But I'm hung up on a few particular definitions.

  1. Is it true that $0=O(n^{\log_2{3}})$? What would be the values of $c$ and $n_0$ such that $\exists c>0,n_0> 0:f(n) \leq cn^{\log_2{3}}, \forall n \geq n_0$?

  2. Is zero asymptotically smaller than $n^{\log_2{3}}$ by a factor of $n^\epsilon, \epsilon > 0$?

In general, I'm asking if lacking a $f(n)$ makes the master theorem not applicable and why?

Best Answer

I assume by $f(n)$, you mean your recurrence relation to be of the form $$ T(n)=aT\left(\frac{n}{b}\right)+f(n), $$ so that in this case you have $a=3$, $b=2$, and $f(n)=0$ for all $n$.

That being the case: yes, $f(n)=0$ is perfectly acceptable.

To answer your more specific questions:

  1. Yes, $0=O(n^{\log_2(3)})$. Take absolutely any $n_0\in\mathbb{N}$ and any $c>0$, and it is true that $0\leq cn^{\log_2(3)}$ for all $n\geq n_0$. Remember, Big-O just represents asymptotic upper bounds; of course something that goes to infinity is an upper bound, in the limit, for $0$.

  2. Yes, $0$ is 'asymptotically smaller' than $n^{\log_2(3)}$. Take absolutely any $\epsilon\in(0, \log_2(3))$, and it is true that $0=O(n^{\epsilon})$.

The Master Theorem is perfectly applicable in this situation, and it shows that your $T(n)$ satisfies $T(n)=\Theta(n^{\log_2(3)})$.