I know this isn't strictly a programming question, but it is a computer science question so I'm hoping someone can help me.
I've been working on my Algorithms homework and figuring out the Big-Oh, Big-Omega, Theta, etc, of several algorithms. I'm proving them by finding their C and N0 values and all is going well.
However, I've come across my last two problems in the set and I'm struggling figuring out how to do them (and google isn't helping much).
I haven't had to figure out the Big-Oh/Omega of summations before.
My last two problems are:
- Show that Σ (i=1 to n) of i2 is O(N3)
and
- Show that Σ (i=1 to n) of [log2i] is Ω(n log n)
My question is, How do I show that?
For example, in the first one, intuitively I can't see how that summation of i2 is O(N3). The second one confuses me even more. Can someone explain how to show the Big-Oh and and Big-Omega of these summations?