Abstract
This paper describes a systematic method for optimizing recursive functions using both indexed and recursive data structures. The method is based on two critical ideas: first, determining a minimal input increment operation so as to compute a function on repeatedly incremented input; second, determining appropriate additional values to maintain in appropriate data structures, based on what values are needed in computation on an incremented input and how these values can be established and accessed. Once these two are determined, the method extends the original program to return the additional values, derives an incremental version of the extended program, and forms an optimized program that repeatedly calls the incremental program. The method can derive all dynamic programming algorithms found in standard algorithm textbooks. There are many previous methods for deriving efficient algorithms, but none is as simple, general, and systematic as ours.
| Original language | English |
|---|---|
| Pages | 108-118 |
| Number of pages | 11 |
| DOIs | |
| State | Published - 2002 |
| Event | 2002 ACM SIGPLAN Workshop on Partial Evaluation and Semantics-Based Program Manipulation (PEPM'02) - Portland, OR, United States Duration: Jan 14 2002 → Jan 15 2002 |
Conference
| Conference | 2002 ACM SIGPLAN Workshop on Partial Evaluation and Semantics-Based Program Manipulation (PEPM'02) |
|---|---|
| Country/Territory | United States |
| City | Portland, OR |
| Period | 01/14/02 → 01/15/02 |
Fingerprint
Dive into the research topics of 'Program optimization using indexed and recursive data structures'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver