next up previous
Next: Proof of the correctness Up: A new algorithm for Previous: Solving the problem using

The algorithm

This section briefly explains the algorithm to solve the multivariate interpolation problem. The correctness of the algorithm, is deduced in the next section, where all the steps used here will be validated with proofs. Some of the variables used here will not be so clear at this point, they will be explained in the next section.

Before we start with the description of the algorithm, you may want to perform some tests or take a look at the implementation in Maple. You can download the algorithm at http://www.cs.kuleuven.ac.be/$ \sim$marc/software.

The algorithm as mentioned before is an updating algorithm, in every step we will add a new interpolation point. Our temporary solution will satisfy, all the previous interpolation conditions, and also the new interpolation condition we just added. In the algorithm some kind of pivoting is incorporated to improve the numerical stability. The algorithm also has to take into account the degree of the polynomials constructed, in order to obtain a solution with a satisfying degree.

For the description of the algorithm we use the same notation as used in the previous sections. We give here a high level language desription, which resembles a mixture of maple and matlab code. In the first algoritmic description we give an updating step as mentioned before, in the second part we describe the main algorithm and also how to incorporate the degree structures for the solution. Remark however that a lot of easy procedures for example the searching of the pivot, are not explained in detail. They are easy to program and incorporating them here would only make the algorithm more unreadable.

Definition 2   A brief explanation of all the variables used during the algorithm.

algorithm 1 (Some basic procedures explained)   The searchpivot procedure, the Iteratinterpol procedure and the adaptsdegree procedure will be described with an explanation of their input and output values.

The searchpivot procedure
procedure [pivot,row]:=searchpivot(sdeg,resB)
This procedure, searches within the columns with a minimal s-degree, for the largest component, in $ \mathbf{resB}$. It gives as output, the column in which this largest element is found: this is the pivot, and the row in which it was found: this is the interpolationpoint.

The procedure adaptsdegree
procedure [sdeg]:=adaptsdeg(sdeg,pivot)
This procedure recalculates sdeg of the matrix $ \mathbf{B}(\mathbf{x})$. This can be done very easily when one knows the pivot of the iterationstep just performed: sdeg:=[sdeg[1],sdeg[2], ..., sdeg[p-1], sdeg[p]+1,
sdeg[p+1], ...,sdeg[$ k_m$],sdeg[p]+1,..., sdeg[p]+1].
This vector will get $ n-1$ new columns, corresponding to the new added columns in $ \mathbf{B}(\mathbf{x}).$

The procedure for one iterationstep
procedure [B,resB]:=IteratInterpol(P,B,resB,pivot,$ \Omega$,ippoint) Here one step of iteration will be performed, to update the matrix $ \mathbf{B}$. The result will be stored in the matrix $ \mathbf{B}$. The matrix $ \mathbf{resB}$ will also be adapted in this procedure.
  1. $ l:=ColumnDimension(\mathbf{B})$;
  2. $ [r_1,r_2,\ldots,r_l]:=\mathbf{resB}[ippoint,1:l]$;
  3. construct $ \mathbf{T}_{pivot,ippoint,l}$ with $ [r_1,r_2,\ldots,r_l]$;
  4. $ \mathbf{B}:=\mathbf{B}*\mathbf{T}_{pivot,ippoint,l}$;
  5. update the matrix $ \mathbf{resB}$;
  6. RETURN( $ \mathbf{B}$, $ \mathbf{resB}$);

algorithm 2 (Solving Multivariate Interpolation Problems)   The variables used in this algorithm are defined in definition 2.

 $&bull#bullet;$
Initialisation Set all the initial values.

  1. Calculate $ \mathbf{deg}$, $ \mathbf{sdeg}$, $ numip$;
  2. % latex2html id marker 2778
$ numip=numip+extra$ Extra corresponds to the extra number of interpolation points
  3. $ \mathbf{B}:=identity(n+1)$ ;
  4. initialize $ \Omega$ as a $ numip\times n$ matrix.
  5. initialize $ \mathbf{resB}$;

 $&bull#bullet;$
Main Algorithm
while $ \mathbf{sdeg}\; \neq \;[d+1,\ldots,d+1]$ do
[pivot,ippoint]:=searchpivot(sdeg,resB);
if $ \mathbf{resB}$[$ ippoint$,$ pivot$] is too small then
sdeg[pivot]=d+1;
incorporate column in solution module;
else
[ $ \mathbf{B}$, $ \mathbf{resB}$]:=IteratInterpol(P,B,resB,pivot,$ \Omega$,ippoint);
sdeg:=adaptsdeg(sdeg,pivot);
endif;
if column(resB)[n+2] is too small
stop whileloop, cause nonhomogeneous solution is found
endif;
endwhile;

search all the columns of satisfying degree
this is the solution module


next up previous
Next: Proof of the correctness Up: A new algorithm for Previous: Solving the problem using
Raf Vandebril 2004-04-19