gpt4 book ai didi

algorithm - f(n) = Sigma of I*Log(I) ,其中 I=1 到 Log(n) ,等于什么?

转载 作者:塔克拉玛干 更新时间:2023-11-03 04:35:34 25 4
gpt4 key购买 nike

我正在尝试计算以下内容:

f(n) = ∑ (i*log(i))  , when i=1 to log(n) . 

我该怎么做?

我已经成功了:

f(n) = ∑ (i*log(i))  , when i=1 to n . 

这是:1*log(1) + 2*log(2) + ... + n*log(n) <= n(n*log(n))

到底在哪里:f(n) = ∑ (i*log(i)) = Ω(n^2 log^2(n) ) ( Where i=1 to n )

但是我不知道第一个怎么做,有人知道吗?

问候

最佳答案

首先,您必须从 log^2(n) 中删除 ^2,您当前的结果将是

f(n) = ∑ (i*log(i)) <= n(n*log(n)) = Ω(n^2*log(n))

然后,对于 i1log(n) 的情况,只需替换 n通过 log(n)

让我们定义

g(n) = ∑ (i*log(i)), when i=1 to log(n) // The result you are looking for
f(n) = ∑ (i*log(i)), when i=1 to n // The result we have

然后

g(n) = f(log(n)) = Ω(log(n)^2*log(log(n)))

关于algorithm - f(n) = Sigma of I*Log(I) ,其中 I=1 到 Log(n) ,等于什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9887246/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com