Hi all,
I'm trying to figure out the runtime complexity of an algorithm I
created. I narrowed the basic problem down to two nested sums.
However I need the Big O notation of this problem. I converted the
formula into the following nested loops. I have the feeling that
this problem is still squared. Can you please help me deriving the
Big O notation?
For(int j = 0; j =< N; j++){
For(int i = 1; i =< N-j; i++){
2*A*i;
}
}
A here is A constant factor.
many thanks
Rick