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)
1. Test the series below for convergence using the Root Test. ∞∑n=1 (2n^2 / 9n+3)^n The...
1. Test the series below for convergence using the Root Test. ∞∑n=1 (2n^2 / 9n+3)^n The limit of the root test simplifies to limn→∞|f(n)|limn→∞|f(n)| where f(n)= 2. Test the series below for convergence using the Root Test. ∞∑n=1 (4n+4 / 5n+3)^n The limit of the root test simplifies to limn→∞|f(n)| where f(n)=   The limit is:
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
please show steps by steps so i can understand f (x) = (1/4)x^4-24x^2+1 (a) Find all...
please show steps by steps so i can understand f (x) = (1/4)x^4-24x^2+1 (a) Find all the open intervals on which f increases/decreases, and determine the relative extrema of f . (b) Find all the open intervals on which f is concave up (down). Then determine the x- coordinates of all inflection points of f . Provide details with step by step to justify your answers!
please show steps by steps so i can understand f (x) = (1/4)x^4-24x^2+1 (a) Find all...
please show steps by steps so i can understand f (x) = (1/4)x^4-24x^2+1 (a) Find all the open intervals on which f increases/decreases, and determine the relative extrema of f . (b) Find all the open intervals on which f is concave up (down). Then determine the x- coordinates of all inflection points of f . Provide details with step by step to justify your answers!
java data structure question - Consider the following recurrence function" f(1)=1; f(2)=2; f(3)=3; f(4)=2; f(5)=2 f(n)...
java data structure question - Consider the following recurrence function" f(1)=1; f(2)=2; f(3)=3; f(4)=2; f(5)=2 f(n) = 2 * f(n -1) + f(n – 5) for n >= 6 Write a program to demonstrate this recurrence relation (recursive method) and demonstrate it for the values n = 6, 7, 10, and 12; Create a second method that solves the same problem using an iterative solution. Modify your test program to show that both the recursive method and the iterative methods...
Solve the following recurrences: (a) T(n) = T(n=2) + O(n), with T(1) = 1. Solve this...
Solve the following recurrences: (a) T(n) = T(n=2) + O(n), with T(1) = 1. Solve this two times: one with the substitution method and one with the master theorem from CLRS. When you use the master theorem, carefully show the values for the parameters a; b. For the following cases you can use your preferred method. In either case, show your work: (b) T(n) = 2T(n/2) + O(1), T(1) = 1. (c) T(n) = 3T(n/2) + O(1), T(1) = 1....
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT