This is for an assignment, but I'm having trouble with some basic examples.
I need to calculate the actual number of basic operations from the following algorithm and the big-o complexity:
A pretty simple little algorithm.
for i = 1..n
for j = 1..i
for k = 1..i
My basic idea is to set up a summation like this:
I guess first up, does this summation look correct, or am I waaay off. (I'm taking an algorithm course, but my discrete math is very fuzzy).
(I'll have follow ups on how to properly execute the summation, because I'm having some trouble with that as well. But no use continuing that if my summation is wrong to begin with.)