Reputation: 431
Does log(n^c)=O(log(n)) such that c is a constant?
log(n^c)=O(log(n))
I think this is true as log(n^c)/log(n)<=C2
log(n^c)/log(n)<=C2
so c<=C2. Is this true? If not what is true?
c<=C2
Upvotes: 3
Views: 393
Reputation: 222461
Yes, because you can convert it to
Upvotes: 6
Reputation: 142
log(n^c)=clog(n)
log(n^c)/log(n)=c(log(n)/log(n))=c
Upvotes: 2