less than 1 minute read

参考:


fO(g) says, essentially:

  • For at least one choice of a constant k>0, a constant a such that the inequality f(x)<kg(x) holds x>a.

fo(g) says, essentially:

  • For every choice of a constant k>0, a constant a such that the inequality f(x)<kg(x) holds x>a.

fO(g) means that f’s asymptotic growth is no faster than g’s, whereas fo(g) means that f’s asymptotic growth is strictly slower than g’s. It’s like versus <.

E.g.

  • x2O(x2)
  • x2o(x2)
  • x2o(x3)

Note that if fo(g), this implies fO(g).

Note that we can also write f(x)=O(g(n)) equivalently to f(x)O(g(n)), where = represents “is” not “equals to”.


Digress: Big-Omega vs Little-Omega

  • f(n)O(g(n))g(n)Ω(f(n))
  • f(n)o(ϕ(n))ϕ(n)ω(f(n))

Categories:

Updated:

Comments