4.7 ANSWERS TO EXERCISES 657 10. Form y (Web server type)
Friday, December 21st, 20074.7 ANSWERS TO EXERCISES 657 10. Form y = X(1 + a15 + a& + . . . )l O = ~(1 f CIZ + c2×2 + . .) by means of Eq. (9); then revert the latter series. (See the remarks following Eq. 1.2.11.3-11.) 11. Set W0 + Uo, and set (Tk, Wk) + (Vk,O) for 1 5 Ic < N. Then for n = 1, 2I …t N, do the following: Set Wj +-Wi + UnT3 for n 2 j 2 N; and then set q +-T~-~VI +. . . + TnV,-, for j = N, N -1, . . . , n + 1. Here T(z) represents V(z) . An on-line power series algorithm for this problem, analogous to Algorithm T, could be constructed, but it would require about N2/2 storage locations. There is also an on-line algorithm that solves this exercise and needs only O(N) storage locations: We may assume that VI = 1, if Uk is replaced by UkVf and Vk is replaced by Vk/Vl for all k. Then we may revert V(z) by Algorithm L, using its output as input to the algorithm of exercise 8 with G1 = Ul, G2 = U2, etc., thus computing U((V- )-l(z)) -UO. Brent and Kung have constructed several algorithms that are asymptotically faster. For example, we can evaluate U(Z) for 3: = V(z) by a slight variant of exercise 4.6.4- 42(c), doing about 2fi chain multiplications of cost M(n) and about n parameter multiplications of cost n, where M(n) is the number of operations needed to multiply power series to order n; the total time is therefore O(fiM(n) + n ) = O(n ). A still faster method can be based on the identity U(Vo(z) + z Vl(z)) = U(Vo(z)) + z u (vo(z))vl(z)+z u (v,(z))Vl(z) /2!+. . . , extending to about n/m terms, where