How to achieve an $ O(n)$ complexity

Two bottlenecks arise when solving the Yule-Walker equation of order $ (k+1)$. These are: the computation of $ r^T_k y_k$ and the computation of $ z_k$ in each step. We will show now how to change the algorithm from the previous section in order to come to a step with a fixed number of flops.

Suppose we just solved the $ (k+1)$th Yule-Walker system of equations and we start now solving the $ (k+2)$nd system. Let us denote the solution and the right-hand side of the $ (k+1)$th system as follows: $ (S_{k+1}+D_{k+1})y_{k+1}=-r_{k+1}$. For the new $ (k+2)$nd system we need the inner product $ r_{k+1}^T y_{k+1}$. This corresponds to the inner product (using hereby the notation from Section 2.1):

$\displaystyle r_{k+1}^T y_{k+1}
 =
 [r^T_k,v_{k+1}]
 \left(\begin{array}{c}
 z_{k+1}\\ 
 \alpha_{k+1}
 \end{array}\right).$    

Rewriting the equation above, using the expression for $ z_{k+1}=(1+u_{k+1}\alpha_{k+1})y_k$, leads to the following recursive formula for the inner product:

$\displaystyle r_{k+1}^T y_{k+1}^T 
 =
 (1 + u_{k+1} \alpha_{k+1}) r^T_k y_k + v_{k+1} \alpha_{k+1}.$    

It is clear that the inner product $ r_{k+1}^T y_{k+1}$ for solving the Yule-Walker equation of order $ (k+2)$, can already be computed at the end of step $ (k+1)$ in a constant number of operations if $ r^T_k y_k$ is known. Incorporating this inductive construction of the inner product in the algorithm, we remove the $ O(k)$ flops in each step connected to the calculation of the inner product.

The only remaining slow step is the computation of the vector $ z_k$, and hence $ y_k$, in each step of the algorithm. Let us denote the solution of the $ k$th Yule-Walker-like type of equations with $ y_k^T=[z_k^T \; \alpha_k]$. In fact, we calculate consecutively the following solutions $ y_i$,(where the $ f_i$'s denote different factors $ f_i=(1+u_i\alpha_i)$):

$\displaystyle y_1$ $\displaystyle =$ $\displaystyle \alpha_1$  
$\displaystyle y_2^T$ $\displaystyle =$ $\displaystyle [ z_2, \; \alpha_2 ] = [ f_2 y_1,\;\alpha_2] =[f_2 \alpha_1,\alpha_2]$  
$\displaystyle y_3^T$ $\displaystyle =$ $\displaystyle [ z^T_3, \; \alpha_3 ] = [ f_3
y_2^T,\;\alpha_3]=[f_3f_2\alpha_1,f_3 \alpha_2,\alpha_3]$  
  $\displaystyle \vdots$    
$\displaystyle y_n^T$ $\displaystyle =$ $\displaystyle [ z^T_n, \; \alpha_3 ] = [ f_n y_{n-1}^T,\;\alpha_n]
=[f_n f_{n-1}\ldots f_2 \alpha_1,f_n\ldots f_3\alpha_2,\ldots,\alpha_n]$  

Instead of calculating now in each step the vector $ y_i$ and $ z_i$, we will store the factors $ f_i$ and the numbers $ \alpha_i$. Storing only these two numbers at each step of the algorithm, we achieve a constant complexity for solving a $ k$th order Yule-Walker-like type of equations. The only remaining problem is the computation in order $ O(n)$ of the solution vector $ y_n$. This is done rather easily by starting the construction of the vector $ y_n$ from bottom to top, and updating in each step a certain factor. This is a rather straightforward computation, and therefore not included, the complete algorithm is given in the next subsection.

Raf Vandebril 2005-04-25