Another way of doing big O notation
alok.github.io·4d
Flag this post

I had a fun talk about this with an interviewer once when they asked me about the runtime complexity of some algorithm.

Let (f) and (g) be eventually positive functions from (\mathbb{R}_{\ge 0}) to (\mathbb{R}_{>0}). Pick an unlimited hypernatural (H\in{}^*\mathbb{N}\setminus\mathbb{N}) (we write (H\gg 1) for short), and consider the ratio

[R(H);=;\frac{ {}*f(H) }{ {}*g(H) }.]

Then the big O relations become simple checks on (R(H)), where we require that the condition holds for every unlimited (H):

We have (f\in O(g)) if and only if there exists a standard constant (C>0) such that (R(H)\le C). In math: (f\in O(g)\ \iff\ \exists\ \text{standard } C>0:\ R(H)\le C.)

We have (f\in \Omega(g)) if and on…

Similar Posts

Loading similar posts...