Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What is the big O of the following formulae respectively: 1 ) (n+7)(n-2) 2) 100n

ID: 3750638 • Letter: W

Question

What is the big O of the following formulae respectively:

1 ) (n+7)(n-2)

2) 100n+5

3) n log n + n!

4) 2+ 4 + 6 + 8 + ...+ 2n where n is a positive integer   

5) 1+ 3 + 5 + 7 + 9

a. Quadratic,Linear, Factorial, Quadratic,Constant

b. Factorial, Quadratic, Constant, Linear, Quadratic

c. Quadratic, linear, Constant, Quadratic, Linear

d. Quadratic, linear, Constant,Factorial, Quadratic

explain your answer

Explanation / Answer

1) (n+7)(n-2) => O(n^2) (so, it is Quadratic) 2) 100n+5 => O(n) (so, it is Linear) 3) n log n + n! => O(n!) (so, it is Factorial) 4) 2+ 4 + 6 + 8 + ...+ 2n where n is a positive integer => O(n^2) (so, it is Quadratic) 5) 1+ 3 + 5 + 7 + 9 => 25 = O(1) (so, it is Constant) So, answer is a. Quadratic,Linear, Factorial, Quadratic,Constant

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote