Need help in solving a recurrence relation

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_{k,k} = \overline{c}a_{k,k-1}+\overline{c}a_{k-1,k}+c^{2}a_{k-1,k-1}-\overline{c}^{3}a_{k-1,k-2}-\overline{c}^{3}a_{k-2,k-1}+(\overline{c}-c)\overline{c}^{2}a_{k-2,k-2}+y((k,k))

with initial conditions:

a_{n,0} = n \forall n
and
a_{0,n} = n \forall n

and a,y:NXN→ℝ

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_{k1,k2} : k1≤k, k2≤ k )

What methods do I have to study to solve that?
 
Physics news on Phys.org
oh and \overline{c}+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_{k,k} = \overline{c}a_{k,k-1}+\overline{c}a_{k-1,k}+c^{2}a_{k-1,k-1}-\overline{c}^{3}a_{k-1,k-2}-\overline{c}^{3}a_{k-2,k-1}+(\overline{c}-c)\overline{c}^{2}a_{k-2,k-2}+y((k,k))

with initial conditions:

a_{n,0} = n \forall n
and
a_{0,n} = n \forall n

and a,y:NXN→ℝ

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_{k1,k2} : 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 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. Then, if we know f_1(z) and f_2(z) we can get f(z), 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 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. Then, if we know f_1(z) and f_2(z) we can get f(z), 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...
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top