Question: 2. Asymptotic Notation (8 points) Show the following using the definitions of O, , and . (1) (2 points) 2n 3 + n 2 +
2. Asymptotic Notation (8 points)
Show the following using the definitions of O, , and .
(1) (2 points) 2n 3 + n 2 + 4 (n 3 )
(2) (2 points) 3n 4 9n 2 + 4n (n 4 ) (Hint: careful with the negative number)
(3) (4 points) Suppose f(n) O(g1(n)) and f(n) O(g2(n)).
Which of the following are true? Justify your answers using the definition of O. Give a counter example if it is false.
(a) f(n) O( 5 g1(n) + 100 )
(b) f(n) O( g1(n) + g2(n) )
(c) f(n) O( g1(n) g2(n) )
(d) f(n) O( max(g1(n), g2(n)) )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
