1,352 views
6 votes
6 votes

Which of the following statements is/are TRUE?
I. The time complexity of recurrence relation A(n) = 3A(n/2)+ n2 is asymptotically faster than T(n) = 4T(n/2)+ n2.

II. The time complexity of recurrence relation A(n) = 512 A(n/2) + O(n50) is asymptotically faster than T(n) = 7T(n-53) + O(1), T(0) = 1.

Please explain what is mean by asymptotically faster?

3 Answers

1 votes
1 votes
I)  O(n^2) < O( n^2 log n)  so option is correct

II) O( 7 ^ n/53) < O(n ^50)  is correct but given is reverse

hence option 1 is correct
1 votes
1 votes
Solution: Both the statements are true.

   Explanation: Here, Asymptotically faster means, time should be less but not more.

                       Statement-1:$ O(n^2)$ is lesser than$ O( n^2 log n). $So, statement-1 correct.

                        Statement-2: $O( 7 ^ n) $It is exponential. So, $O(n ^{50}) $is definitely lesser than $O( 7 ^ n)$
reshown by

Related questions

0 votes
0 votes
0 answers
1
–1 votes
–1 votes
0 answers
2
sumit_kumar asked Jul 3, 2017
217 views
1 votes
1 votes
0 answers
3
syncronizing asked Mar 15, 2019
1,315 views
Is this the correct way to solve ?Q) int algorithm(int n){ int sum =0;k,j; for (k=0;k<n/2;k++) for(j=0;j<10;j++) sum++; return 4*algorithm(n/2)*algorit...
1 votes
1 votes
1 answer
4
VikramRB asked Jan 20, 2019
1,048 views
What is the time complexity of the following recurrence relation and step to derive the same$T(n) = T(\sqrt{n}) + log(logn)$