Back to the 2020 paper
Similar questions
Design & Analysis of AlgorithmsDiscuss the steps in mathematical analysis for recursive algorithm. Do the same for finding the factorial of a number?20197mDesign and Analysis of Algorithms Write a short note on: Recursion tree method20257mDesign & Analysis of AlgorithmsWrite time function and calculate the time complexity, space complexity and number of function calls of the following pseudocode using substitution method: ``c rec(n) { if (n <= 1) return(1); else { rec(n / 2); for (i = 1; i <= n; i++) printf("algorithm"); } } ``20227mDesign and Analysis of Algorithms Solve the following recurrence by successive substitution method: f(1) = 1 \quad \text{if } n=1 f(n) = 3f(n/2) + 6 \quad \text{if } n > 120227m