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.

Cron job run every x weeks and on specific days

I want to create a cron job that runs every x weeks and on a specific weekdays. for example: run …

cron crontab scheduler recurrence
How to solve the recurrence T(n) = 2T(n^(1/2)) + log n?

I am trying to find the time complexity for the recurrence: T(n) = 2T(n1/2) + log n I am pretty …

math logarithm recurrence
Solving the recurrence T(n) = T(n/2) + lg n?

I am having some issues on how to solve recurrence relations. T(n) = T(n/2) + log2(n), T(1) = 1, where n …

algorithm math big-o recurrence master-theorem
Running Time of GCD Function Recursively (Euclid Algorithm)

I have only been able to find posts about how to implement the gcd function both recursively and iteratively, however …

c runtime time-complexity recurrence greatest-common-divisor
Can someone help solve this recurrence relation?

T(n) = 2T(n/2) + 0(1) T(n) = T(sqrt(n)) + 0(1) In the first one I use substitution method for n, logn, …

algorithm math time-complexity recurrence
Recurrence Relation

Why is the recurrence relation of recursive factorial algorithm this? T(n)=1 for n=0 T(n)=1+T(n-1) for n&…

algorithm recurrence
Understanding recurrence for running time

I'm doing the exercises in Introduction to Algorithm by CLRS. This is not graded homework or anything, I'm just trying …

algorithm sorting recursion recurrence
Write recurrence relation of function

I know the formula for the recurrence relation is T(n)=aT(n/b)+f(n). And given that equation …

algorithm big-o recurrence master-theorem
Should I store dates or recurrence rules in my database when building a calendar app?

I am building a calendar website (ASP.NET MVC) application (think simple version of outlook) and i want to start …

c# calendar icalendar recurrence
Solving a Recurrence Relation: T(n)=T(n-1)+T(n/2)+n

Solve: T(n)=T(n-1)+T(n/2)+n. I tried solving this using recursion trees.There are two branches T(…

algorithm math big-o recurrence