• Kogasa@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    O notation has a precise definition. A function f : N -> R+ is said to be O(g(x)) (for some g : N -> R) if there exists a constant c so that f(n) <= cg(n) for all sufficiently large n. If f is bounded, then f is O(1).