Skip to main content
Log in

Partial Evaluation of the Euclidean Algorithm, Revisited

  • Published:
Higher-Order and Symbolic Computation

Abstract

The usual formulation of the Euclidean Algorithm is not well-suited to be specialized with respect to one of its arguments, at least when using offline partial evaluation. This has led Danvy and Goldberg to reformulate it using bounded recursion. In this article, we show how The Trick can be used to obtain a formulation of the Euclidean Algorithm with good binding-time separation. This formulation of the Euclidean Algorithm specializes effectively using standard offline partial evaluation.

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. Bentley, J.L. Writing Efficient Programs. Prentice Hall, Englewood Cliffs, NJ, 1982.

    Google Scholar 

  2. Bondorf, A. Similix Manual, System Version 4.0. Technical report. DIKU, University of Copenhagen, Denmark, 1991.

    Google Scholar 

  3. Danvy, O. and Goldberg, M. Partial evaluation of the Euclidian algorithm. Lisp and Symbolic Computation, 10(2):101–111, 1997.

    Google Scholar 

  4. Dybvig, R.K. The Scheme Programming Language. Prentice Hall, Englewood Cliffs, NJ, 1987.

    Google Scholar 

  5. Jones, N.D., Gomard, C.K., and Sestoft, P. Partial Evaluation and Automatic Program Generation. Prentice Hall, New York, 1993.

    Google Scholar 

  6. Kelsey, R., Clinger, W., and Rees, J. (Eds.). Revised5 report on the algorithmic language scheme. Higher-Order and Symbolic Computation, 11(1):7–105, 1998.

  7. Knuth, D.E. The art of computer programming, Fundamental Algorithms. vol. 1, 3rd edition. Addison-Wesley, Reading, MA, 1997.

    Google Scholar 

  8. Lee, C.S. Ph.D. Thesis. Department of Computer Science, University of Western Australia, forthcoming.

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Lee, C. Partial Evaluation of the Euclidean Algorithm, Revisited. Higher-Order and Symbolic Computation 12, 203–212 (1999). https://doi.org/10.1023/A:1010004307057

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1023/A:1010004307057

Navigation