【发布时间】:2016-02-06 10:22:54
【问题描述】:
我有找到复杂性的主定理,但是 问题是 主定理说
表格重复
T(n) = aT(n/b) + f(n) where a >= 1 and b > 1
有以下三种情况: /******************logba 表示以 b 为基数的 a 的日志 ******************/
If f(n) = Θ(n^c) where c < Logba then T(n) = Θ(nLogba)If f(n) = Θ(n^c) where c = Logba then T(n) = Θ(ncLog n)If f(n) = Θ(n^c) where c > Logba then T(n) = Θ(f(n))
现在解决我的问题
T(n) = T(n/2) + n^2
我的解决方案 c = 2 和 logba = log 的 2 和 1 为 base = infinity
那么在哪种情况下它会下降,复杂性是多少
【问题讨论】:
-
这听起来像是一个理论上的 CS 问题 - 有一个单独的 stackexchange.com 网站。
-
这里 -> cs.stackexchange.com
标签: algorithm time-complexity master-theorem