Let f(n) and g(n) be two functions defined on the set of the positive real numbers, c, c1, c2, n0 are positive real constants.

Notation | f(n) = O(g(n)) | f(n) = Ω(g(n)) | f(n) = Θ(g(n)) | f(n) = o(g(n)) | f(n) = ω(g(n)) | —— | —— | —— | —— | —— | —— | Formal definition | ∃ c > 0, ∃ n0 > 0 : ∀ n ≥ n0, 0 ≤ f(n) ≤ c g(n) | ∃ c > 0, ∃ n0 > 0 : ∀ n ≥ n0, 0 ≤ c g(n) ≤ f(n) | ∃ c1, c2 > 0, ∃ n0 > 0 : ∀ n ≥ n0, 0 ≤ c1 g(n) ≤ f(n) ≤ c2 g(n) | ∀ c > 0, ∃ n0 > 0 : ∀ n ≥ n0, 0 ≤ f(n) < c g(n) | ∀ c > 0, ∃ n0 > 0 : ∀ n ≥ n0, 0 ≤ c g(n) < f(n) | Analogy between the asymptotic comparison of f, g and real numbers a, b | a ≤ b | a ≥ b | a = b | a < b | a > b | Example | 7n + 10 = O(n^2 + n - 9) | n^3 - 34 = Ω(10n^2 - 7n + 1) | 1/2 n^2 - 7n = Θ(n^2) | 5n^2 = o(n^3) | 7n^2 = ω(n) | Graphic interpretation | | | | | |

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c32cdaed-70ae-4cd5-b3fb-c82b239109b6/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a8cd0e10-196e-42aa-9b42-585c8921b666/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/aa0c54c3-dca8-4a5b-9062-de231dfc6e29/Untitled.png

The asymptotic notations can be represented on a Venn diagram as follows:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6620c9e6-114d-466a-ac79-c9535e6406bd/Untitled.png

Links

Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, Clifford Stein. Introduction to Algorithms.