Partial Evaluation of the Euclidean Algorithm, Revisited

  • Authors:
  • C. S. Lee

  • Affiliations:
  • Department of Computer Science, University of Western Australia, Nedlands, Western Australia 6009. leecs@cs.uwa.edu.au

  • Venue:
  • Higher-Order and Symbolic Computation
  • Year:
  • 1999

Quantified Score

Hi-index 0.00

Visualization

Abstract

The usual formulation of the Euclidean Algorithm is notwell-suited to be specialized with respect to one of itsarguments, at least when using offline partial evaluation. Thishas led Danvy and Goldberg to reformulate it using boundedrecursion. In this article, we show how The Trick can beused to obtain a formulation of the Euclidean Algorithm with goodbinding-time separation. This formulation of the EuclideanAlgorithm specializes effectively using standard offline partialevaluation.