For the following algorithm, the function base() is to be considered the basic operation. The size of the input is given by n. Perform a worst-case analysis:
for(i = 0; i < n; i++)
for(j = 0; j <= n; j++)
for(k = i; k <= i*i; k++)
if(condition(i,j,k))
b[i][k] = base(b[i][j])
else
b[i][k] = b[j][k]
Could anyone guide me through solving this? I'm new to this topic and struggling to find a coherant example online.