Discrete Weighted Transforms and Large-Integer Arithmetic

From MaRDI portal





As an extension to the technique of using the discrete Fourier transform to multiply two large integers, the concept of a discrete weighted transform (DWT) is introduced and shown, in certain situations, to improve the speed of multiplication by obviating zero-padding of digits. For an integer \(x\) having digits \(x_0, x_1, \dots\) in some base representation, define the signal of \(x\) as the collection of digits \({\mathbf x} = \{x_j : 0 \leq j < N\}\). For scalars \(A\) a scalar-signal product is defined by \(A {\mathbf x} = \{Ax_j\}\). For signals \({\mathbf a}\), \({\mathbf x}\) a signal-signal product is defined by \({\mathbf a} x = \{a_j x_j\}\) and when all signal elements are nonzero, an inverse signal is defined as \({\mathbf a}^{-1} = \{a_j^{-1}\}\). The DWT of the signal \({\mathbf X}\) with weight signal \({\mathbf a}\) (nonzero components) is \[ X_k = \sum^{N - 1}_{j = 0} a_j x_j g^{-jk} \] where \(g\) is a primitive \(N\)th root of unity in an appropriate domain. The inverse DWT is \[ x_j = (Na_j)^{-1} \sum^{N - 1}_{k = 0} X_k g^{jk}. \] These equations are denoted \({\mathbf X} = DWT (N, {\mathbf a}) {\mathbf x}\) and \({\mathbf x} = DWT^{-1} (N, {\mathbf a}) {\mathbf X}\). For \({\mathbf a}\) the all ones vector the DWT is the discrete Fourier transform. The weighted convolution algorithm for multiplication of \(x,y\) is then to compute \({\mathbf X} = DWT (N, {\mathbf a}) {\mathbf x}\) and \({\mathbf Y} = DWT (N, {\mathbf a}) {\mathbf y}\) for a given digit representation. For \({\mathbf Z} = {\mathbf X} Y\) compute \({\mathbf z} = DWT^{-1} (N, {\mathbf a}) {\mathbf Z}\). After a rounding operation on \({\mathbf z}\) the digits \(\{z_n\}\) are adjusted to the given digit representation. The effectiveness of the technique for Fermat and Mersenne numbers is investigated and the application to integer factorization is considered.











This page was built for publication: Discrete Weighted Transforms and Large-Integer Arithmetic

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q4286602)