简体   繁体   English

无法定义增长率顺序

[英]Can't define growth rate order

I have 2 functions, C(n) and A(n) 我有2个函数,C(n)和A(n)

在此处输入图片说明

I do not know why A(n) is slower than C(n) because higher growth rate means slower runtime. 我不知道为什么A(n)比C(n)慢,因为更高的增长率意味着运行时间更慢。

From my perspective, they both have root on numerator. 从我的角度来看,它们都扎根于分子。 However, A(n) is divided by logn, which means it should be less than root n. 但是,A(n)除以logn,这意味着它应小于根n。 Thus whole A(n) becomes faster than C(n) since C(n) still has root n (even though it is n^1/3 but still has root) and is not divided by anything. 因此,整个A(n)变得比C(n)快,因为C(n)仍然具有根n(即使它是n ^ 1/3但仍然具有根),并且不除以任何东西。

Is there very simplest way to define growth rate order? 有没有最简单的方法来定义增长率顺序?

Thank you very much if you can explain why A(n) is slower than C(n). 如果您能解释为什么A(n)比C(n)慢,则非常感谢。

Both C(n) and A(n) have roots in the numerator, but they are different roots. C(n)A(n)在分子中都有根,但是它们是不同的根。 In C(n) it is a cube root and in A(n) it is a square root . C(n)它是立方根 ;在A(n)它是平方根 Another way to write them would be: 编写它们的另一种方法是:

C(n) = Θ(n ^ (1/3))

and

A(n) = Θ(n ^ (1/2) / some-log-term)

Now it is clear that 1/3 < 1/2 and therefore with n large enough n^(1/3) is much less than n^(1/2) (and n^(1/2)/some-log-term too). 现在很明显, 1/3 < 1/2 ,因此,当n足够大时, n^(1/3)远小于n^(1/2)n^(1/2)/some-log-term )。 In fact A(n) is arbitrarily larger which means C(n) << A(n) 实际上A(n)任意大,这意味着C(n) << A(n)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM