|
ABSTRACT
There has been a great deal of research done on the evaluation of the complexity of particular algorithms; little effort, however, has been devoted to the mechanization of this evaluation. The ACE (Automatic Complexity Evaluator) system is able to analyze reasonably large programs, like sorting programs, in a fully mechanical way. A time-complexity function is derived from the initial functional program. This function is transformed into its nonrecursive equivalent according to MacCarthy's recursion induction principle, using a predefined library of recursive definitions. As the complexity is not a decidable property, this transformation will not be possible in all cases. The richer the predefined library is, the more likely the system is to succeed. The operations performed by ACE are described and the use of the system is illustrated with the analysis of a sorting algorithm. Related works and further improvements are discussed in the conclusion.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
 |
2
|
|
| |
3
|
|
 |
4
|
|
 |
5
|
|
| |
6
|
DARLINGTON, J., AND BURSTALL, R.M. A system which automatically improves programs. Acta Inf. 6, 1 (1976), 41-60.
|
| |
7
|
DARLINGTON, J. Program transformation. In Functional Programming and Its Applications. J. Darlington, P. Henderson, and D. Turner, Eds. Cambridge University Press, 1982.
|
 |
8
|
|
 |
9
|
John Guttag , James Horning , John Williams, FP with data abstraction and strong typing, Proceedings of the 1981 conference on Functional programming languages and computer architecture, p.11-24, October 18-22, 1981, Portsmouth, New Hampshire, United States
[doi> 10.1145/800223.806758]
|
| |
10
|
|
| |
11
|
LE M~TAYER, D. Analysis of functional programs by program transformation. In Proceedings of 1987 France-Japan Artificial Intelligence and Computer Science Symposium (Cannes, 1987). North-Holland, Amsterdam.
|
| |
12
|
MACCARTHY, J. A basis for a mathematical theory of computation. In Computer Programming and Formal Systems. P. Braffort, and D. Hirsberg, Eds. North-Holland, Amsterdam, 1963.
|
 |
13
|
|
| |
14
|
|
 |
15
|
|
| |
16
|
WEGBREIT, B. Goal-directed program transformation. IEEE Trans. Softw. Eng. SE-2, 2 (June 1976), 69-80.
|
 |
17
|
|
REVIEW
"D. John Cooke : Reviewer"
The ACE system provides a partial procedure for finding the worst-case
complexity of FP programs. The notion of complexity used is essentially
the (order of magnitude of the) number of recursive calls necessary
for the program evaluation; as suc
more...
|