An Algorithm for Exact Division
Autor: | Tudor Jebelean |
---|---|
Rok vydání: | 1993 |
Předmět: |
Discrete mathematics
Exact division Algebra and Number Theory Binary GCD algorithm Euclidean division Division algorithm Short division Polynomial long division Computational Mathematics ComputingMethodologies_SYMBOLICANDALGEBRAICMANIPULATION Output-sensitive algorithm Arithmetic Remainder Algorithm Mathematics |
Zdroj: | Journal of Symbolic Computation. 15:169-180 |
ISSN: | 0747-7171 |
DOI: | 10.1006/jsco.1993.1012 |
Popis: | Current computer algebra systems use the quotient-remainder algorithm for division of long integers even when it is known in advance that the remainder is zero. We propose an algorithm which computes the quotient of two long integers in this particular situation, starting from the least-significant digits of the operands. This algorithm is particularly efficient when the radix is a prime number or a power of 2. The computing time of this new algorithm is smaller than the computing time of the classical division algorithm. If the length of the result is much smaller than the lengths of the inputs, then the speed-up may be quite significant, as it is confirmed by practical experiments. Most importantly, however, the new algorithm is better suited for systolic parallelization in a "least-significant digit first" pipelined manner, and therefore it is suitable for aggregation with other systolic algorithms for the arithmetic of long integers and long rationals. We also present applications of this algorithm in integer GCD computation and in division modulo a power of 2. |
Databáze: | OpenAIRE |
Externí odkaz: |