Relating Accumulative and Non-accumulative Functional Programs

  • Authors:
  • Armin Kühnemann;Robert Glück;Kazuhiko Kakehi

  • Affiliations:
  • -;-;-

  • Venue:
  • RTA '01 Proceedings of the 12th International Conference on Rewriting Techniques and Applications
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

We study the problem to transform functional programs, which intensively use append functions (like inefficient list reversal), into programs, which use accumulating parameters instead (like efficient list reversal). We give an (automatic) transformation algorithm for our problem and identify a class of functional programs, namely restricted 2- modular tree transducers, to which it can be applied. Moreover, since we get macro tree transducers as transformation result and since we also give the inverse transformation algorithm, we have a new characterization for the class of functions induced by macro tree transducers.