您的位置:首页 > 其它

算法导论 Exercise 3.1-3

2011-02-18 20:21 225 查看
Explain why the statement, "The running time of algorithm A is at least O(n2)," is meaningless.

Let the running time be T (n). T (n) ≥ O(n2) means that T (n) ≥ f (n) for some
function f (n) in the set O(n2). This statement holds for any running time T (n),
since the function g(n) = 0 for all n is in O(n2), and running times are always
nonnegative. Thus, the statement tells us nothing about the running time.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: