Question: 1 ) Consider a ) What does this algorithm compute? ( 1 0 points ) b ) What is the time complexity of this algorithm

1) Consider
a) What does this algorithm compute? (10 points)
b) What is the time complexity of this algorithm (apply the analysis framework)?(10 points)
1. Consider the following recursive algorithm
Set up a recurrence relation for the algorithms basic operation count and solve it. Finally analysis the time complexity of this algorithm by applying the analysis framework. (20 points)
1. Prove 12n(n-
3) Prove 12n(n-1)\Theta (n2).(Hint: prove it based on the formal definition of \Theta )(20 points
4)
Consider the following 20 functions
n 2n nlog(n)
n - n3+7n5 n2+ log(n) n2
n3 log(n) n!
ln(n)(1/3)n (3/2)n
6 ln2n 3
Log(n+1)1002n-12
(n-1)!3n
Group these functions so that f(n) and g(n) are in the same group if and only if f(n) O(g(n)) and g(n) O(f(n)). List the groups in increasing order. (20 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!