- #1
lemonthree
- 51
- 0
I am having trouble solving part 2, for
$ W_{\frac{n(n+1)}{2}} \leq 2^{n} (n-1) + 1 , n \geq 0 $
I know that $W_{m} \leq 2*W_{m-k} + 2^{k} – 1, 0 \leq k \leq m$
Let $m = \frac{n(n+1)}{2}$
So now $W_{\frac{n(n+1)}{2}} \leq 2*W_{\frac{n(n+1)}{2} - k} + 2^{k} - 1, 0 \leq k \leq \frac{n(n+1)}{2}$
Let k = n (just a hunch, I can't really explain why except that because the equation has an n inside)
$W_{\frac{n(n+1)}{2}} \leq 2*W_{\frac{n(n-1)}{2}} + 2^{n} – 1$
From here, I'm not very sure, just trying to manipulate and force things in
$W_{\frac{n(n+1)}{2}} -1 \leq 2*W_{\frac{n(n-1)}{2}} + 2^{n} – 2$
And I'm lost. I tried letting $W_{\frac{n(n+1)}{2}} -1$ be $Q_{n}$ and manipulating from there such that
$Q_{n} \leq 2*Q_{n-1} + 2^{n}$ but to no avail.
So I re-worked everything and tried mathematical induction too, which I also ended up getting stuck halfway.
I think my working here is closer to the answer (and also less tedious than the induction), so I am posting this instead. Please, if there is any guidance at all, I would really appreciate it.