pandrade
- 4
- 0
Homework Statement
I have found the complexity of an algorithm as the expression below. How can I find the complexity in big O notation for such expression? Or proved that it's bounded by n^3or n^4 ? Thank you!
Homework Equations
\sum_{j=3}^{n} \left[(j-1)[2(j-2)-1] + \sum_{i=2}^{j-2}(i) + <br /> \sum_{k=2}^{j-2}\left[k(j-(k+1))+\sum_{i=k}^{j-2}(i)\right]\right]
The Attempt at a Solution
I run 1000 numbers and apparently it is bounded by n^3.
Last edited by a moderator: