4.6.1 ANSWERS TO EXERCISES 617 2. (a) True. (Web servers)
Friday, November 23rd, 20074.6.1 ANSWERS TO EXERCISES 617 2. (a) True. (b) False if the algebraic system S contains zero divisors, nonzero numbers whose product is zero, as in exercise 1; otherwise true. (c) True when m # n, but false in general when m = n, since the leading coefficients might cancel. 3. Assume that r 5 s. For 0 5 Ic 2 r the maximum is mlmz(k f 1); for r 2 k 5 s it is mim,(r + 1); for s < k 5 r + s it is mimz(r f s + 1 -k). The least upper bound valid for all k is m,mz(r + 1). (The solver of this exercise will know how to factor the polynomial x7 + 2s6 + 3×5 + 3×4 + 3×3 + 32 + 2x + 1.) 4. If one of the polynomials has fewer than 2t nonzero coefficients, the product can be formed by putting exactly t -1 zeros between each of the coefficients, then multiplying in the binary number system, and finally using a logical AND instruction (present on most binary computers, cf. Section 4.5.4) to zero out the extra bits. For example, if t = 3, the multiplication in the text would become (1001000001)~ X (1000001001)~ = (1001001011001001001)~; if we AND this result with the constant (1001001.. lOOl)z, the desired answer is obtained. A similar technique can be used to multiply polynomials with nonnegative coefficients, when it is known that the coefficients will not be too large. 5. Polynomials of degree 5 2n can be represented as Ui(x)x + Uo(x) where deg(U1) and deg(Us) I n; and (Ul(x)x + U~(x))(V,(x)x~ f Vi(x)) = UI(X)VI(X)(X~” + 2″) -I- (Ul(x) + Uo(x))(Vl(x) + V$,(Z))X~ + Uo(x)%(x)(xn + 1). (This equation assumes that arithmetic is being done modulo 2.) Thus Eqs. 4.3.3-3, 4, 5 hold. Notes: S. A. Cook has shown that Algorithm 4.3.3C can be extended in a similar way, and exercise 4.6.4-57 describes a method requiring even fewer operations for large n. But these ideas are not useful for sparse polynomials (having mostly zero coefficients). SECTION 4.6.1 1. q(x) = 1 23×3 + 0. 22×2 -2.2x + 8 = 8~~ -4x + 8; T(X) = 28×2 + 4x + 8. 2. The manic sequence of polynomials produced during Euclid s algorithm has the coefficients (1,5,6,6,1,6,3), (1,2,5,2,2,4,5), (1,5,6,2,3,4), (1,3,4,6), 0. Hence the greatest common divisor is x3 $ 3×2 $ 4x + 6. (The greatest common divisor of a polynomial and its reverse is always symmetric, in the sense that it is a unit multiple of its own reverse.) 3. The procedure of Algorithm 4.5.2X is valid, with polynomials over S substituted for integers. When the algorithm terminates, we have U(x) = m(x), V(x) = us. Let m = deg(u), n = deg(v). It is easy to prove by induction that deg(us) + deg(vi) = n, deg(us) + deg(v2) = m, after step X3, throughout the execution of the algorithm, provided that m 2 n. Hence if m and n are greater than d = deg(gcd(u, v)) we have deg(U) < m -d, deg(V) < n -d; the exact degrees are m -dl and n -di, where di is the degree of the second-last nonzero remainder. If d = min(m, n), say d = n, we have U(z) = 0 and V(x) = 1. When U(Z) = xm -1 and w(x) = xn -1, the identity (xm -l)mod(x -1) = X mmodn -1 shows that all polynomials occurring during the calculation are manic, with integer coefficients. When u(x) = xzl -1 and u(x) = xl3 -1, we have V(x) = xl1 + x8 $ x6 f x3 + 1 and U(x) = -(x1 + xl6 $ xl4 + xl1 + zs f x6 + x3 f x). [See also Eq. 3.3.3-29, which gives an alternative formula for U(Z) and V(x).]