2

I have a problem were I need to prove big theta. $f(n) = 2^{n+1} = Θ(2^n)$. I proved that this was true for big O but I'm not sure how to go about proving big Theta.

mrp
  • 5,086
John
  • 71

2 Answers2

3

You need to show that there are positive constants $c_1,c_2$ such that

$$c_1 2^n \le 2^{n + 1} \le c_2 2^n$$ for all [sufficiently large] $n$.

For the $O$ you already found the second. The first is rather easier, so I am confident you will make it with this info at hand.

quid
  • 42,135
2

An other way to see it, is to find the limit

$$\lim_{n \to +\infty} \frac{2^{n+1}}{2^n}=\lim_{n \to +\infty} \frac{2^n \cdot 2}{2^n}=\lim_{n \to +\infty} 2=2$$

It is known that if $\lim_{n \to +\infty} \frac{f(n)}{g(n)}=c \in \mathbb{R}$ then $f(n)=\Theta(g(n))$.

evinda
  • 7,823
  • Provided he really means $n \to \infty$, which he didn't say. I'm guessing (as you did) that this is what he means. – GEdgar Mar 07 '15 at 20:12