Course Solutions Uncategorized (Solved) : Find Asymptotic Bound Following Function Int N Int 0 0 J J 2 2 B Function Int N N Q34234185 . . . .

(Solved) : Find Asymptotic Bound Following Function Int N Int 0 0 J J 2 2 B Function Int N N Q34234185 . . . .

 

find asymptotic bound for the following:

a) function(int n) {

int i=0;

while(i<n)

{ int j=n;

while(j > 0)

j = j/2;

i = 2*i

}

}

b) function(int n) {

if(n <= 1) return;

for(int i=1; i <=n; i++)

printf(“*”);

function(0.8n);

}

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post