CS311 -- Discrete Structures ----Spring 2001

Big-O Examples

Big-O notation is used to classify running-time functions. If f(n) is O(g(n)) then, informally, f(n) is within a constant factor of g(n).

Definition Let f(n) and g(n) be two functions on positive integers. We say f(n) is O(g(n)) if there exist two positive constants c and k such that f(n) <= cg(n) for all n >= k.