Question: 1 . By definition, show that 1 k + 2 k + + nk is O ( nk + 1 ) , where k is

1. By definition,
show that 1k +2k ++ nk is O(nk+1), where k is a positive integer. (20 points)
2. Order the following functions into a list such that if f (n) comes before g(n) in the list then
f (n)= O(g(n)). If any two (or more) of the same asymptotic order, indicate which. Start with these
basic functions (10 points)
n,2n, n lg n, n3, lg n, n n3+7n5, n2+ lg n
3. Find the solution for each of the following recurrences, and then give tight bounds for T(n).(30points)
a. T(n)= T(n 1)+1/n with T (0)=0
b. T(n)= T(n 1)+ cn with T (0)=0, where c >1 is some constant
c. T(n)= T(n 1)+1/n with T (0)=1
4. Use the master theorem to give tight asymptotic bounds for the following recurrences. (40 points)
a. T(n)=2T (n2)+ sqrt(n)
b. T(n)=3T (n2)+ cn
c. T(n)=27T (n3)+ cn3
d. T(n)=5T (n4)+ cn2
e.T(n)=2T (n4)+1(Bonus 10 points)
f. T(n)=2T (n4)+ sqrt(n)(Bonus 10 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!