Ruminating on Constants in Big-O Notation

Let’s think about the constants hidden in the big-O notation.

When trying to understand the definition of the big-O notation, it is natural to ask questions regarding the constants hiddenhidden in the big-O notation.

Constants in big-O notation not unique

There are many legitimate values of nn' for which f(n)f(n) is O(g(n))O(g(n)), in the example shown below. We can use the slider to see some valid and invalid values of nn' (we show only integer values).

Get hands-on with 1400+ tech skills courses.