for i <--- 1 step i <--- 2* i while i< n do
for j <--- 1 step j <---2* j while j<n do
if j = 2*i
for k = 0 step k <--- k+ 1 while k < n do
.... CONSTANT NUMBER OF ELEMENTARY OPERATIONS
end for
else
for k<--- 1 step k<-- 3*k while k<n do
...CONSTANT NUBER OF ELEMENTARY OPERATIONS
end for
end if
end for
end for
What is the running time for the following code fragment as a function of n?
The 'exact answer' refers to the equation relating to the code BEFORE you determine the asymptotic running time.