How should I pronounce the following things? (These are complexities of algorithms.)
- O(n)
- O(n*log(n))
- O(n^2)
|
How should I pronounce the following things? (These are complexities of algorithms.)
|
|||||||||||
|
|
Pronunciation would be:
|
|||||||||
|
|
In the talks I've seen that involve algorithm complexity, I've heard it most often pronounced "oh of n", "oh of n log n", etc. Mathematicians and CS theorists also use a lowercase o and a capital ϴ for similar measurements with slightly different implications. In this case O( n ) would be pronounced "big oh of n", o( n ) "little oh of n", and ϴ(n) "theta of n". |
||||
|
|
|
That is commonly referred to as Big O Notation, and since my days as a math/CS student I have always pronounced it (and heard it pronounced) as "Big O of n", "Big O of n log n", etc. |
|||
|
|
|
I think it's also common to just say "oh" followed by whatever is inside the parentheses. Examples:
|
|||
|
|