4.6.3 EVALUATION OF POWERS 465 b 27. [24]
Saturday, May 5th, 20074.6.3 EVALUATION OF POWERS 465 b 27. [24] (E. G. Straus.) Find a way to compute a general monomial z~ z$~. . . xzm in at most 2X(max(ni, 722, . . . , nm)) + 2m -m -1 multiplications. 28. [MX?] (A. Schonhage.) The object of this exercise is to give a fairly short proof that l(n) 2 X(n)+lgv(n)–O(loglog(v(n)+l)). (a) When x = (zk . . . x0.x-1.. .)z and y = (yk . . ye.y-1 . . )z are real numbers written in binary notation, let us write x C y if x3 5 yJ for all j. Give a simple rule for constructing the smallest number z with the property that Z c x and y C y implies x + y C Z. Denoting this number by x V y, prove that v(x V y) 5 v(z) + Y(Y). (b) G iven any addition chain (11) with r = l(n), let the sequence do, dl, . . . , d, be defined as in (35), and define the sequence Ao, AI, , A, by the following rules: A0 = 1; if a, = 2az-i then A, = 2Atp1; otherwise if a, = a3 + ak for some 0 5 k 2 j < i, then A, = Ai-V (Az-l/2d~--dk). Prove that this sequence covers the given chain, in the sense that a, C A, for 0 5 i 1 + ScZ.] (d) We now have l(n)=r=b,+c,+d,an d v(n) 5 v(B,) 5 (1 + 6~,)2~. Explain how to choose b in order to obtain the inequality stated at the beginning of this exercise. [Hint: See (16), and note that n < 2 obr for some a < 1 depending on 6.1 29. [M49] Is v(n) 5 2 (n)--x(n) for all positive integers n? (If so, we have the lower bound 1(2 -1) 2 n -1 f jlgn]; cf. (17) and (49)) 30. [eo] An addition-subtraction chain has the rule az = aj f ak in place of (2); the imaginary computer described in the text has a new operation code, SUEI. (This corresponds in practice to evaluating xn using both multiplications and divisions.) Find an addition-subtraction chain, for some n, that has fewer than l(n) steps. 31. (M46] (D. H. Lehmer.) Explore the problem of minimizing eq + (r --q) in an addition chain (l), where q is the number of simple steps in which a, = ai-i + 1, given a small positive weight E. (This problem comes closer to reality for many calculations of xn, if multiplication by x is simpler than a general multiplication; cf. Section 4.6.2.) 32. [M30] (A. C. Yao.) Let l(ni,. . . , n,) be the length of the shortest addition chain that contains m given numbers nl < . . < nn. Prove that I(nl, . , n,) Note: If you are looking for best quality webspace to host and run your tomcat application check Vision personal web hosting services