Question: 7) Time Complexity of a loop if the loop variables is reduced / increased by a sqrt amount as follows: Fun(int array A of
7) Time Complexity of a loop if the loop variables is reduced / increased by a sqrt amount as follows: Fun(int array A of size n) { for (int i = n; i>2; i = sqrt(i)) {//here sqrt means square root int a = i; } } Exact= Asymptotic =
Step by Step Solution
There are 3 Steps involved in it
In the given code snippet we see a function named Fun that receives an array A of size n There is a for loop that iterates starting with i n and then ... View full answer
Get step-by-step solutions from verified subject matter experts
