Let f and g be functions from the set of integers or the set of
real numbers to the set of real numbers.
We say that
$f(x)$ is $O(g(x))$
if there are
constants C and k such that $|f(x)| \leq C|g(x)|$ whenever $x
> k$.
t := 0
for i := 1 to n
for j := 1 to n
t := t + i + j
t := 0
for i := 1 to n
for j := 1 to n
t := t + i + j