Let
be a field and let
be a sequence of pairwise distinct elements of
.
with degree
, say
![]() |
(35) |
using Horner's rule
![]() |
(36) |
additions and
multiplications leading to
operations in the base field
.
the ![]() |
(37) |
![]() |
(38) |
be in
with degree less than
of degree less than
or computing an interpolating polynomial at these points
can be done in
operations in
at one point costs
operations in
amounts to
.
Let us prove now that interpolating a polynomial at
can be done in
operations in
.
Consider
,
, ...
where
.
Let
and
for
![]() |
(41) |
's let us start with that of
of degree
of degree
plus
(of degree
(of degree
but without constant term)
amounts to
![]() |
(42) |
steps, each step requiring
computing each
's
amounts to
operations in the base field
's amounts to
.
Then computing each
from the
's costs
's from scratch
amounts to
.
Computing
from the
's requires
(which is a polynomial of degree
) by the number
leading to
additions
of polynomials of degree at most
costing
operations in
.
Finally the total cost is
.
![]() |
(43) |
.
It is obvious that ![]() |
(44) |
for all
.
To conclude observe that both
evaluation and interpolation
are linear maps between coefficients and value vectors.
Marc Moreno Maza