Automatic inference of upper bounds for recurrence relations in cost analysis

  • Elvira Albert
  • , Puri Arenas
  • , Samir Genaim
  • , Germán Puebla

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

67 Scopus citations

Abstract

The classical approach to automatic cost analysis consists of two phases. Given a program and some measure of cost, we first produce recurrence relations (RRs) which capture the cost of our program in terms of the size of its input data. Second, we convert such RRs into closed form (i.e., without recurrences). Whereas the first phase has received considerable attention, with a number of cost analyses available for a variety of programming languages, the second phase has received comparatively little attention. In this paper we first study the features of RRs generated by automatic cost analysis and discuss why existing computer algebra systems are not appropriate for automatically obtaining closed form solutions nor upper bounds of them. Then we present, to our knowledge, the first practical framework for the fully automatic generation of reasonably accurate upper bounds of RRs originating from cost analysis of a wide range of programs. It is based on the inference of ranking functions and loop invariants and on partial evaluation.

Original languageEnglish
Title of host publicationStatic Analysis - 15th International Symposium, SAS 2008, Proceedings
Pages221-237
Number of pages17
DOIs
StatePublished - 13 Aug 2008
Externally publishedYes
Event15th International Static Analysis Symposium, SAS 2008 - Valencia, Spain
Duration: 16 Jul 200818 Jul 2008

Publication series

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

Conference

Conference15th International Static Analysis Symposium, SAS 2008
Country/TerritorySpain
CityValencia
Period16/07/0818/07/08

ASJC Scopus subject areas

  • Theoretical Computer Science
  • General Computer Science

Fingerprint

Dive into the research topics of 'Automatic inference of upper bounds for recurrence relations in cost analysis'. Together they form a unique fingerprint.

Cite this