Overview

The running time of an algorithm is usually considered as a function of its input size. How input size is measured depends on the problem at hand. For instance, sorting algorithms have an input size corresponding to the number of elements to sort.

When encountering equations with asymptotic notation on both sides of the equality, we interpret the equation using the following rule:

No matter how the anonymous functions are chosen on the left of the equal sign, there is a way to choose the anonymous functions on the right of the equal sign to make the equation valid.

For example, states that for all , there exists some such that .

Θ-notation

-notation refers to a strict lower- and upper-bound. It is defined as set

-notation

-notation refers to a strict upper-bound. It is defined as set

-notation

-notation refers to an upper bound that is not asymptotically tight. It is defined as set

Ω-notation

-notation refers to a strict lower-bound. It is defined as set

ω-notation

-notation refers to a lower bound that is not asymptotically tight. It is defined as set

Bibliography

  • Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).