Next: Proof of the correctness
Up: A new algorithm for
Previous: Solving the problem using
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/
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.
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
. 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
. 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[
],sdeg[p]+1,..., sdeg[p]+1].
This vector will get
new columns, corresponding to the new
added columns in
- The procedure for one iterationstep
procedure
[B,resB]:=IteratInterpol(P,B,resB,pivot,
,ippoint)
Here one step of iteration will be performed, to update the matrix
. The result will be stored in the matrix
. The
matrix
will also be adapted in this procedure.
-
;
-
;
- construct
with
;
-
;
- update the matrix
;
- RETURN(
,
);
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.
- Calculate
,
,
;
-
Extra corresponds to the extra number of
interpolation points
-
;
- initialize
as a
matrix.
- initialize
;
- $&bull#bullet;$
- Main Algorithm
- while
do
- [pivot,ippoint]:=searchpivot(sdeg,resB);
- if
[
,
] is too small then
- sdeg[pivot]=d+1;
- incorporate column in solution module;
- else
- [
,
]:=IteratInterpol(P,B,resB,pivot,
,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: Proof of the correctness
Up: A new algorithm for
Previous: Solving the problem using
Raf Vandebril
2004-04-19