Short answer
The O is read as “order,” as in the order of growth. The idea traces to the German word Ordnung, meaning order, which Paul Bachmann used when he described how one function’s size compares with another’s. The notation tells you how a function’s growth is bounded.
Where the notation came from
- 1894: Paul Bachmann introduced the notation in the second volume of Analytische Zahlentheorie, a book on analytic number theory, to describe how a function grows.
- 1909: Edmund Landau used the notation in his work on the distribution of prime numbers and gave it a formal definition.
- 1970s: Donald Knuth brought the notation into computer science. He pointed out that the letter is technically the Greek letter omicron.
What the O means in a formula
You will usually see Big O written as f(n) = O(g(n)). It says that, for large enough n, the function f(n) is at most some constant multiple of g(n). The constant can be any fixed number, which is why constant factors are dropped.
For example, 3n² + 5n is O(n²). For n of at least 5, 5n is no more than n², so 3n² + 5n is at most 4n². The n² term sets the growth, so the notation keeps it and drops the rest.
Related symbols
Big O is one of a family of notations:
- Big Omega (Ω) gives a lower bound: growth that is at least some constant multiple of g(n).
- Big Theta (Θ) gives a tight bound, when f(n) is both O(g(n)) and Ω(g(n)).
In everyday use, people often write O when they mean the tighter Θ, so it helps to know which bound a source intends.
Does computer science use discrete math?
Readers who ask “Does computer science use discrete math?” may notice that this notation came from number theory, which is part of discrete mathematics. In computer science it is now a basic tool for comparing algorithms.
Summary
The O in Big O is read as order, tracing to the German Ordnung. The notation describes how a function’s growth is bounded, ignoring constant factors and smaller terms.