arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1005.0518cs.LOcs.PL
收藏

关于强制规划的可判定增长率性质

On Decidable Growth-Rate Properties of Imperative Programs

Amir M. Ben-Amram

摘要:

2008年,本-阿姆拉姆、琼斯和克里斯蒂安森指出,对于一个简单的“核心”程序设计语言--一种有界循环的命令式语言,以及仅限于加法和乘法的算术--可以精确地决定一个程序是否具有某些增长率属性,即计算值或运行时间的多项式(或线性)界限。这项工作强调了核心语言在减轻程序属性臭名昭著的不可判定性方面的作用,以便处理可判定问题。一个自然而有趣的问题是,是否可以向核心语言添加更多的元素,提高其实用性,同时保持增长率属性的可判定性。特别是,所提出的方法无法处理将变量重置为零的命令。本文介绍了如何处理重置。分析是在一个逻辑风格(证明规则),其复杂性被证明是PSPACE-完全的(相比之下,没有重置,问题是PTIME)。分析算法以一种有趣的方式从以前的解决方案演变而来:焦点从证明一个界限转移到反驳它,算法自上而下而不是自下而上。

英文摘要:

In 2008, Ben-Amram, Jones and Kristiansen showed that for a simple "core" programming language - an imperative language with bounded loops, and arithmetics limited to addition and multiplication - it was possible to decide precisely whether a program had certain growth-rate properties, namely polynomial (or linear) bounds on computed values, or on the running time. This work emphasized the role of the core language in mitigating the notorious undecidability of program properties, so that one deals with decidable problems. A natural and intriguing problem was whether more elements can be added to the core language, improving its utility, while keeping the growth-rate properties decidable. In particular, the method presented could not handle a command that resets a variable to zero. This paper shows how to handle resets. The analysis is given in a logical style (proof rules), and its complexity is shown to be PSPACE-complete (in contrast, without resets, the problem was PTIME). The analysis algorithm evolved from the previous solution in an interesting way: focus was shifted from proving a bound to disproving it, and the algorithm works top-down rather than bottom-up.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑