Back to the 2022 paper

Module 1: Introduction and Complexity Analysis

20227m

Calculate the time complexity of the following problem using divide and conquer strategies:
(i) T(n)=nT(n)+n,n>2T(n) = \sqrt{n} \cdot T(\sqrt{n}) + n, \quad n > 2
(ii) T(n)=T(n1)+1/n,n>1T(n) = T(n-1) + 1/n, \quad n > 1

Similar questions