Page 40, Exercise 1

1. Show that the following statements are correct:
(a) 5n2 − 6n = θ(n2) Sincen 2 is the leading exponent this is correct.
(b) n! = O(nn) n! is the leading exponent and its time is a non-deterministic polynomial, so this is correct.
(c) n2+ n log n = θ(n2 ) n2 is the leading exponent.
(f) n2n + 6 . 2n = θ(n2n) n2n is the leading exponent.
(g) n2 + 103n2 = θ(n3) Since 103 is a constant and the time is based on the leading exponent for the variable, this should be n2.
(h) 6n3 / (log n + 1) = O(n3) n3 is the leading exponent.
(i) n1.001 + n log n = θ(n1.001 ) This is debatable because n logn actually grows at a faster rate than n raised to 1.0001 except for n < 2.
(j) nk + n + nklog n = θ(nklogn) for all k ≥ 1. nklogn grows at a faster rate.
(k) 10n3 + 15n4 +100n22n = O(n22n) n22nis the leading exponent.