Prove 2^sqrt(log(n))= O(n^a)

Posted by user1830621 on Stack Overflow See other posts from Stack Overflow or by user1830621
Published on 2012-11-16T22:53:28Z Indexed on 2012/11/16 22:59 UTC
Read the original article Hit count: 96

I posted a question similar to this earlier, although it seemed like it was much easier.

I know the underlying principle of Big-O notation says that to prove that 2^sqrt(log(n)) is O(n^a), there must exist a positive value c for which c(n^a) >= 2^sqrt(log(n)) for all values n >= N.

c*n^a >= 2^sqrt(log(n))
c >= 2^sqrt(log(n)) / n^a

This number will always be positive so long as n > 0. I suppose I could make N = 1 just to be safe.

c = 2^sqrt(log(n)) / n^a
N = 1
c*n^a = 2^sqrt(log(n) <= 2^log(n) for all values of n >= 1

Now, I know this is incorrect, because I could just as easily claim that the function 2^sqrt(log(n)) is O(n)...

© Stack Overflow or respective owner

Related posts about complexity

Related posts about asymptotic-complexity