Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . ( 1 2 pts ) Use the substitution method to show that each of the following recurrences defined has the asymptotic solution specified:

1.(12 pts) Use the substitution method to show that each of the following recurrences defined has
the asymptotic solution specified:
a. T(n)= T(n-1)+ n has solution T(n)= O(n2).
b. T(n)= T(n/2)+\Theta (1) has solution T(n)= O (lg n).
c. T(n)=2T(n/2)+ n has solution T(n)=\Theta (n lg n).
d. T(n)=2T (n/2+17)+ n has solution T(n)= O (n lg n).
e. T(n)=2T(n/3)+\Theta (n) has solution T(n)=\Theta (n).
f. T(n)=4T(n/2)+\Theta (n) has solution T(n)=\Theta (n2).
2.(8 pts) For each of the following recurrences, sketch its recursion tree, and guess a good
asymptotic upper bound on its solution. Use the substitution method to verify your answer.
a. T(n)= T(n/2)+ n3
b. T(n)=4T(n/3)+ n.
c. T(n)=4T(n/2)+ n.
d. T(n)=3T(n-1)+1.
3.(10 pts) Use the master method to give tight asymptotic bounds for the following recurrences.
a. T(n)=2T(n/4)+1.
b. T(n)=2T(n/4)+.
c. T(n)=2T(n/4)+ lg2 n.
d. T(n)=2T(n/4)+ n.
e. T(n)=2T(n/4)+ n2.
4.(12 pt) Give the asymptotically tight upper and lower bounds for T(n) in each of the following
algorithmic recurrences. Justify your answers.
a. T(n)=2T(n/2)+ n3
b. T(n)= T(8n/11)+ n.
c. T(n)=16T(n/4)+ n2.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Generative Artificial Intelligence For Project Management With Aws

Authors: Timothy Krimmel

1st Edition

B0CQV9KWB8, 979-8872627197

More Books

Students also viewed these Databases questions

Question

3. Create the categories or equal intervals in an ascending order.

Answered: 1 week ago