Abstract
Transforming recursion into iteration eliminates the use of stack frames during program execution. It has been studied extensively. This paper describes a powerful and systematic method, based on incrementalization, for transforming general recursion into iteration: identify an input increment, derive an incremental version under the input increment, and form an iterative computation using the incremental version. Exploiting incrementalization yields iterative computation in a uniform way and also allows additional optimizations to be explored cleanly and applied systematically, in most cases yielding iterative programs that use constant additional space, reducing additional space usage asymptotically, and run much faster. We summarize major optimizations, complexity improvements, and performance measurements.
| Original language | English |
|---|---|
| Pages | 73-82 |
| Number of pages | 10 |
| State | Published - 2000 |
| Event | 2000 ACM SIGPLAN Workshop on Partial Evaluation and Semantics-Based Program Manipulation (PEPM'00) - Boston, MA, USA Duration: Jan 22 2000 → Jan 23 2000 |
Conference
| Conference | 2000 ACM SIGPLAN Workshop on Partial Evaluation and Semantics-Based Program Manipulation (PEPM'00) |
|---|---|
| City | Boston, MA, USA |
| Period | 01/22/00 → 01/23/00 |
Fingerprint
Dive into the research topics of 'From recursion to iteration: What are the optimizations?'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver