Skip to main navigation Skip to search Skip to main content

Comparing cost functions in resource analysis

  • Elvira Albert
  • , Puri Arenas
  • , Samir Genaim
  • , Israel Herraiz
  • , German Puebla

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

11 Scopus citations

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.

Original languageEnglish
Title of host publicationFoundational and Practical Aspects of Resource Analysis - First International Workshop, FOPARA 2009, Revised Selected Papers
Pages1-17
Number of pages17
DOIs
StatePublished - 16 Nov 2010
Externally publishedYes
Event1st International Workshop on Foundational and Practical Aspects of Resource Analysis, FOPARA 2009 - Eindhoven, Netherlands
Duration: 6 Nov 20096 Nov 2009

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume6324 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference1st International Workshop on Foundational and Practical Aspects of Resource Analysis, FOPARA 2009
Country/TerritoryNetherlands
CityEindhoven
Period6/11/096/11/09

ASJC Scopus subject areas

  • Theoretical Computer Science
  • General Computer Science

Fingerprint

Dive into the research topics of 'Comparing cost functions in resource analysis'. Together they form a unique fingerprint.

Cite this