The statement as means there are constants and such that
The same constant must work for all sufficiently large inputs. Near a finite limit point , replace by within the domain. Absolute values allow signed or complex-valued functions; when discussing nonnegative operation counts they can be omitted.
The notation records an upper bound, not an exact leading coefficient or necessarily a tight growth order. For example, because for it is at most . It is also , a weaker statement. A tight comparison uses big theta notation; a ratio tending to one uses asymptotic equivalence. Formally denotes a class of functions, and writing is conventional shorthand for membership in that class. [ref]
Figure 1.
Constants affect finite comparisons while normalized ratios expose eventual growth
. Details.
The first panel compares stipulated operation counts and . Although is linear and quadratic, for ; the ordering reverses beyond their crossing. These are mathematical cost models, not measured runtimes. The time complexity notation describes the growth of whichever cost function has been specified, whether that function represents a worst-case bound, an average, or another explicit quantity.
The middle panel gives a concrete eventual bound: for every . Its normalized ratio approaches one, but the threshold matters. The final panel shows the asymptotic comparison of exponential functions, with its geometrically shrinking relative difference.
Constants may depend on fixed parameters. For each fixed , is with ; one constant cannot cover every positive . A uniform big O bound makes this extra quantifier explicit.
The notation was already used in nineteenth-century number theory. In his 1976 paper, Donald E. Knuth reports Landau identifying Bachmann's 1894 book as the first appearance of known to him. Knuth's account gives the earlier mathematical setting of a notation now also common in time complexity analysis. [ref]
From and one cannot generally deduce . For , and , the two premises hold, but the ratio of the compositions is , which is unbounded. A constant scaling of an inner argument can change the growth order after an exponential function is applied.
Let , with everywhere. An eventual bound can be made valid for all natural numbers by enlarging to the maximum of itself and the finitely many ratios before its cutoff. Conversely, a global bound is an eventual bound. Nonvanishing on the finite prefix is essential: , , and for give an eventual bound but no global one. The useful principle is that finitely many finite ratios cannot destroy a big O notation.
For real-valued functions on the natural numbers, means that constants and satisfy for every . This is an eventual lower bound on magnitude. In algorithm analysis the functions are usually nonnegative, so the absolute values can be omitted. Together with the upper bound of big O notation, it gives big theta notation. This is the algorithmic lower-bound convention for , rather than a convention expressing only a positive limit superior along a subsequence.
Every fixed power is eventually smaller than an exponential function with base : for a fixed nonnegative integer , . To prove this, the ratio of successive terms is , so after finitely many terms the ratio is bounded by a fixed . A geometric series bound then proves the limit. In particular in big O notation.
When is nonzero sufficiently near the specified limit, little o notation means
Thus the numerator becomes negligible relative to the denominator's scale. As , because ; as , because . The direction of the limit changes the comparison. [ref]
Equivalently, for every , the bound holds sufficiently near that limit, with a threshold allowed to depend on . Big O notation needs only one fixed multiplier, making it weaker. For example, but is not . The useful relation turns asymptotic equivalence into a statement about a negligible remainder.
At the specified limit, big theta notation means that two positive constants give both-sided bounds:
sufficiently near the limit. Equivalently, and in big O notation. In operation-count analysis, for , using and . This supplies a tight scale without asserting that the normalized ratio tends to one.
For an example with no limiting ratio, let for positive integers . Then , so , but alternates between one and three. A tight growth order is therefore weaker than asymptotic equivalence. The constant bounds also do not fix an exact factor by which a function changes when its argument doubles.
Donald E. Knuth's 1976 paper proposes using for two-sided constant bounds in algorithm analysis. He credits Bob Tarjan and Mike Paterson with independently suggesting the notation. His discussion gives a concrete motivation for distinguishing an eventual upper estimate from a tight comparison. [ref]
A uniform big O bound for a family of functions uses one multiplier and one threshold for every allowed parameter:
The order of the quantifiers matters. For , admits and , while the unbounded family admits no such constant. Each individual member nevertheless satisfies . A uniform bound is useful when an approximation must work across a whole parameter range, rather than separately for each fixed parameter.

Ancestors (5)

  1. Real analysis
  2. Analysis
  3. Area of mathematics
  4. Mathematics
  5. Home

Discussion (0) New discussion

There are no discussions about this article yet.

Articles by others on the same topic (2)

Big O notation is a mathematical concept used to describe the performance or complexity of an algorithm in terms of time or space requirements as the input size grows. It provides a high-level understanding of how the runtime or space requirements of an algorithm scale with increasing input sizes, allowing for a general comparison between different algorithms. In Big O notation, we express the upper bound of an algorithm's growth rate, ignoring constant factors and lower-order terms.
Big O notation by Ciro Santilli 40 Updated 2025-07-16
Module bound above, possibly multiplied by a constant:
is defined as:
E.g.:
  • . For , is enough. Otherwise, any will do, the bottom line will always catch up to the top one eventually.