~/ learn/ comp-372/ cards/ Asymptotic notation: Θ, O, Ω (and o, ω)
1 of 4

Type the formal definition of O(g(n)) (CLRS form)

Type the formal definition of O(g(n)) (CLRS form)

Answer

0 <= f(n) <= c * g(n) for all n >= n0

Read it as: there exist positive constants c and n0 so that f never exceeds c*g once n is large enough. The Ω definition flips the middle inequality: c*g(n) <= f(n).

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/7fcd80fc-f820-47ce-85a1-c27b9665f9a2/flashcard utf-8 LF