Exercises
Fun Class Activities:
- Find the smallest positive integer \( n \) such that \( 2^n > n^3 \).
- Compare the growth of \( f(n) = n \log n \) and \( g(n) = n^2 \). Which one grows faster as $n$ keeps growing?
- Determine whether \( f(n) = 5n^3 + 4n \log n \) is \( O(n^3) \), \( \Omega(n^3) \), or \( \Theta(n^3) \).
- Is it true that \( f(n) = n^4 \) is \( o(n^5) \)? Explain why or why not.
- Suppose \( f(n) = 3^n \) and \( g(n) = 2^n \). Is \( f(n) = O(g(n)) \)? Why or why not?
- Which of the following functions is asymptotically smallest?
- \( f_1(n) = \log n \)
- \( f_2(n) = n \)
- \( f_3(n) = n \log n \)
- \( f_4(n) = n^2 \)