[英]Is log(n-f(n)) big theta of log(n)
The problem is that I need to know if log(nf(n))
is big theta of log(n)
, where f(n)
is a lower order function than n
, eg, log(n)
or sqrt(n)
. 问题是我需要知道
log(nf(n))
是否是log(n)
大θ,其中f(n)
是一个比n
低的函数,例如log(n)
或sqrt(n)
。
I tried to use some log rules and plotting seems to confirm the bound, but I can't get it exactly. 我尝试使用一些日志规则,并且绘图似乎确认了界限,但我无法准确获得它。
As f(n)
is a lower order function than n
, f(n) = o(n)
. 由于
f(n)
是一个比n
低的函数,因此f(n) = o(n)
。 Hence, no(n) < 2n
and n - o(n) = O(n)
. 因此,
no(n) < 2n
且n - o(n) = O(n)
。 Also, n - o(n) > n - 0.01 n <=> 0.01 n > o(n)
( 0.01
can be specified with the o(n)
). 同样,
n - o(n) > n - 0.01 n <=> 0.01 n > o(n)
( 0.01
可以由o(n)
指定)。 Therfore, n - o(n) = Omega(n)
, and no(n) = Theta(n)
. 因此,
n - o(n) = Omega(n)
, no(n) = Theta(n)
。
As log
function is an increasing function we can say log(no(n)) = Theta(log(n))
. 由于
log
函数是一个递增函数,我们可以说log(no(n)) = Theta(log(n))
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.