Question

In: Computer Science

Asymptotic Notation. (a) [10 pts.] Prove that n3 −91n2 −7n−14 = Ω(n3). Your answer must clearly...

Asymptotic Notation. (a) [10 pts.] Prove that n3 −91n2 −7n−14 = Ω(n3). Your answer must clearly specify the constants c and n0. (b) [10 pts.] Let g(n) = 27n2 +18n and let f(n) = 0.5n2−100. Find positive constants n0, c1 and c2 such that c1f(n) ≤ g(n) ≤ c2f(n) for all n ≥ n0. Be sure to explain how you arrived at the constants.

Solutions

Expert Solution

Asymptotic Notation. (a) [10 pts.] Prove that n3 −91n2 −7n−14 = Ω(n3). Your answer must clearly specify the constants c and n0. (b) [10 pts.] Let g(n) = 27n2 +18n and let f(n) = 0.5n2−100.

a) f(n) = Omega(g(n)) means there are positive constants c and n0, such that f(n) >= cg (n) for all n ≥ n0 n^3 - 91n^2 - 7n - 14 = Omega(n^3) => n^3 - 91n^2 - 7n - 14 >= c(n^3) Let's assume c = 0.5

=> n^3 - 91n^2 - 7n - 14 >= c(n^3)

=> n^3 - 91n^2 - 7n - 14 >= 0.5(n^3)

=> 0.5n^3 - 91n^2 - 7n - 14 >= 0

=> 0.5n^3 >= 91n^2 + 7n + 14

it's true for all n >= 183

so, n^3 - 91n^2 - 7n - 14 = Omega(n^3) for c = 0.5 and n0 = 183

b) c1(0.5n^2 - 100) <= 27n^2 + 18n <= c2(0.5n^2 - 100)

let's assume c1 = 1 and c2 = 56

=> c1(0.5n^2 - 100) <= 27n^2 + 18n <= c2(0.5n^2 - 100)

=> 1(0.5n^2 - 100) <= 27n^2 + 18n <= 56(0.5n^2 - 100)

=> 0.5n^2 - 100 <= 27n^2 + 18n <= 28n^2 - 5600

=> 0.5n^2 - 100 <= 27n^2 + 18n and 27n^2 + 18n <= 28n^2 - 5600

=> 0.5n^2 - 100 <= 27n^2 + 18n and 18n <= n^2 - 5600

it's true for all n >= 85 so, c1 = 1, c2 = 56 and n0 = 85


Related Solutions

a) Prove that n 3 − 91n 2 − 7n − 14 = Ω(n 3 )....
a) Prove that n 3 − 91n 2 − 7n − 14 = Ω(n 3 ). Your answer must clearly specify the constants c and n0. b) Let g(n) = 27n 2 + 18n and let f(n) = 0.5n 2 − 100. Find positive constants n0, c1 and c2 such that c1f(n) ≤ g(n) ≤ c2f(n) for all n ≥ n0. Be sure to explain how you arrived at the constants.
Using the definition of Θ notation, prove that (3n + 13)(7n + 2)(log(1024n2 + 100)) ∈...
Using the definition of Θ notation, prove that (3n + 13)(7n + 2)(log(1024n2 + 100)) ∈ Θ(n2logn).
Explain how to create a short synthetic put. You must prove your answer. please explain clearly
Explain how to create a short synthetic put. You must prove your answer. please explain clearly
12 pts) Use Mathematical Induction to prove that an=n3+5n is divisible by 6 when ever n≥0....
12 pts) Use Mathematical Induction to prove that an=n3+5n is divisible by 6 when ever n≥0. You may explicitly use without proof the fact that the product n(n+1) of consecutive integers n and n+1 is always even, that is, you must state where you use this fact in your proof.Write in complete sentences since this is an induction proof and not just a calculation. Hint:Look up Pascal’s triangle. (a) Verify the initial case n= 0. (b) State the induction hypothesis....
Directions: Complete the assignment. Clearly label each answer. Your answers for this assignment must include reasons;...
Directions: Complete the assignment. Clearly label each answer. Your answers for this assignment must include reasons; simply stating the answer without justification will earn partial credit. (32points) The gestation period of gray squirrels in captivity is listed as 44 days. It is recognized that the potential life span of animals is rarely attained in nature, but the gestation period could be either shorter or longer. Suppose the gestation period of a random sample of 49 squirrels living in the wild...
Clearly identify and discuss the entry strategy Starbucks has used internationally. In your answer, you must...
Clearly identify and discuss the entry strategy Starbucks has used internationally. In your answer, you must discuss and cite terms and concepts from Chapter 7. Should Tata Starbucks use a strategy that is modified for the Indian market or should it pursue the same strategy it has in all other international markets? Explain. In your answer, you must discuss and cite terms and concepts from Chapter 7. Discussing and citing terms from Chapter 5, discuss at least two forces in...
Show all work. Label and clearly explain your answer. This is very important. 1) You must...
Show all work. Label and clearly explain your answer. This is very important. 1) You must explain how you arrived at your answer in order to get full credit. 2) If you do show your work, and your answer is wrong, you can still earn a substantial amount of credit depending on how serious the error is. 3) If your answer is wrong, and you don't show your work, you will get a zero. a. Convert 3% simple monthly rate...
(1.62 × 107)÷ (4.36 × 10−1) answer has to be In scientific notation
(1.62 × 107)÷ (4.36 × 10−1) answer has to be In scientific notation
please, the answer must be in computer form because I cannot read handwriting clearly. and if...
please, the answer must be in computer form because I cannot read handwriting clearly. and if you can provide the link of the answer I will be so grateful to you What is the Ecological fallacy and provide one example?
Part A 24195Am→23793Np+_____ Express your answer in isotopic notation. Part B _____+0−1e→12655Cs Express your answer in...
Part A 24195Am→23793Np+_____ Express your answer in isotopic notation. Part B _____+0−1e→12655Cs Express your answer in isotopic notation. Part C 23793Np→_____+42He Express your answer in isotopic notation. Part D 21885At→_____+42He Express your answer in isotopic notation.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT