- #1
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 [tex] n^3 [/tex]or [tex] n^4 [/tex] ? Thank you!
Homework Equations
[tex] \sum_{j=3}^{n} \left[(j-1)[2(j-2)-1] + \sum_{i=2}^{j-2}(i) +
\sum_{k=2}^{j-2}\left[k(j-(k+1))+\sum_{i=k}^{j-2}(i)\right]\right] [/tex]
The Attempt at a Solution
I run 1000 numbers and apparently it is bounded by [tex] n^3 [/tex].
Last edited by a moderator: