Can you tell me if this is correct, in regards to these big-Oh questions: f(n) is O(n(g)) f(n) <= c g(n) forall n >= n0 Show 7n-2 is O(n) Show 3n^3 + 20n^2 + 5 is O(n^3)
Can you tell me if this is correct, in regards to these big-Oh questions: f(n) is O(n(g)) f(n) <= c g(n) forall n >= n0 Show 7n-2 is O(n) Show 3n^3 + 20n^2 + 5 is O(n^3)
Related questions
Question
Can you tell me if this is correct, in regards to these big-Oh questions:
f(n) is O(n(g))
f(n) <= c g(n) forall n >= n0
Show 7n-2 is O(n)
Show 3n^3 + 20n^2 + 5 is O(n^3)
My answers:
1) c = 8, n0 = 1
7n-2 <= 8n
-2 <= n
2) c = 4, n0 = 1
3n^3 + 20n^2 + 5 <= 4n^3
5 <= n^3 - 20n^2
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps
