gpt4 book ai didi

algorithm - Big O 规则 - 问题

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

如果我有以下递归关系的封闭形式解决方案,我如何在大 O 下简化它:

f(n) = 3^n + n.9^n

我会冒险猜测:

f(n) 是 O(9^n) 的成员 -> 我不确定这是否正确?有人可以让我知道如何在大 O 下简化上述等式,并说明您使用的规则...

提前致谢

最佳答案

http://en.wikipedia.org/wiki/Big_O_notation

If f(x) is a sum of several terms, the one with the largest growth rate is kept, and all others omitted.

所以 O(n * 9^n),假设 n.9^n 你的意思是 n * 9^n

关于algorithm - Big O 规则 - 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5701654/

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