A second algorithm of complexity $ O(p_1p_2n)$

Before giving examples of matrices solvable via these Levinson-like methods, we present here the general algorithm for simple $ (p_1,p_2)$-Levinson conform matrices. For the computation of $ S_k^T Y_k$ and $ S_k^T \mathbf{x}_k$ we use the recursive schemes presented in Equations (9) and (10). We know that for every $ k$ the multiplication of a vector with the matrices $ Q_k$ and/or $ P_k$ can be performed in linear time. Assume that $ \kappa_1 p_1 + \kappa_2$ is an upper bound for the number of operations needed to multiply a vector with a matrix $ P_k$, and assume $ \gamma_1 p_2 + \gamma_2$ to be an upper bound for the number of operations needed to multiply a vector with a matrix $ Q_k$. The algorithm is presented below, after each computation, the number of involved operations is shown (flop count). The operation count presented here is the worst case scenario, as we do not take into consideration other possible advantages such as sparsity in multiplications and so on. One can see this complexity count as an upper bound.

Algorithm 3   Initialize
$\displaystyle \alpha_1$ $\displaystyle =$ $\displaystyle \frac{-R_1}{a_{1,1}}$   Flops: $\displaystyle p_1$  
$\displaystyle \mu_1$ $\displaystyle =$ $\displaystyle \frac{b_1}{a_{1,1}}$   Flops: $\displaystyle 1$  
$\displaystyle S^T_1 Y_1$ $\displaystyle =$ $\displaystyle S^T_1 \alpha_1$   Flops: $\displaystyle p_2p_1$  
$\displaystyle S^T_1 x_1$ $\displaystyle =$ $\displaystyle S^T_1 \mu_1$   Flops: $\displaystyle p_1$  

For $ k=1,\ldots,n-1$ do:
  1. Compute and store the following variable:
    1. $ (\mathbf{d}_{k+1} S_{k}^T Y_{k})$ Flops: $ (2p_2-1)p_1$
    2. $ (\mathbf{d}_{k+1} S_{k}^T Y_{k} \mathbf{c}_{k+1}^T + a_{k+1,k+1})$ Flops: $ 2p_1$
  2. $ \mathbf{\alpha}_{k+1} = \frac{(-1) (\xi_{k+1} + \mathbf{d}_{k+1}
S_{k}^T Y_{k}P_k) }{(\mathbf{d}_{k+1} S_{k}^T Y_{k} \mathbf{c}_{k+1}^T +
a_{k+1,k+1})}$ Flops: $ 2p_1+\kappa_1 p_1 + \kappa_2$
  3. $ \mu_{k+1} = \frac{b_{k+1} - \mathbf{d}_{k+1} S^T_k x_k
}{\left(\mathbf{d}_{k+1} S^T_k Y_k \mathbf{c}_{k+1}^T + a_{k+1,k+1}\right)} $ Flops: $ 2p_2+1$
  4. Compute and store the following variables (if $ k<n-1$):
    1. $ Q^T_{k}S_{k}^TY_{k}c_{k+1}^T + \eta_{k+1}^T$ Flops: $ 2p_2 p_1 + \gamma_1 p_2 + \gamma_2$
    2. $ S_{k+1}^TY_{k+1}=Q^T_{k} S_{k}^T Y_{k} P_{k} +
\left(Q^TS_{k}^TY_{k}\mathbf{c}_{k+1}^T + \eta_{k+1}^T\right)\mathbf{\alpha}_{k+1}
$
      Flops: $ 2p_2p_1+ p_1(\gamma_1 p_2+\gamma_2)+ p_2
(\kappa_1 p_1 + \kappa_2)$
    3. $ S_{k+1}^T\mathbf{x}_{k+1}=Q^T_{k}S_{k}^T \mathbf{x}_{k}+
\left(Q^T_{k}S_{k}^TY_{k}\mathbf{c}_{k+1}^T + \eta_{k+1}^T\right)\mu_{k+1}
$
      Flops: $ 2p_2+\gamma_1 p_2 + \gamma_2$

endfor;

Computation of the solution vector ($ h$ is a dummy variable)

$\displaystyle x_n$ $\displaystyle =$ $\displaystyle \mu_n$  
$\displaystyle h$ $\displaystyle =$ $\displaystyle \mu_n \mathbf{c}^T$   Flops: $\displaystyle p_1$  

For $ k=n-1,-1,1$ do
  1. $ x_k=\mu_k+\alpha_k h$ Flops: $ 2p_1$
  2. $ h=x_i \mathbf{c}_i^T+P_{k-1} h$ Flops: $ 2p_1+\kappa_1 p_1 + \kappa_2$
endfor.

It is clear that an overal complexity count leads to method with complexity $ O(p_1p_2n)$. A more detailed summation of the involved operations gives us an overal complexity of

$\displaystyle (n-1)\Big[ (6+\gamma_1 + \kappa_1) p_1 p_2
+ (2 \kappa_1+\gamma_2 + 7 ) p_1
+ (2 \gamma_1+\kappa_2+4) p_2
+ 2\gamma_2+2\kappa_2 +1\Big]$      
$\displaystyle + (-3-\gamma_1-\kappa_1)p_1p_2
+ (3-\gamma_2)p_1
+(-2-2\gamma_1-\kappa_2)p_2
+(1-2\gamma_2)$      

Raf Vandebril 2006-03-30