×

An approximate sign detection method for residue numbers and its application to RNS division. (English) Zbl 0805.68059

Summary: We present new division algorithms for Residue Number Systems (RNS). The algorithms are based on a sign estimation procedure that computes the sign of a residue number to be positive, negative, or indeterminate. In the last case, magnitude of the number is guaranteed to be in a limited interval whose size is related to the cost of the sign estimation process. Our division algorithms resemble SRT (Sweeney, Robertson, and Tocher) division; quotient digits in the set \(\{-1,0,1\}\) are computed one by one. Assume that the RNS has \(n\) moduli, \(n\) residue processors, and \(b\) bits per modulus, and that each \(b\)-bit addition/subtraction takes unit time. Our sign estimation procedure uses relatively small lookup tables and takes \(O(\log n)\) time. The first division algorithm based on the new sign estimation procedure requires \(O(nb\log n)\) time. A second algorithm, which improves the time complexity to \(O(nb)\), is the fastest algorithm proposed thus far. Intermediate between the two algorithms are a number of choices that offer speed/cost tradeoffs.

MSC:

68Q25 Analysis of algorithms and problem complexity
11Y16 Number-theoretic algorithms; complexity
11A07 Congruences; primitive roots; residue systems
68W30 Symbolic computation and algebraic computation
Full Text: DOI

References:

[1] Keir, Y. A.; Cheney, P. W.; Tannenbaum, M., Division and overflow detection in residue number systems, IRE Transactions on Electronic Computers, EC-11, 4, 501-507 (August 1962) · Zbl 0203.16007
[2] Lin, M.-L.; Leiss, E.; McInnis, B., Division and sign detection algorithms for residue number systems, Computers Math. Applic., 10, 4/5, 331-342 (1984) · Zbl 0598.68040
[3] Lu, M.; Chiang, J.-S., A novel division algorithm for the residue number system, IEEE Transactions on Computers, 41, 8, 1026-1032 (August 1992) · Zbl 1397.65334
[4] Banerji, D. K.; Cheung, T. Y.; Ganesan, V., A high speed division method in residue arithmetic, (Proceedings of the Fifth Symposium on Computer Arithmetic (May 1981), IEEE Press), 158-164 · Zbl 0538.68032
[5] Chren, W. A., A new residue number system division algorithm, Computers Math. Applic., 19, 7, 13-29 (1990) · Zbl 0687.68022
[6] Kinoshita, E.; Kosako, H.; Kojima, Y., General division in the symmetric residue number system, IEEE Transactions on Computers, C-22, 2, 134-142 (February 1973) · Zbl 0248.68030
[7] Szabo, N.; Tanaka, R. I., Residue Arithmetic and its Applications to Computer Technology (1967), McGraw-Hill · Zbl 0168.15303
[8] Hwang, K., Computer Arithmetic, Principles, Architecture, and Design (1979), John Wiley & Sons, Inc: John Wiley & Sons, Inc New York
[9] Hung, C. Y.; Parhami, B., Fast RNS division algorithms for fixed divisors with application to RSA encryption (March 1993), University of California, Department of Electrical and Computer Engineering, Manuscript
This reference list is based on information provided by the publisher or from digital mathematics libraries. Its items are heuristically matched to zbMATH identifiers and may contain data conversion errors. In some cases that data have been complemented/enhanced by data from zbMATH Open. This attempts to reflect the references listed in the original paper as accurately as possible without claiming completeness or a perfect matching.