#9 Example: cn2
how much faster on twice as fast computer? (2)
how much longer for 2n? (4)
#15 Examples:
10n is O(n2)
since 10n ≤ 10n2 for n ≥ 1 or 10n ≤ n2 for n ≥ 10
c n0
5n+20 is O(10n)
since 5n+20 ≤ 10 n for n ≥ 4
c n0
#33 Note the difference between the two recurrences. Students often confuse these!
F(n) = F(n-1) n
F(0) = 1
for the values of n!
------------
M(n) =M(n-1) + 1
M(0) = 0
for the number of multiplications made by this algorithm