Show that n1000000 O1000001n based on the formal definition
Solution
1. n1000000 = O(1.000001n)
Let us find the breakeven point n0 . Point where both the functions T(n) and f(n) are equal.
Now when can n1000000 = 1.000001n = > Take Log both the sides
1000000 log n0 = n0 log 1.000001
=> (log n0) / n0 = 1.000001 / 1000000
=> (log n0) = n0 *(1.000001 / 1000000)
Take derivatives boith the sides [log n derivative is 1/n and n is 1]
1/ n0 = (1.000001 / 1000000)
So n0 = 1000000/1.000001
So Breakeven Point is found i.e At this point both T(n) and f(n) are same.
So Let c be 1000000/1.000000 , decreasing the denominator increases its values and its more than n0
Hence Now cf(n) >= T(n) for all n>=n0
n1000000 = c * (1.000001n )
where c = 1000000/1.000000 = 1000000 ,
Therefore we can say that n1000000 = O(1.000001n) for any n >= n0 i.e n >= 1000000/1.000001
Hence Proved.
Let me know if there is any concern.
![Show that n^1000000 = O(1.000001^n) based on the formal definition of big-0 (see below). Defintion [Asymptotic upper bound] We say T(n) = O(f(n)) if there exis Show that n^1000000 = O(1.000001^n) based on the formal definition of big-0 (see below). Defintion [Asymptotic upper bound] We say T(n) = O(f(n)) if there exis](/WebImages/42/show-that-n1000000-o1000001n-based-on-the-formal-definition-1130968-1761604176-0.webp)