Calculating Accumulations

Zhenjiang Hu,Hideya Iwasaki,Masato Takeichi
DOI: https://doi.org/10.1007/bf03037434
1999-01-01
New Generation Computing
Abstract:Theaccumulation strategy consists of generalizing a function over an algebraic data structure by inclusion of an extra parameter, anaccumulating parameter, for reusing and propagating intermediate results. However, there remain two major difficulties in this accumulation strategy. One is to determinewhere andwhen to generalize the original function. The other, surprisingly not yet receiving its worthy consideration, is how to manipulate accumulations. To overcome these difficulties, we propose to formulate accumulations ashigher order catamorphisms, and provide several general transformation rules for calculating accumulations (i.e., finding and manipulating accumulations) bycalculation-based (rather than a search-based) program transformation methods. Some examples are given for illustration.
What problem does this paper attempt to address?