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)

icon
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
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Fast Fourier Transform Concepts
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, data-structures-and-algorithms and related others by exploring similar questions and additional content below.