Top "Recurrence" questions

A recurrence relation is an equation that recursively defines a sequence, once one or more initial terms are given: each further term of the sequence is defined as a function of the preceding terms.

solving T(n) = 2T(n/2) + log n

I am trying to solve T(n) = 2T(n/2) + log n substituted n = 2^k T(2^k) = 2T(2^(k-1)) + k T(2^…

divide-and-conquer recurrence
Django - How to run a function EVERYDAY?

I want to run this function everyday midnight to check expiry_date_notification. what can I do? I'm new to …

django date notifications recurrence django-timezone
General proof strategies to show correctness of recursive functions?

I'm wondering if there exists any rule/scheme of proceeding with proving algorithm correctness? For example we have a function $…

algorithm math recurrence proof
How do I use Master theorem to describe recursion?

Recently I have been studying recursion; how to write it, analyze it, etc. I have thought for a while that …

recursion recurrence master-theorem
Solve recurrence: T(n) = T(n^(1/2)) + Θ(lg lg n)

Started learning algorithms. I understand how to find theta-notation from a 'regular recurrence' like T(n) = Tf(n) + g(n). …

algorithm math recurrence big-theta
How can I compute the number of characters required to turn a string into a palindrome?

I recently found a contest problem that asks you to compute the minimum number of characters that must be inserted (…

algorithm math dynamic-programming recurrence