Archive for April, 2007

448 ARITHMETIC 4.6.3 Theorem A. If the addition (Web hosting control panel)

Monday, April 30th, 2007

448 ARITHMETIC 4.6.3 Theorem A. If the addition chain (11) includes d doublings and f = r -d nondoublings, then n 2 2*- Ff+s. (14) Proof. By induction on r = d + f, we see that (14) is certainly true when r = 1. When r > 1, there are three cases: If step r is a doubling, then $n = a,-1 5 2d-2F f+s; hence (14) follows. If steps r and T -1 are both nondoublings, then a,-1 5 2*-lFf+2 and arP2 5 2d-1Ff+l; hence n = a,. 2 a,.-1 + a7-s 2 2*- (Ff-t2 + Fffl) = 2d-1Ff+3 by the definition of the Fibonacci sequence. Finally, if step r is a nondoubling but step r -1 is a doubling, then arP2 2 2*- Ff+z and n = a,. 5 a,_l + a7-2 = 3a7-2. Now 2Ff+s -3Ff+2 = Fftl -Ff 2 0; hence n 5 2d-1Ff+3 in all cases. 1 The method of proof we have used shows that inequality (14) is best possible under the stated assumptions; the addition chain 1,2,. . . ,2*–1, 2*–lF3, 2*-lF 4,*.., 2*–lFf+s (15) has d doublings and f nondoublings. Corollary. If the addition chain (11) includes f nondoublings and s small steps, then s 5 f 2 3.271s. (16) Proof. Obviously s 6 f. We have ZXcn) 2 n 5 2d-1Ff+3 5 2*4f = 2X(n)+s(+/2)f, since d + f = A(n) + s, and since Ff+s < 24f when f > 0. Hence 0 5 s In 2 + f ln(#/2), and (16) follows from the fact that In 2/ ln(2/@) M 3.2706. 1 Values of l(n) for special 12. It is easy to show by induction that ai 5 2i, and therefore lgn 5 r in any addition chain (11). Hence l(n) 2 knl. (17) This lower bound, together with the upper bound (10) given by the binary method, gives us the values 1(2A) = A; (18) 1(2A+2B)=A+1, ifA> B. (19) In other words, the binary method is optimum when u(n) 2 2. With some further calculation we can extend these formulas to the case v(n) = 3:
Note: In case you are looking for affordable webhost to host and run your web application check Vision http web server services

Web site templates - 4.6.3 EVALUATION OF POWERS 447 In terms of

Monday, April 30th, 2007

4.6.3 EVALUATION OF POWERS 447 In terms of these functions, the binary addition chain for n requires exactly x(n) + u(n) -1 steps, and (5) becomes l(n) 5 x(n) + v(n) -1. (10) Special classes of chains. We may assume without any loss of generality that an addition chain is ascending, 1 = %I < Ul < a2 < .. < a, = n. (11) For if any two a s are equal, one of them may be dropped; and we can also rearrange the sequence (1) into ascending order and remove terms > n without destroying the addition chain property (2). from now on we shall consider only ascending chains, without explicitly mentioning this assumption. It is convenient at this point to define a few special terms relating to addition chains. By definition we have, for 1 5 i 2 T, Ui = aj + ak (14 for some j and k, 0 < k 2 j < i. Let us say that step i of (11) is a doubling, if j=k=i-1; then ai has the maximum possible value 2ai-1 that can follow the ascending chain 1, al, . . . , CJ-~. If j (but not necessarily k) equals i -1, let us say that step i is a star step. The importance of star steps is explained below. Finally let us say that step i is a small step if x(ai) = X(ai.-1). Since ai-< ai 5 2ai-1, the quantity x(ai) is always equal to either X(ai-1) or X(ai-1) + 1; it follows that, in any chain (ll), the length r is equal to A(n) plus the number of small steps. Several elementary relations hold between these types of steps: Step 1 is always a doubling. A doubling obviously is a star step, but never a small step. A doubling must be followed by a star step. Furthermore if step i is not a small step, then step i + 1 is either a small step or a star step, or both; putting this another way, if step i + 1 is neither small nor star, step i must be small. A star chain is an addition chain that involves only star steps. This means that each term ai is the sum of ai- and a previous ak; the simple computer discussed above after Eq. (2) makes use only of the two operations STA and ADD (not LDA) in a star chain, since each new term of the sequence utilizes the pre- ceding result in the accumulator. Most of the addition chains we have discussed so far are star chains. The minimum length of a star chain for n is denoted by l*(n); clearly l(n) 5 l*(n). (13) We are now ready to derive some nontrivial facts about addition chains. First we can show that there must be fairly many doublings if r is not far from x(n).
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision personal web hosting services

446 ARITHMETIC 4.6.3 Yhl, / A I A (My web server)

Monday, April 30th, 2007

446 ARITHMETIC 4.6.3 Yhl, / A I A I 1Li A 7 A r I i F: r 21 22 23 40 I I I I I I / I A P A A Pe I I 38 29 56 31 42 44 46 41 80 39 54 45 60 50 51 96 35 52 43 68 37 72 49 66 65 I I I I I I / I I I I I I I I I I I / 76 58 57 59 62 84 88 47 92 82 83 85 78 55 90 63 75 100 53 97 99 70 61 77 86 69 74 73 98 67 81 I I I II I I I 89 94 93 95 79 91 71 87 Fig. 14. A tree that minimizes the number of multiplications, for n 5 100. The length of this chain is m -2 + (k + 1)t; and it can often be reduced by de- leting certain elements of the first row that do not occur among the coefficients dj, plus elements among 2do, 4do, . . . that already appear in the first row. Whenever digit dJ is zero, the step at the right end of the corresponding line may, of course, be dropped. Furthermore, as E. C. Thurber has observed [Duke Math. J. 40 (1973), 907-9131, we can omit all the even numbers (except 2) in the first row, if we bring values of the form dj/2e into the computation e steps earlier. The simplest case of the m-ary method is the binary method (m = 2), when the general scheme (4) simplifies to the S and x rule mentioned at the beginning of this section: The binary addition chain for 2n is the binary chain for n followed by 2n; for 2n + 1 it is the binary chain for 2n followed by 2n + 1. From the binary method we conclude that l(aeo + 2e1 + . . . + 2e ) 5 e. + t, if eo > el > … > et 2 0. (5) Let us now define two auxiliary functions for convenience in our subsequent discussion: W = lk nJ; (6) v(n) = number of l s in the binary representation of n. (7) Thus X(17) = 4, ~(17) = 2; these functions may be defined by the recurrence relations X(1) = 0, X(2n) = X(2n + 1) = A(n) + 1; (8) Y(1) = 1, v(2n) = v(n), v(2n + 1) = v(n) + 1. (9)
Note: If you are looking for high quality webhost to host and run your jsp application check Vision jsp web hosting services

4.6.3 EVALUATION OF (Web proxy server) POWERS 445 Fig. 13. The

Sunday, April 29th, 2007

4.6.3 EVALUATION OF POWERS 445 Fig. 13. The power tree. for all i = 1, 2, . . . , r. One way of looking at this definition is to consider a simple computer that has an accumulator and is capable of the three operations LDA, STA, and ADD; the machine begins with the number 1 in its accumulator, and it proceeds to compute the number n by adding together previous results. Note that al must equal 2, and US is either 2, 3, or 4. The shortest length, r, for which there exists an addition chain for n is denoted by l(n). Our goal in the remainder of this section is to discover as much as we can about this function l(n). The values of l(n) for small n are displayed in tree form in Fig. 14, which shows how to calculate P with the fewest possible multiplications for all n 5 100. The problem of determining l(n) was apparently first raised by H. Dellac in 1894, and a partial solution by E. de Jonquibres mentioned the factor method [cf. I IntermMiaire des MatMmaticiens 1 (1894), 20, 162-1641. In his solution, de JonquiBres listed what he felt were the values of l(p) for all prime numbers p < 200, but his table entries for p = 107, 149, 163, 179 were one too high. The factor method tells us immediately that l(mn) I l(m) + l(n), (3) since we can take the chains 1, al, . . . , a, = m and 1, bl, . . . , b, = n and form the chain 1, al, . . . , a,, arbl, . . . , u7bs = mn. We can also recast the m-ary method into addition-chain terminology. Con- sider the case m = 2k, and write n = d,,mt + dlmt- + . . . + dt in the m-ary number system; the corresponding addition chain takes the form 1,2,3, . . . ) m -2,m -1, 2d,,, 4do,. . .,mdo,mdo+dl, 2(mdo+dl), 4(mdo+dl), . . . , m(mdo+dl), m2do -t mdl + da, 7 mtdo + mt-ldl + . . . + dt. (4
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check Vision mysql hosting services

444 ARITHMETIC 4.6.3 given any value of n. (Free web hosting music)

Sunday, April 29th, 2007

444 ARITHMETIC 4.6.3 given any value of n. For example, if we want to calculate x55, we first evaluate y = x5 = x4x = (z?)~z; then we form y = yl y = (~~)~y. The whole process takes eight multiplications, while the binary method would have required nine. The factor method is better than the binary method on the average, but there are cases (n = 33 is the smallest example) where the binary method excels. The binary method can be generalized to an m-ary method as follows: Let n = domt + dlmtP1 + +. + dt, where 0 2 d, < m for 0 2 j 2 t. The computation begins by forming Z, x2, x3, . . . , Y -l. (Actually, only those powers xd3 such that dj appears in the representation of n are needed, and this observation often saves some of the work.) Then raise xdo to the mth power and multiply by xdl ; we have computed y1 = ~~~~~~~~ Next, raise y1 to the mth power and multiply by xdz, obtaining y2 = xdom2+d1m+dz. The process continues in this way until yt = xn has been computed. Whenever dj = 0, it is, of course, unnecessary to multiply by xd,. Note that this method reduces to the left-to-right binary method discussed earlier, when m = 2; there is also a less obvious right-to-left m-ary method that takes more memory but only a few more steps (see exercise 9). If m is a small prime, the m-ary method will be particularly efficient for calculating powers of one polynomial modulo another, when the coefficients are treated modulo m (see Eq. 4.6.2-5). A systematic method that gives the minimum number of multiplications for all of the relatively small values of n (in particular, for most n that occur in practical applications) is indicated in Fig. 13. To calculate xn, find n in this tree, and the path from the root to n indicates the sequence of exponents that occur in an efficient evaluation of xn. The rule for generating this power tree appears in exercise 5. Computer tests have shown that the power tree gives optimum results for all of the n listed in the figure. But for large enough values of n the power tree method is not always an optimum procedure; the smallest examples are n = 77, 154, 233. The first case for which the power tree is superior to both the binary method and the factor method is n = 23. The first case for which the factor method beats the power tree method is n = 19879 = 103.193; such cases are quite rare. (For n 5 100,000 the power tree method is better than the factor method 88,803 times; it ties 11,191 times; and it loses only 6 times.) Addition chains. The most economical way to compute xn by multiplication is a mathematical problem with an interesting history. We shall now examine it in detail, not only because it is interesting in its own right, but because it is an excellent example of the theoretical questions that arise in the study of optimum methods of computation. Although we are concerned with multiplication of powers of x, the problem can easily be reduced to addition, since the exponents are additive. This leads us to the following abstract formulation: An addition chain for n is a sequence of integers 1=&J, al, a2, . . . . a,=n (1) with the property that ai = aj + ak, for some k < j < i, (2)
Note: If you are looking for cheap webhost to host and run your apache application check Vision jboss web hosting services

4.6.3 EVALUATION (Disney web site) OF POWERS 443 The great calculator

Sunday, April 29th, 2007

4.6.3 EVALUATION OF POWERS 443 The great calculator al-Kashi stated Algorithm A about 1414 A.D. [Istorike Mat. IssledovaniG 7 (1954), 256-2571. The method is closely related to a proce- dure for multiplication that was actually used by Egyptian mathematicians as early as 1800 B.C.; for if we change step A3 to Y +-Y + 2 and step A5 to 2 +-Z + z , and if we set Y to zero instead of unity in step Al, the algorithm terminates with Y = nz. This is a practical method for multiplication by hand, since it involves only the simple operations of doubling, halving, and adding. It is often called the Russian peasant method of multiplication, since Western visitors to Russia in the nineteenth century found the method in wide use there. The number of multiplications required by Algorithm A is LlgnJ + y(n), where u(n) is the number of ones in the binary representation of n. This is one more multiplication than the left-to-right binary method mentioned at the beginning of this section would require, due to the fact that the first execution of step A3 is simply a multiplication by unity. Because of the bookkeeping time required by this algorithm, the binary method is usually not of importance for small values of n, say n 5 10, unless the time for a multiplication is comparatively large. If the value of n is known in advance, the left-to-right binary method is preferable. In some situations, such as the calculation of C? mod U(X) discussed in Section 4.6.2, it is much easier to multiply by z than to perform a general multiplication or to square a value, so binary methods for exponentiation are primarily suited for quite large n in such cases. If we wish to calculate the exact multiple-precision value of xn, when z is an integer > 1, binary methods are no help unless n is so huge that the high-speed multiplication routines of Section 4.3.3 are involved; and such applications are rare. Similarly, binary methods are usually inappropriate for raising a polynomial to a power; see R. J. Fateman, SIAM J. Computing 3 (1974), 196-213, for a discussion of the extensive literature on polynomial exponentiation. The point of these remarks is that binary methods are nice, but not a panacea. They are most applicable when the time to multiply xj . xk is essentially independent of j and Ic (e.g., for floating point multiplication, or multiplication mod m); in such cases the running time is reduced from order n to order logn. Fewer multiplications. Several authors have published statements (without proof) that the binary method actually gives the minimum possible number of multi- plications. But this is not true. The smallest counterexample is n = 15, when the binary method needs six multiplications, yet we can calculate y = x3 in Tao mul- tiplications and x l5 = y5 in three more, achieving the desired result with only five multiplications. Let us now discuss some other procedures for evaluating xn, for applications when n is known in advance (e.g., within an optimizing compiler). The factor method is based on a factorization of n. If n = pq, where p is the smallest prime factor of n and q > 1, we may calculate xn by first calculating xp and then raising this quantity to the qth power. If n is prime, we may calculate xnP1 and multiply by x. And, of course, if n = 1, we have xn with no calculation at all. Repeated application of these rules gives a procedure for evaluating xn,
Note: If you are looking for high quality webhost to host and run your jsp application check Vision christian web host services

442 ARITHMETIC (Yahoo web space) 4.6.3 Fig. 12. Evaluation of xn,

Saturday, April 28th, 2007

442 ARITHMETIC 4.6.3 Fig. 12. Evaluation of xn, based on a right-teleft scan of the binary notation for n. tion in the hardware of a binary computer. The method can also be readily programmed for either binary or decimal computers; but it requires that the binary representation of n be scanned from left to right, while it is usually more convenient to do this from right to left. For example, with a binary computer we can shift the binary value of n to the right one bit at a time until zero is reached; with a decimal computer we can divide by 2 (or, equivalently, multiply by 5 or 4) to deduce the binary representation from right to left. Therefore the following algorithm, based on a right-to-left scan of the number, is often more convenient: Algorithm A (Right-to-left binary method for exponentiation). This algorithm evaluates 9, where n is a positive integer. (Here z belongs to any algebraic system in which an associative multiplication, with identity element 1, has been defined.) Al. [Initialize.] Set N t 72, Y t 1, 2 c Z. A2. [Halve N.] (At this point, zn = Y. ZN.) Set N + LN/2j, and at the same time determine whether N was even or odd. If N was even, skip to step A5. A3. [Multiply Y by 2.1 Set Y c 2 times Y. A4. [N = O?] If N = 0, the algorithm terminates, with Y as the answer. A5. [Square 2.1 Set 2 t Z times 2, and return to step A2. 1 As an example of Algorithm A, consider the steps in the evaluation of x23: N Y z After step Al 23 1 X After step A4 11 X X After step A4 5 x3 x2 After step A4 2 27 x4 After step A4 0 X23 Xl6 A MIX program corresponding to Algorithm A appears in exercise 2.
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision j2ee hosting services

4.6.3 EVALUATION OF POWERS 441 37. [HM24] (George (Web host)

Saturday, April 28th, 2007

4.6.3 EVALUATION OF POWERS 441 37. [HM24] (George E. Collins.) Let dl, , d, be positive integers whose sum is n, and let p be prime. What is the probability that the irreducible factors of a random nth- degree integer polynomial U(Z) have degrees dl, , d,, when it is completely factored modulo p? Show that this probability is asymptotically the same as the probability that a random permutation on n elements has cycles of lengths &, . . . , d,. 38. [A4481 (V. R. Pratt.) If possible, find a way to construct proofs of irreducibility for all polynomials that are irreducible over the integers, so that the length of proof is at most a polynomial in deg(u) and the length of its coefficients. (Only a bound on the length of proof is requested here, as in exercise 4.5.4-17, not a bound on the time needed to find such a proof.) 4.6.3. Evaluation of Powers In this section we shall study the interesting problem of computing zn efficiently, given z and n, where n is a positive integer. Suppose, for example, that we need to compute x16; we could simply start with x and multiply by x fifteen times. But it is possible to obtain the same answer with only four mul- tiplications, if we repeatedly take the square of each partial result, successively forming x2, x4, x8, 216. The same idea applies, in general, to any value of n, in the following way: Write n in the binary number system (suppressing zeros at the left). Then replace each 1 by the pair of letters SX, replace each 0 by S, and cross off the SX that now appears at the left. The result is a rule for computing xn, if S is interpreted as the operation of squaring, and if x is interpreted as the operation of multiplying by x. For example, if n = 23, its binary representation is 10111; so we form the sequence SX S SX SX SX and remove the leading SX to obtain the rule SSXSXSX. This rule states that we should square, square, multiply by z, square, multiply by x, square, and multiply by x ; in other words, we should successively compute x2, x4, x5, x1 , x1 , x22, x23. This binary method is easily justified by a consideration of the sequence of exponents in the calculation: If we reinterpret S as the operation of multiplying by 2 and x as the operation of adding 1, and if we start with 1 instead of x, the rule will lead to a computation of n because of the properties of t,he binary number system. The method is quite ancient; it appeared before 200 B.C. in Pingala s Hindu classic Chandah-sOtra [see B. Datta and A. N. Singh, History of Hindu Mathematics 1 (Bombay: 1935), 761; however, there seem to be no other references to this method outside of India during the next 1000 years. A clear discussion of how to compute 2n efficiently for arbitrary n was given by al-Uqlidisi of Damascus in 952 A.D.; see The Arithmetic of al-Zlqlidisi by A. S. Saidan (Dordrecht: D. Reidel, 1975), 341-342, where the general ideas are illustrated for n = 51. See also al-BirQni s Chronology of Ancient Nations, ed. and translated by E. Sachau (London: 1879), 132-136; this eleventh-century Arabic work had great influence. The S-and-X binary method for obtaining xn requires no temporary storage except for x and the current partial result, so it is well suited for incorpora-
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision make web site services

440 ARITHMETIC 4.6.2 31. [HMW] Let p be

Saturday, April 28th, 2007

440 ARITHMETIC 4.6.2 31. [HMW] Let p be an odd prime and let d 2 1. Show that there exists a number n(p, d) having the following two properties: (a) For all integers t, exactly n(p, d) irreducible polynomials q(z) of degree d, modulo p, satisfy (x+t)(pd-1)/2 modq(z) = 1. (b) For all integers 0 2 tl < tz < p, exactly n(p,d) irreducible polynomials q(z) of degree d, modulo p, satisfy (Z + tl)(pd- )/2 mod q(z) = (z + t2)(pd-1)/2 modq(z). b 32. [A4301 (Cyclotomic polynomials.) Let Qn(s) = &I,I,,,,,,,,,,=,(~ -uk), where w = elriln; thus, the roots of QJ~(z) are the complex nth roots of unity that aren t mth roots for m < n. (a) Prove that a(z) is a polynomial with integer coeffi- cients, and that Xn -1 = j--J *d(x); *n(x) = U(xd -lynld). dn dn (Cf. exercises 4.5.2-10(b) and 4.5.3-28(c).) (b) P rove that Q%(x) is irreducible over the integers, hence the above formula is the complete factorization of xn -1 over the integers. [Hint: If f(x) is an irreducible factor of Iln(x) over the integers, and if c is a complex number with f(s) = 0, prove that f(sP) = 0 for all primes p not dividing n. It may help to use the fact that x -1 is squarefree modulo p for all such primes.] (c) Discuss the calculation of Iln(x), and tabulate the values for n < 15. 33. [A4181 True or false: If U(X) # 0 and the complete factorization of U(X) modulo p is PI(X) . . . p?(~)~r, then u(x)/gcd(zl(x), U (X)) = PI(X). . .p7(x). b 34. [A&?.51 (Squarefree factorization.) It is clear that any primitive polynomial of a unique factorization domain can be expressed in the form U(X) = u,(x)u~(x)~u~(x) . . . , where the polynomials Us are squarefree and relatively prime to each other. This representation, in which Us is the product of all the irreducible polynomials that divide U(X) exactly j times, is unique except for unit multiples; and it is a useful way to represent polynomials that participate in multiplication, division, and gcd operations. Let GcD(~(x),v(x)) b e a p rocedure that returns three answers: GCD(u(x), 4x1) = (d(x), 4x)/d(x), v(x)/d(x)), where d(x) = gcd(u(x), V(X)). The modular method described in the text following Eq. (25) always ends with a trial division of u(x)/d(x) and v(x)/d(x), t o make sure that no unlucky prime has been used, so the quantities u(x)/d(x) and w(x)/d( x) are byproducts of the gcd computation; thus we can compute GCD(u(x), V(X)) essentially as fast as gcd(u(x), V(X)) when we are using a modular method. Devise a procedure that obtains the squarefree representation (ul(x), 112(x), . . . ) of a given primitive polynomial u(x) over the integers. Your algorithm should perform exactly e computations of a GCD, where e is the largest subscript with LL~(x) # 1; furthermore, each GCD calculation should satisfy (27), so that Hensel s construction can be used. 35. [A&Z?] (D. Y. Y. Yun.) Design an algorithm that computes the squarefree rep- resentation (WI(X), WZ(X), . . .) of W(X) = gcd(zl(x), V(X)) over the integers, given the squarefree representations (Us, Us, . . . ) and (VI(X), 2)2(x), . . . ) of U(X) and V(X). 36. [MZ?7] Extend the procedure of exercise 34 so that it will obtain the squarefree representation (ul(x), UZ(X), . . . ) of a given polynomial U(X) when the coefficient arith- metic is performed modulo p.
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision tomcat hosting services

Web host - 4.6.2 FACTORIZATION OF POLYNOMIALS 439 (b) Let U(Z)

Saturday, April 28th, 2007

4.6.2 FACTORIZATION OF POLYNOMIALS 439 (b) Let U(Z) = v(z)w(z), where deg(v) = m and deg(w) = k. Use the results proved in exercise 20 to show that we always have ]zl]]w] 5 f(m, k) [ul, where f(m, k) = ($)(ik). (c) Let u(Q,. . . ,zt) = ZI(ZI,. ,z~)w(zI,. . . ,~t), where w and w have the respective degrees m3 and Ic, in x3. Prove that lwllwl 2 (f(ml, h). f(mt, kt)) %4. b 22. [M.Z4] (Hensel s Lemma.) Let u(x), Qx), we(x), a(x), b(x) be polynomials with integer coefficients, satisfying the relations U(X) = w,(x)w,(x) (modulo p ), a(x)v,(x) + b(x)?&(x) G 1 (modulo p), where p is prime, e 2 1, we(x) is manic, deg(a) < deg(w,), deg(b) < deg(w,), and deg(u) = deg(w,) + deg(w,). Show how to compute polynomials v,+~(z) = we(z) and w,+r(x) = w,(x) (modulo p ), satisfying the same conditions with e increased by 1. Furthermore, prove that w,+r(x) and we+l(x) are unique, modulo pew . Use your method for p = 2 to prove that (22) is irreducible over the integers, starting with its factorization mod 2 found in exercise 10. (Note that Euclid s extended algorithm, exercise 4.6.1-3, will get the process started for e = 1.) 23. [HM93] Let u(z) be a squarefree polynomial with integer coefficients. Prove that there are only finitely many primes p such that u(x) is not squarefree modulo p. 24. [A&%] The text speaks only of factorization over the integers, not over the field of rational numbers. Explain how to find the complete factorization of a polynomial with rational coefficients, over the field of rational numbers. 25. [M.%] What is the complete factorization of x5 + x4 + x2 + x + 2 over the field of rational numbers? 26. [ZOO] Let dl, . , d, be the degrees of the irreducible factors of U(X) modulo p, with proper multiplicity, so that dl+. . . + d, = n = deg(u). Explain how to compute the set { deg(w) I u(x) c W(Z)W(Z) (modulo p) f or some W(Z), W(Z)} by performing O(r) operations on binary bit strings of length n. 27. [HM30] Prove that a random primitive polynomial over the integers is almost always irreducible, in some appropriate sense. 28. [A&%] The distinct-degree factorization procedure is lucky when there is at most one irreducible polynomial of each degree d; then gd(x) never needs to be broken into factors. What is the probability of such a lucky circumstance, when factoring a random polynomial of degree n, modulo p, for fixed n as p + oo? 29. [A&% ] Let g(s) be a product of two or more distinct irreducible polynomials of degree d, modulo an odd prime p. Prove that gcd(g(x), t(~)(~~-l)/~ -1) will be a proper factor of g(x) with probability 2 l/2 -1/(2pd), f or any fixed g(z), when t(z) is selected at random from among the p2d polynomials of degree < 2d modulo p. 30. [M%] Prove that if q(z) is an irreducible polynomial of degree d, modulo p, and if t(x) is any polynomial, then the value of (t(~)+t(z)~ +t(~)~ +. . . +t(~)~~-l) mod q(z) is an integer (i.e., a polynomial of degree 5 0). Use this fact to design a probabilistic algorithm for factoring a product gd(x) of degree-d irreducibles, analogous to (21), for the case p = 2.
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision shared web hosting services