Title
Comparing cost functions in resource analysis
Abstract
Cost functions provide information about the amount of resources required to execute a program in terms of the sizes of input arguments. They can provide an upper-bound, a lower-bound, or the average-case cost. Motivated by the existence of a number of automatic cost analyzers which produce cost functions, we propose an approach for automatically proving that a cost function is smaller than another one. In all applications of resource analysis, such as resource-usage verification, program synthesis and optimization, etc., it is essential to compare cost functions. This allows choosing an implementation with smaller cost or guaranteeing that the given resource-usage bounds are preserved. Unfortunately, automatically generated cost functions for realistic programs tend to be rather intricate, defined by multiple cases, involving non-linear subexpressions (e.g., exponential, polynomial and logarithmic) and they can contain multiple variables, possibly related by means of constraints. Thus, comparing cost functions is far from trivial. Our approach first syntactically transforms functions into simpler forms and then applies a number of sufficient conditions which guarantee that a set of expressions is smaller than another expression. Our preliminary implementation in the COSTA system indicates that the approach can be useful in practice.
Year
DOI
Venue
2009
10.1007/978-3-642-15331-0_1
FOPARA
Keywords
Field
DocType
resource-usage bound,preliminary implementation,average-case cost,automatic cost analyzer,realistic program,multiple variable,multiple case,smaller cost,resource analysis,program synthesis,cost function
Mathematical optimization,Exponential function,Expression (mathematics),Polynomial,Resource analysis,Program synthesis,Computer science,Algorithm,Logarithm
Conference
Volume
ISSN
ISBN
6324
0302-9743
3-642-15330-5
Citations 
PageRank 
References 
11
0.58
10
Authors
5
Name
Order
Citations
PageRank
Elvira Albert1110068.19
Puri Arenas244522.76
Samir Genaim389144.31
Israel Herraiz450326.83
Germán Puebla5147876.38