Jump to content
Urch Forums

Recurrence


samlai

Recommended Posts

Originally posted by samlai

 

Hi, can someone post a good link or a short tutorial on how to do recurrence problems (question 58 and 67 on practice test)

 

This one is good for simple T(n) = aT(n/b) + f(n) recurrences:

 

http://www.cs.duke.edu/~mlittman/courses/Archive/cps130-97/lectures/lect04/node33.html

 

Here's one for general recurrences:

 

http://www.csee.umbc.edu/~tadwhite/203.s00/recur.pdf

 

 

The specific T(n) = aT(n/b) + lg(n) type problem is covered in Cormen and Rivest.

 

Any problem with T(n) = T(n-k) + T(n/b) has exponential growth.

Any problem with T(n) = T(n-k) + O(n^p) has O(n^(p+1)) growth.

Any problem with T(n) = aT(n/b) + O(1) has O(a^lg(n base b)) growth.

 

I think that's right. Please correct me, folks, if this is wrong.

 

 

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...