Another way to evaluate a polynomial A(x) of degree-bound n at a given point x 0 is

Question:

Another way to evaluate a polynomial A(x) of degree-bound n at a given point x0 is to divide A(x) by the polynomial (x − x0), obtaining a quotient polynomial q(x) of degree-bound n − 1 and a remainder r, such that

A(x) = q(x)(x − x0) + r.

Clearly, A(x0) = r. Show how to compute the remainder r and the coefficients of q(x) in time Θ(n) from x0 and the coefficients of A.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Introduction to Algorithms

ISBN: 978-0262033848

3rd edition

Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest

Question Posted: