Big Oh Notation - formal definition

后端 未结 5 1510
耶瑟儿~
耶瑟儿~ 2020-12-19 05:39

I\'m reading a textbook right now for my Java III class. We\'re reading about Big-Oh and I\'m a little confused by its formal definition.

Formal Definition: \"A func

5条回答
  •  悲哀的现实
    2020-12-19 06:27

    Formal definition:

    • f(n) = O(g(n)) means there exist c > 0 and n0 such that for any n >= n0 f(n) <= c*g(n)
    • f(n) = o(g(n)) means for any c > 0 there exist n0 such that for any n >= n0 f(n) <= c*g(n)

    As you can note there are slightly different :)

提交回复
热议问题