您的位置:首页 > 编程语言 > Go语言

Algorithm_Big-O_notation_&_OMEGA

2013-04-15 12:33 295 查看
f(n) and g(n): the running times of two algorithm on inputs of size n.

Let f(n) and g(n) be functions from positive integers to positive reals.

f=O(g) (which means that
"f grows no faster than g") if there is a constant c > 0 such that f(n)≤c·g(n).

g=Ω(f) means f=O(g)

f=Θ(g) means f=O(g) and g=O(f).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: