recurrence maths

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-05-02T13:21:38Z Indexed on 2010/05/02 13:27 UTC
Read the original article Hit count: 472

Filed under:
|
|

Hi all!

I have the following:

                      T(n) <= c floor(n/2) + c ceiling(n/2) + 1 
                           = cn + 1
                      T(n) = O(n)

I don't understand how it gets from the first equation to the second equation? What part of the maths am I missing to understand how this comes to be? Is it done using 'Simplifying Equations' or some other rules?

Can someone help me?

© Stack Overflow or respective owner

Related posts about recurrence

Related posts about algorithm