-
Notifications
You must be signed in to change notification settings - Fork 0
Computational Symbols
Matt Dickenson edited this page Jan 24, 2015
·
1 revision
O ("big-oh", "capital O"); ASCII: 79
, Unicode: U+004F
, HTML: O
- Big-Oh notation (computational complexity):
O(f(x))
denotes the asymptotic upper-bound on the runtime of functionf(x)
, typically expressed in terms of the sizen
of the inputx
. For example, ifx
containsn
elements and the worst-case runtime off(x)
is linear in the size ofx
, thenO(f(x)) = n
. If the worst-case runtime off(x)
is quadratic in the size ofx
, thenO(f(x)) = n^2
(n
-squared). [ref]
Ω ("omega", aka "weird O"); ASCII: 937
, Unicode: U+03A9
, HTML: Ω
- Omega notation (computational complexity):
Ω(f(x))
denotes the asymptotic lower-bound on the runtime of functionf(x)
, typically expressed in terms of the sizen
of the inputx
. For example, ifx
containsn
elements and the best-case runtime off(x)
is linear in the size ofx
, thenΩ(f(x)) = n
. [ref]
Θ ("theta", aka "O with line"); ASCII: 920
, Unicode: U+0398
, HTML: Θ
- Theta notation (computational complexity):
Θ(f(x))
denotes a tight bound on the asymptotic runtime of functionf(x)
, typically expressed in terms of the sizen
of the inputx
. For example, ifx
containsn
elements and the exact runtime (up to a constant factor) off(x)
is linear in the size ofx
, thenΘ(f(x)) = n
. [ref]