What is the recurrence equation for this function?
i <- n
while ( i > 1){
j <- i
while ( j < n){
k <- 0
while (k < n){
k = k +2;
}
j <- j * 2;
}
i <- i / 2;
}
I guess, T(n) =T(n^2/4) + 2/n. or T(n) = M*T(n^2/4) + 2/n
Am I right to guess?
I think something's gonna have to come to M, but I'm not sure.