Question

Prove that 5n^2 − 2n + 16 is not O(n) using the definition of big-O. Note:...

Prove that 5n^2 − 2n + 16 is not O(n) using the definition of big-O. Note: This requires a proof by contradiction.

Homework Answers

Answer #1
let's assume that 5n^2 − 2n + 16 = O(n)

f(n) = O(g(n)) means there are positive constants c and n0, such that 0 ≤ f(n) ≤ cg(n) for all n ≥ n0

5n^2 − 2n + 16 = O(n)
=>  5n^2 − 2n + 16 <= c(n)
=>  5n^2+16 <= (c+2)n
=>  5n^2 <= (c+2)n
=>  5n <= (c+2)
=>  5n-2 <= c
for it to be true c must be >= 5n-2. so, c here is not a constant. since it depends on n.
hence this is proved wrong.

so, by proof of contradiction, 5n^2 − 2n + 16 is not O(n)
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
Prove using the definition of O-notation that 2^(n+2)∈O(2^(2n)), but 2^(2n)∉O(2^(n+2)).
Prove using the definition of O-notation that 2^(n+2)∈O(2^(2n)), but 2^(2n)∉O(2^(n+2)).
Prove, using the definition of Big-Oh that r + 3 is O(r2) r + 3 is...
Prove, using the definition of Big-Oh that r + 3 is O(r2) r + 3 is O(r) Experimentally (use charts to) analyze the runtime of an algorithm which performs T(w) operations when the input to the algorithm is size w. Hint: chart it against 2n. T(0) = T(1) = 3 T(a) = 2*T(a-2)+T(a-1) use big-oh proof
Please note n's are superscripted. (a) Use mathematical induction to prove that 2n+1 + 3n+1 ≤...
Please note n's are superscripted. (a) Use mathematical induction to prove that 2n+1 + 3n+1 ≤ 2 · 4n for all integers n ≥ 3. (b) Let f(n) = 2n+1 + 3n+1 and g(n) = 4n. Using the inequality from part (a) prove that f(n) = O(g(n)). You need to give a rigorous proof derived directly from the definition of O-notation, without using any theorems from class. (First, give a complete statement of the definition. Next, show how f(n) =...
Given T(n)= T(n-1) + 2*n, using the substitution method prove that its big O for T(n)...
Given T(n)= T(n-1) + 2*n, using the substitution method prove that its big O for T(n) is O(n^2). 1. You must provide full proof. 2. Determine the value or the range of C.
Use mathematical induction to prove that for each integer n ≥ 4, 5n ≥ 2 2n+1...
Use mathematical induction to prove that for each integer n ≥ 4, 5n ≥ 2 2n+1 + 100.
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)
Let f,g be positive real-valued functions. Use the definition of big-O to prove: If f(n) is...
Let f,g be positive real-valued functions. Use the definition of big-O to prove: If f(n) is O(g(n)), then f2(n)+f4(n) is O(g2(n)+g4(n)).
(Note: "O" stands for Big O notation) prove mathematically that if a Turing Machine runs in...
(Note: "O" stands for Big O notation) prove mathematically that if a Turing Machine runs in time O(k(n)), then it runs in time O(h(k(n)) +c), for any constant c ≥ 0 and any functions k(n) and h(n) where h(n) ≥ n.
Let n be an integer. Prove that if n is a perfect square (see below for...
Let n be an integer. Prove that if n is a perfect square (see below for the definition) then n + 2 is not a perfect square. (Use contradiction) Definition : An integer n is a perfect square if there is an integer b such that a = b 2 . Example of perfect squares are : 1 = (1)2 , 4 = 22 , 9 = 32 , 16, · · Use Contradiction proof method
For all natural numbers n ≥ 4, 2n ≤ n!. Proof. We have 24 = 16...
For all natural numbers n ≥ 4, 2n ≤ n!. Proof. We have 24 = 16 and 4! = 24, so the statement is true for n = 4. Assume that 2n < n! for some n. Then 2n+1 =2(2n)<2(n!)≤(n+1)(n!)=(n+1)! so 2n+1 < (n + 1)!. Thus, by the PMI, the statement is true for all n ≥ 4. This proof is incorrect. How do you prove it the correct way? The formula of the proof was said to be...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT