Other proofs are short and pleasant, but here is a more detailed proof in order to proceed to the definitions of large designations and the calculation of the necessary limits.
The function g(n)
bounded at the top by another function f(n)
with a large O ( g(n) = O(f(n))
), if it contains ( source )
Insert functions and we need to calculate
First, a little algebraic massage on the term g(n)
. By root identities, it contains sqrt(n) = n^(1/2)
. In addition, it has the value (x^a)^b = x^(a*b)
. Wherein:
In addition, 2^n
is exp(log( 2^n ))
by logarithmic identities, and then log(a^b) = b*log(a)
we have 2^n = exp(log( 2^n )) = exp(n * log(2))
. The same can be applied to n^(1/2 sqrt(n))
, it becomes exp(log( n^(1/2 sqrt(n)) = exp(1/2*sqrt(n)*log(n))
. So now we have
At this point, we can compare the growth of indicators, i.e. compare
This limit is 0 because const * n
grows faster than sqrt(n)*log(n)
. This, in turn, can be shown that the calculation of the limit is explicit. Put 1/2 and log2
in the counter. Since n = sqrt(n) * sqrt(n)
, we can simplify it:
This limit is indeed zero, because squareroot is growing faster than the logarithm of Orders for common functions . Thus, the indicator of the lower function grows faster than the indicator of the upper function. Thus, g(n) = O(2^n)
strictly proved by the first theorem.
source share