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.

n log n is O(n)?

I am trying to solve this recurrence T(n) = 3 T(n/2) + n lg n .. I have come to the solution …

algorithm recurrence
What's the best way to model recurring events in a calendar application?

I'm building a group calendar application that needs to support recurring events, but all the solutions I've come up with …

ruby algorithm calendar data-modeling recurrence
Solving T(n) = 4T(n/2)+n²

I am trying to solve a recurrence using substitution method. The recurrence relation is: T(n) = 4T(n/2)+n2 My …

algorithm complexity-theory recurrence
Solving the recurrence relation T(n) = √n T(√n) + n

Is it possible to solve the recurrence relation T(n) = √n T(√n) + n Using the Master Theorem? It is …

math recursion complexity-theory big-o recurrence
Modulus with negative numbers in C++

I have been writing a program for the following recurrence relation: An = 5An-1 - 2An-2 - An-3 + An-4 The output …

c++ modulo recurrence
how to write a recurrence relation for a given piece of code

In my algorithm and data structures class we were given a few recurrence relations either to solve or that we …

algorithm recurrence
Solve: T(n) = T(n-1) + n

In Cormen's Introduction to Algorithm's book, I'm attempting to work the following problem: Show that the solution to the recurrence …

algorithm math recurrence
Recurrence Relation: Solving Big O of T(n-1)

I'm solving some recurrence relation problems for Big O and so far up till this point have only encountered recurrence …

big-o recurrence
Solving a recurrence: T(n)=3T(n/2)+n

I need to Find the solution of the recurrence for n, a power of two if T(n)=3T(n/2)+…

algorithm time-complexity computer-science recurrence
How to determine the height of a recursion tree from a recurrence relation?

How does one go about determining the height of a recursion tree, built when dealing with recurrence run-times? How does …

recursion tree computer-science recurrence proof