DeepAI AI Chat
Log In Sign Up

Tight Polynomial Worst-Case Bounds for Loop Programs

06/24/2019
by   Amir M. Ben-Amram, et al.
Dublin City University
The Academic College of Tel Aviv Yaffo
0

In 2008, Ben-Amram, Jones and Kristiansen showed that for a simple programming language—representing non-deterministic imperative programs with bounded loops, and arithmetics limited to addition and multiplication - it is possible to decide precisely whether a program has certain growth-rate properties, in particular whether a computed value, or the program's running time, has a polynomial growth rate. A natural and intriguing problem was to move from answering the decision problem to giving a quantitative result, namely, a tight polynomial upper bound. This paper shows how to obtain asymptotically-tight, multivariate, disjunctive polynomial bounds for this class of programs. This is a complete solution: whenever a polynomial bound exists it will be found. A pleasant surprise is that the algorithm is quite simple; but it relies on some subtle reasoning. An important ingredient in the proof is the forest factorization theorem, a strong structural result on homomorphisms into a finite monoid.

READ FULL TEXT

page 1

page 2

page 3

page 4

10/06/2020

Tight Polynomial Bounds for Loop Programs in Polynomial Space

We consider the following problem: given a program, find tight asymptoti...
01/23/2019

Towards Tight(er) Bounds for the Excluded Grid Theorem

We study the Excluded Grid Theorem, a fundamental structural result in g...
02/18/2022

Worst-Case to Average-Case Reductions via Additive Combinatorics

We present a new framework for designing worst-case to average-case redu...
03/10/2023

Multivariate to Bivariate Reduction for Noncommutative Polynomial Factorization

Based on a theorem of Bergman we show that multivariate noncommutative p...
10/30/2020

Typable Fragments of Polynomial Automatic Amortized Resource Analysis

Being a fully automated technique for resource analysis, automatic amort...
05/23/2019

Computing Expected Runtimes for Constant Probability Programs

We introduce the class of constant probability (CP) programs and show th...
03/19/2019

Semantic programming: method Δ_0^p-enrichments and polynomial computable fixed points

Computer programs fast entered in our live and the questions associated ...