I saw an example function for some unknown algorithm in a book that was explaining big theta/o/omega notation. I understand how it all works, but this example is throwing me off:
f(n) = 3n^2-2n-10
And what I'm wondering is this: What kind of operation could you possibly do that would produce a negative coeffecient? I can't think of any, but maybe I'm missing something. If someone could show me a bit of pseudo-code or something that would produce a negative coeffecient on the amount if time it takes to run as a function of the number of inputs it would make me sleep better tonight..thanks.
-Fredric