Cargando…
Exponential Automatic Amortized Resource Analysis
Automatic amortized resource analysis (AARA) is a type-based technique for inferring concrete (non-asymptotic) bounds on a program’s resource usage. Existing work on AARA has focused on bounds that are polynomial in the sizes of the inputs. This paper presents and extension of AARA to exponential bo...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
2020
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7788609/ http://dx.doi.org/10.1007/978-3-030-45231-5_19 |
_version_ | 1783633063147732992 |
---|---|
author | Kahn, David M. Hoffmann, Jan |
author_facet | Kahn, David M. Hoffmann, Jan |
author_sort | Kahn, David M. |
collection | PubMed |
description | Automatic amortized resource analysis (AARA) is a type-based technique for inferring concrete (non-asymptotic) bounds on a program’s resource usage. Existing work on AARA has focused on bounds that are polynomial in the sizes of the inputs. This paper presents and extension of AARA to exponential bounds that preserves the benefits of the technique, such as compositionality and efficient type inference based on linear constraint solving. A key idea is the use of the Stirling numbers of the second kind as the basis of potential functions, which play the same role as the binomial coefficients in polynomial AARA. To formalize the similarities with the existing analyses, the paper presents a general methodology for AARA that is instantiated to the polynomial version, the exponential version, and a combined system with potential functions that are formed by products of Stirling numbers and binomial coefficients. The soundness of exponential AARA is proved with respect to an operational cost semantics and the analysis of representative example programs demonstrates the effectiveness of the new analysis. |
format | Online Article Text |
id | pubmed-7788609 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2020 |
record_format | MEDLINE/PubMed |
spelling | pubmed-77886092021-01-07 Exponential Automatic Amortized Resource Analysis Kahn, David M. Hoffmann, Jan Foundations of Software Science and Computation Structures Article Automatic amortized resource analysis (AARA) is a type-based technique for inferring concrete (non-asymptotic) bounds on a program’s resource usage. Existing work on AARA has focused on bounds that are polynomial in the sizes of the inputs. This paper presents and extension of AARA to exponential bounds that preserves the benefits of the technique, such as compositionality and efficient type inference based on linear constraint solving. A key idea is the use of the Stirling numbers of the second kind as the basis of potential functions, which play the same role as the binomial coefficients in polynomial AARA. To formalize the similarities with the existing analyses, the paper presents a general methodology for AARA that is instantiated to the polynomial version, the exponential version, and a combined system with potential functions that are formed by products of Stirling numbers and binomial coefficients. The soundness of exponential AARA is proved with respect to an operational cost semantics and the analysis of representative example programs demonstrates the effectiveness of the new analysis. 2020-04-17 /pmc/articles/PMC7788609/ http://dx.doi.org/10.1007/978-3-030-45231-5_19 Text en © The Author(s) 2020 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. |
spellingShingle | Article Kahn, David M. Hoffmann, Jan Exponential Automatic Amortized Resource Analysis |
title | Exponential Automatic Amortized Resource Analysis |
title_full | Exponential Automatic Amortized Resource Analysis |
title_fullStr | Exponential Automatic Amortized Resource Analysis |
title_full_unstemmed | Exponential Automatic Amortized Resource Analysis |
title_short | Exponential Automatic Amortized Resource Analysis |
title_sort | exponential automatic amortized resource analysis |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7788609/ http://dx.doi.org/10.1007/978-3-030-45231-5_19 |
work_keys_str_mv | AT kahndavidm exponentialautomaticamortizedresourceanalysis AT hoffmannjan exponentialautomaticamortizedresourceanalysis |