Back to the 2019 paper
Similar questions
Web TechnologyWrite a program in Java to do the following: (a) To swap the two numbers without using the third variable (b) Factorial of a number using recursion202014mDesign 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 & Analysis of AlgorithmsDiscuss the average, worst, and best time complexity of the algorithm. Give suitable examples.20237m