Abstract
Given an integerk, and anarbitrary integer greater than\(2^{2^k } \), we prove a tight bound of\(\Theta (\sqrt k )\) on the time required to compute\(2^{2^k } \) with operations {+, −, *, /, ⌊·⌋, ≤}, and constants {0, 1}. In contrast, when the floor operation is not available this computation requires Ω(k) time. Using the upper bound, we give an\(O(\sqrt {\log n} )\) time algorithm for computing ⌊log loga⌋, for alln-bit integersa. This upper bound matches the lower bound for computing this function given by Mansour, Schieber, and Tiwari. To the best of our knowledge these are the first non-constant tight bounds for computations involving the floor operation.
Similar content being viewed by others
References
A. Aho, J. Hopcroft, andJ. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, Ma, 1974.
L. Babai, B. Just, andF. Meyer auf der Heide,On the limits of computations with the floor function, Inform. and Comput.78 (1988), 99–107.
E. Dittert andM. O'Donnell,Lower bounds for sorting with realistic instruction sets, IEEE Trans. on Computers34 (1985), 311–317. See also,Correction to: Lower bounds for sorting with realistic instruction sets, IEEE Trans. on Computers35 (1986), 932.
O. H. Ibarra, S. Moran, andL. E. Rosier,On the control power of integer division, Theor. Computer Science24 (1983), 35–52.
C. Lautemann andF. Meyer auf der Heide,Lower time bounds for integer programming with two variables, Inform. Process. Lett.21 (1985), 101–105.
Y. Mansour, B. Schieber, and P. Tiwari,The complexity of approximating the square root, in Proc. 30th IEEE Symp. on Foundations of Computer Science, October 1989, 325–330.
Y. Mansour, B. Schieber, andP. Tiwari,A lower bound for integer greatest common divisor computations, J. Assoc. Comput. Mach.38 (1991), 453–471.
Y. Mansour, B. Schieber, andP. Tiwari,Lower bounds for computations with the floor operation, SIAM J. Comput.20 (1991), 315–327.
W. Paul and J. Simon,Decision trees and random access machines, in Monographie de L'Enseignement Mathématique30 (1981), 331–340.
L. Stockmeyer,Arithmetic versus boolean operations in idealized register machines, Tech. Rep. RC 5954, IBM T.J. Watson Research Center, Yorktown Heights, April 1976.
V. Strassen,Berechnung und Programm I., Acta Inform.1 (1972), 320–335.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Bshouty, N.H., Mansour, Y., Schieber, B. et al. Fast exponentiation using the truncation operation. Comput Complexity 2, 244–255 (1992). https://doi.org/10.1007/BF01272076
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF01272076