Question

show the following is a O(n^2) by supplying answers to the three steps below. f(n)=9n^2+4 1...

show the following is a O(n^2) by supplying answers to the three steps below.

f(n)=9n^2+4

1 setup the problem
2 isolate constant c
3 determine values for k and c that make this inequality bold

Homework Answers

Answer #1

Question:

Show the following is a O(n2) by supplying answers to the three steps below.

f(n)=9n2+4

1 setup the problem
2 isolate constant c
3 determine values for k and c that make this inequality bold

Answer:

Let f and g be functions from positive numbers to positive numbers. f(n) is O(g(n)) if there are positive constants C and k such that:

f(n) ≤ C.g(n) whenever n > k

Taking value of k = 1.

Assuming n >1,

Choose C = 13

Thus, 9n2+4 is O(n2) because 9n2+4 < 13n2 whenever n>1.

Consequently, we can take C = 13 and k = 1 as witnesses to show that f (n) is O(n2).

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Consider function f (n) = 3n^2 + 9n + 554. Prove f(n) = O(n^2) Prove that...
Consider function f (n) = 3n^2 + 9n + 554. Prove f(n) = O(n^2) Prove that f(n) = O(n^3)
Find the big-O, big-Omega of the following functions (show steps please) a) f(n) = 5n^2 +...
Find the big-O, big-Omega of the following functions (show steps please) a) f(n) = 5n^2 + 1 b) f(n)= (nlogn+1)*(n+1)
Find the f' (x) for the question below. show all the steps (a) ?(?) = ?^2...
Find the f' (x) for the question below. show all the steps (a) ?(?) = ?^2 − 4? (b) ?(?) = ???^2 (?) − ???^2 (?) (c) ?(?) = ? (d) ?(?) = ???^2 (?)+ ???^2(?) (e) ?(?) = 1/ (3 √?2)
Prove or disprove the following statement: 2^(n+k) is an element of O(2^n) for all constant integer...
Prove or disprove the following statement: 2^(n+k) is an element of O(2^n) for all constant integer values of k>0.
Show that 1^3 + 2^3 + 3^3 + ... + n^3 is O(n^4). The proof is
Show that 1^3 + 2^3 + 3^3 + ... + n^3 is O(n^4). The proof is
Problem #1. Solve the following recurrence exactly.                         9n^2 - 15n + 106        &nbs
Problem #1. Solve the following recurrence exactly.                         9n^2 - 15n + 106                    if n = 0, 1 or 2             t(n)=                         t(n-1) + 2t(n-2) - 2t(n-3)         otherwise Problem #2. Solve the following recurrence exactly.                         n                                              if n = 0, 1 2, or 3             t(n)=                         t(n-1) + t(n-3) - t(n-4)             otherwise Problem #3. Solve the following recurrence exactly.                         n + 1                                       if n = 0, or 1             t(n)=                         3t(n-1) - 2t(n-2) +...
b) Find the least integer n such that f(x) is O(x^n) for f(x) = (x^4+x^2+1)/( x^3...
b) Find the least integer n such that f(x) is O(x^n) for f(x) = (x^4+x^2+1)/( x^3 +1)
Master Theorem: Let T(n) = aT(n/b) + f(n) for some constants a ≥ 1, b >...
Master Theorem: Let T(n) = aT(n/b) + f(n) for some constants a ≥ 1, b > 1. (1). If f(n) = O(n logb a− ) for some constant > 0, then T(n) = Θ(n logb a ). (2). If f(n) = Θ(n logb a ), then T(n) = Θ(n logb a log n). (3). If f(n) = Ω(n logb a+ ) for some constant > 0, and af(n/b) ≤ cf(n) for some constant c < 1, for all large n,...
Find the Fourier Transform of the following, Show all steps: 1- f(x)=e^(-6x^2) 2- f(x) is 0...
Find the Fourier Transform of the following, Show all steps: 1- f(x)=e^(-6x^2) 2- f(x) is 0 for all x except 0≤x≤2 where f(x)=4
(Show all work!! Solve the?'s) Steps Use Eq. 7 from the theory section to solve for...
(Show all work!! Solve the?'s) Steps Use Eq. 7 from the theory section to solve for spring constant using the mass and period values you have filled into Table 2 Record the average spring constant value below Table 2 and use this value to fill the spring constant column in Table 3. Use Eq. 7 again to solve for “m” and determine the value of the unknown masses in Table 3. Eq 7:    k= 4π2  (m/T2) = Table 2: Determine Spring...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT