Skip to main content
Log in

Fast exponentiation using the truncation operation

  • Published:
computational complexity Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. A. Aho, J. Hopcroft, andJ. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, Ma, 1974.

    Google Scholar 

  2. 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.

    Google Scholar 

  3. 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.

    Google Scholar 

  4. O. H. Ibarra, S. Moran, andL. E. Rosier,On the control power of integer division, Theor. Computer Science24 (1983), 35–52.

    Google Scholar 

  5. C. Lautemann andF. Meyer auf der Heide,Lower time bounds for integer programming with two variables, Inform. Process. Lett.21 (1985), 101–105.

    Google Scholar 

  6. 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.

  7. Y. Mansour, B. Schieber, andP. Tiwari,A lower bound for integer greatest common divisor computations, J. Assoc. Comput. Mach.38 (1991), 453–471.

    Google Scholar 

  8. Y. Mansour, B. Schieber, andP. Tiwari,Lower bounds for computations with the floor operation, SIAM J. Comput.20 (1991), 315–327.

    Google Scholar 

  9. W. Paul and J. Simon,Decision trees and random access machines, in Monographie de L'Enseignement Mathématique30 (1981), 331–340.

  10. L. Stockmeyer,Arithmetic versus boolean operations in idealized register machines, Tech. Rep. RC 5954, IBM T.J. Watson Research Center, Yorktown Heights, April 1976.

    Google Scholar 

  11. V. Strassen,Berechnung und Programm I., Acta Inform.1 (1972), 320–335.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01272076

Subject classifications

Navigation