Given a polynomial A(x) of degree-bound n, we define its t th derivative by From the coefficient
Question:
Given a polynomial A(x) of degree-bound n, we define its t th derivative by
From the coefficient representation (a0, a1, . . . , an-1) of A(x) and a given point x0, we wish to determine A(t)(x0) for t = 0, 1, . . . , n - 1.
a. Given coefficients b0, b1, . . . , bn-1 such that
show how to compute A(t)(x0), for t = 0, 1, . . . , n - 1, in O(n) time.
b. Explain how to find b0, b1, . . . ,bn-1 in O(n lg n) time, given A (x0 + ωkn) for k = 0, 1, . . . , n - 1.
c. Prove that
where f (j) = aj · j ! and
d. Explain how to evaluate A(x0 + ωkn) for k = 0, 1, . . . , n - 1 in O(n lg n) time. Conclude that we can evaluate all nontrivial derivatives of A(x) at x0 in O(n lg n) time.
Step by Step Answer:
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest