Need help in solving a recurrence relation

Click For Summary

Homework Help Overview

The discussion revolves around solving a complex recurrence relation related to the expected time of an algorithm. The relation involves multiple terms and initial conditions, and the original poster expresses uncertainty about how to approach it, noting that it is a simpler version of a more complicated relation.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants suggest exploring methods such as z-transforms and generating functions to tackle the recurrence relation. There is a discussion about the necessity of additional information regarding terms where indices differ, which could significantly affect the outcome.

Discussion Status

Some participants have provided potential methods for analysis, while the original poster is considering these suggestions and planning to gather more information about the recurrence relation. There is an acknowledgment of the need for further exploration of the relationship between different terms in the recurrence.

Contextual Notes

The original poster mentions that the relation is a simpler version of one involving the full history of the recurrence, indicating potential complexity in the problem. Additionally, there is a constraint regarding the relationship between the terms a_{i,j} and a_{j,i} for all i,j, which may influence the analysis.

Constantinos
Messages
80
Reaction score
1
Hey!

I was trying to find the expected time an algorithm takes to solve a certain problem, and I ended up in a very nasty recurrence relation of this form:

a[itex]_{k,k}[/itex] = [itex]\overline{c}[/itex]a[itex]_{k,k-1}[/itex]+[itex]\overline{c}[/itex]a[itex]_{k-1,k}[/itex]+c[itex]^{2}[/itex]a[itex]_{k-1,k-1}[/itex]-[itex]\overline{c}[/itex][itex]^{3}[/itex]a[itex]_{k-1,k-2}[/itex]-[itex]\overline{c}[/itex][itex]^{3}[/itex]a[itex]_{k-2,k-1}[/itex]+([itex]\overline{c}[/itex]-c)[itex]\overline{c}[/itex][itex]^{2}[/itex]a[itex]_{k-2,k-2}[/itex]+y((k,k))

with initial conditions:

a[itex]_{n,0}[/itex] = n [itex]\forall[/itex] n
and
a[itex]_{0,n}[/itex] = n [itex]\forall[/itex] n

and a,y:[itex]N[/itex]X[itex]N[/itex]→ℝ

I have no idea where to even begin! I've never encountered such a thing before, and it is actually a simpler version of a relation involving the full history of the recurrence relation(i.e all of the terms a[itex]_{k1,k2}[/itex] : k1≤k, k2≤ k )

What methods do I have to study to solve that?
 
Physics news on Phys.org
oh and [itex]\overline{c}[/itex]+c = 1
 
Last edited:
Constantinos said:
Hey!

I was trying to find the expected time an algorithm takes to solve a certain problem, and I ended up in a very nasty recurrence relation of this form:

a[itex]_{k,k}[/itex] = [itex]\overline{c}[/itex]a[itex]_{k,k-1}[/itex]+[itex]\overline{c}[/itex]a[itex]_{k-1,k}[/itex]+c[itex]^{2}[/itex]a[itex]_{k-1,k-1}[/itex]-[itex]\overline{c}[/itex][itex]^{3}[/itex]a[itex]_{k-1,k-2}[/itex]-[itex]\overline{c}[/itex][itex]^{3}[/itex]a[itex]_{k-2,k-1}[/itex]+([itex]\overline{c}[/itex]-c)[itex]\overline{c}[/itex][itex]^{2}[/itex]a[itex]_{k-2,k-2}[/itex]+y((k,k))

with initial conditions:

a[itex]_{n,0}[/itex] = n [itex]\forall[/itex] n
and
a[itex]_{0,n}[/itex] = n [itex]\forall[/itex] n

and a,y:[itex]N[/itex]X[itex]N[/itex]→ℝ

I have no idea where to even begin! I've never encountered such a thing before, and it is actually a simpler version of a relation involving the full history of the recurrence relation(i.e all of the terms a[itex]_{k1,k2}[/itex] : k1≤k, k2≤ k )

What methods do I have to study to solve that?

You could try a z-transform, or a generating function. Let [itex]f(z)=\sum_{k=0}^{\infty} a_{k,k} z^k, \;\; f_1(z) = \sum_{k} a_{k-1,k,k} z^k, \;\mbox{ and } f_2(z) = \sum_{k} a_{k,k-1} z^k.[/itex] Then, if we know [itex]f_1(z)[/itex] and [itex]f_2(z)[/itex] we can get [itex]f(z)[/itex], and we can then "invert" to get the ak,k. Note, however, that we must know f_1 and f_2, and that means we do not have enough information to solve the problem: we need to know something about ai,j for i ≠ j. For example, we would get something very different if we have ak,j = aj,k = 0 for 1 ≤ j ≤ k-1, vs. ak,j = aj,k = k for 0 ≤ j ≤ k, etc.

RGV
 
Ray Vickson said:
You could try a z-transform, or a generating function. Let [itex]f(z)=\sum_{k=0}^{\infty} a_{k,k} z^k, \;\; f_1(z) = \sum_{k} a_{k-1,k,k} z^k, \;\mbox{ and } f_2(z) = \sum_{k} a_{k,k-1} z^k.[/itex] Then, if we know [itex]f_1(z)[/itex] and [itex]f_2(z)[/itex] we can get [itex]f(z)[/itex], and we can then "invert" to get the ak,k. Note, however, that we must know f_1 and f_2, and that means we do not have enough information to solve the problem: we need to know something about ai,j for i ≠ j. For example, we would get something very different if we have ak,j = aj,k = 0 for 1 ≤ j ≤ k-1, vs. ak,j = aj,k = k for 0 ≤ j ≤ k, etc.

RGV

Thanks!

I'll try Z transforms then and see what I get. Also, I'll try to get a recurrence relation for a general a_i_j for any i,j, not just i=j=k. Also it holds that a_i_j = a_j_i for all i,j but I don't know if that helps...
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
Replies
11
Views
2K
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
2K
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
Replies
33
Views
3K
Replies
1
Views
1K
  • · Replies 15 ·
Replies
15
Views
2K