recurrence solution, too loose a bound?

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-05-02T09:23:39Z Indexed on 2010/05/02 9:27 UTC
Read the original article Hit count: 411

Filed under:
|

I have the following worked out:

T(n) = T(n - 1) + n = O(n^2)

Now when I work this out I find that the bound is very loose. Have I done something wrong or is it just that way?

© Stack Overflow or respective owner

Related posts about recurrence

Related posts about big-o