Question

Analysing Asymptotic Bounds (Marks: 3) Prove the following using the definition of asymptotic order notation. Example:...

Analysing Asymptotic Bounds (Marks: 3)

Prove the following using the definition of asymptotic order notation.

Example: 15n 3 + 10n 2 + 20 ∈ O(n3 )

Hint: Consider C = 15 + 10 + 20 = 45 and n0 := 1. Then 0 ≤ 12n 3 + 11n 2 + 10 ≤ Cn3 for all n ≥ n0.

a) n 2 + 3n 2 /(2+cos(n)) ∈ O(n 2 )

b) 2n 2 (log n) ∈ Ω(n(log n) 2 )

c) 10n 2/(n − 10) ∈ Θ(n)

Homework Answers

Answer #1

a) T(n) = n 2 + 3n 2 /(2+cos(n))

Consider maximum possible value of T(n)

n 2 + 3n 2 /(2+cos(n)) <= n 2 + 3n 2 /(2) <= 2.5 n2

So for C = 2.5 and n0 = 1

0 <= n 2 + 3n 2 /(2+cos(n)) <= Cn2 for all n>= n0

Hence T(n) =O(n2)

=========================

b)

T(n) = 2n 2 (log n)

We know that n>=logn for all n>=1

Multiplying both side by 2nlogn

2n 2 (log n) >= 2n(log n) 2 >=0 for all n>=1

Hence for C =2 and n0 = 1 we have

2n 2 (log n) >= 2n(log n) 2 >=0 for all n>=1

Hence T(n) =  Ω(n(log n) 2 )

===============================

c)

T(n) = 10n 2/(n − 10)

Let n0 = 11, Then

10n 2/(n − 10) >= 10n 2/(n)

10n 2/(n − 10) >= 10 n

Also we have,

10n 2/(n − 10) <= 11 *( 10n 2/n )

Because n-10 >= n/11 for all n>=11

Hence

10n 2/(n − 10) <= 110 n

So we have c1 = 10 and c2 = 110 such that

10n <= 10n 2/(n − 10) <= 110n for all n>= n0 where n0 = 11

Hence T(n) =  Θ(n)

=========================

Please upvote.

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
Analysing Algorithmic Efficiency (Marks: 3) Analyze the following code fragment and provide an asymptotic (Θ) bound...
Analysing Algorithmic Efficiency (Marks: 3) Analyze the following code fragment and provide an asymptotic (Θ) bound on the running time as a function of n. You do not need to give a formal proof, but you should justify your answer. 1: foo ← 0 2: for i ← 0 to 2n 2 do 3: foo ← foo × 4 4: for j ← 1396 to 2020 do 5: for k ← 4i to 6i do 6: foo ← foo ×...
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)).
Given the following list of functions, determine the order of growth of each using big-Theta notation...
Given the following list of functions, determine the order of growth of each using big-Theta notation and put all the functions in order from slowest-growing to fastest-growing. Be sure to put functions of equal growth rate on the same level. Unless otherwise noted, you can assume all logarithms are base-2. 6nlog(2n)+8n 4n2log(log(8n))+8n2+n 500 n3+7nlog(n2) + 4n 2n+2n+1 log(4n2)+3n+1 12 8log(24n)+10 8n2log(5n2)+7n+200 4log(n3)+1000 100log(16n)log(n6)+23 8nlog(log(n4))+6n+32 9log(log(8n))
1.Let f and g be two functions such that f(n)/g(n) converges to a positive value less...
1.Let f and g be two functions such that f(n)/g(n) converges to a positive value less than 1 as n tends to infinity. Which of the following is necessarily true? Select one: a. g(n)=Ω(f(n)) b. f(n)=Ω(g(n)) c. f(n)=O(g(n)) d. g(n)=O(f(n)) e. All of the answers 2. If T(n)=n+23 log(2n) where the base of the log is 2, then which of the following is true: Select one: a. T(n)=θ(n^2) b. T(n)=θ(n) c. T(n)=θ(n^3) d. T(n)=θ(3^n) 3. Let f and g be...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT