So I have an algorithm that goes like this:
for i=0:360
C...
for j=0:a_j[i]
C...
for t=0:a_t[i][j]
C...
end
end
end
So I have three loops but both inner loops depend on the value of the outer loops. How can I measure its Big O notation complexity?
Also what if I have memory asignments between these loops? Are they counted as Cs?
a_janda_tare.for i = 0 to 360; for j = 0 to i; for t = 0 to j;, then complexity isO(n ^ 3).n?