edited by
522 views
0 votes
0 votes
f(n)= n^0.0000001

g(n)=lg n(base 2)

Is g(n)=O(f(n))...?

For the large values of n

n= 10^8   f(n)= 1.0000018 , g(n)=26.565

n=10^10  f(n)=1.0000023,   g(n)=33.21

So I am getting f(n)=O(g(n))...

Can anyone please explain why g(n)=O(f(n))....?
edited by

1 Answer

0 votes
0 votes

There is no limit on a large value being considered. 

f(n)= n^0.0000001 = n^(10^-7)
g(n)=lg n(base 2)

n= 10^8   f(n)= 1.000001842 , g(n)=26.565

Now, I take n = 10^(10^8)

f(n) = n^(10^-7) = (10^(10^8))^(10^-7) = 10^(10^(8-7)) = 10^10
g(n) = 10^8 log10 2

So, f(n) becomes larger. Thus for any x, we can have an n, where nx becomes larger than log n and stays larger from there on wards for any higher n. 

edited by

Related questions

597
views
1 answers
1 votes
Sajal Mallick asked Nov 28, 2023
597 views
Consider the problem that given a set Sof n integers and another integer x, whether or not there exist two elements in S whose sum is exactly x. What is the worst case ti...
210
views
0 answers
0 votes
312
views
1 answers
0 votes
NeelParekh asked Jul 27, 2023
312 views
If an array is split in the form of increasing and decreasing order then what is TC to find minimum element in the array?
492
views
1 answers
2 votes
h4kr asked Dec 30, 2022
492 views
What is the correct time complexity in $\theta()$ ?