Some Math Notes

 

Growth of functions:

              Let f(n) and g(n) be functions.

· If lim f(n)/g(n) = oo then g(n) is O(f(n)) i.e. f(n) grows faster

· If lim f(n)/g(n) = 0 then f(n) is O(g(n)) i.e. g(n) grows faster

· If lim f(n)/g(n) = c, where 0 < c < oo,  then f(n) and g(n) grow at the same rate.

Formulas:

Running Time of Program Segments

Recurrence Relations

      All of the following have a base case of T(0) = a.

All of the following have a base case of T(1) = a.