Recursion Removal from Recursive Programs with Only One Descent Function(Fundamentals of Software and Theory of Programs)
スポンサーリンク
概要
- 論文の詳細を見る
Recursive programs are often easier to read and write than iterative ones, but their execution frequently requires large numbers of procedure calls and stack operations. This causes problems in program optimization related to inline coding and the locality of data references. In addition to these problems, defining programs recursively sometimes leads to repetitive execution of similar computations, causing programs to have exponential time complexity. As a result, recursion removal methods, which transform a given recursive program to an iterative one without using the stack and increasing the amount of computation time, have been studied since the 1970s. In 1998, our group proposed a recursion removal method for a linear recursive program. In this paper, we extend the method to deal with non-linear recursive programs with one descent function (RPODs), which are programs of the form f(x)=if p(x) then b(x) else a(c(x), f(d(x)), f(d^2(x)), ..., f(d^n(x))). First, we define the cumulative function for an RPOD. Next, based on the new cumulative function, several transformation techniques for RPODs are shown. These include a unified method of deriving logarithmic-order iterative programs or loop-free programs. Finally, the relationships between our method and various tupling strategies are discussed.
- 社団法人電子情報通信学会の論文
- 2005-02-01
著者
-
FUTAMURA YOSHIHIKO
School of Science and Engineering, Waseda University
-
Futamura Yoshihiko
School Of Science And Engineering Waseda University
-
ICHIKAWA Yusuke
Graduate School of Science and Engineering, Waseda University
-
KONISHI Zenjiro
Institute for Software Production Technology, Waseda University
-
Ichikawa Yusuke
Graduate School Of Science And Engineering Waseda University
-
Konishi Zenjiro
Institute For Software Production Technology Waseda University
関連論文
- Recursion Removal and Introduction Using Assignments
- Recursion Removal from Recursive Programs with Only One Descent Function(Fundamentals of Software and Theory of Programs)
- Automatic generation of a Boyer-Moore type pattern matcher from a naive pattern matcher