0

I need some help with the following recursion:

$T\left(n\right)=T\left(\log_{2}n\right)+O\left(\sqrt{n}\right)$

More specifically I wish to find and prove the upper bound on it.

I have a hunch it is $O\left(\sqrt{n}\right)$ but have gotten stuck proving it really is this.

Any help is appreciated

Thank you!

Raphael
  • 72,336
  • 29
  • 179
  • 389
user475680
  • 175
  • 1
  • 5
  • Also on math.se: http://math.stackexchange.com/questions/1000901/proving-a-recurrence-relation-by-induction, where I'm giving an outline for a formal proof. – Yuval Filmus Nov 02 '14 at 17:16

1 Answers1

0

By simple substitution, you can see that $T(n) = O(\sqrt{n}) + O(\sqrt{\log n}) + O(\sqrt{\log\log n}) + \dots = O(\sqrt{n})$.

David Richerby
  • 81,689
  • 26
  • 141
  • 235