首页> 外文会议>Logic and Theory of Algorithms >Linear, Polynomial or Exponential? Complexity Inference in Polynomial Time
【24h】

Linear, Polynomial or Exponential? Complexity Inference in Polynomial Time

机译:线性,多项式还是指数式?多项式时间的复杂性推断

获取原文
获取原文并翻译 | 示例

摘要

We present a new method for inferring complexity properties for imperative programs with bounded loops. The properties handled are: polynomial (or linear) boundedness of computed values, as a function of the input; and similarly for the running time. It is well known that complexity properties are undecidable for a Turing-complete programming language. Much work in program analysis overcomes this obstacle by relaxing the correctness notion: one does not ask for an algorithm that correctly decides whether the property of interest holds or not, but only for "yes" answers to be sound. In contrast, we reshaped the problem by defining a "core" programming language that is Turing-incomplete, but strong enough to model real programs of interest. For this language, our method is the first to give a certain answer; in other words, our inference is both sound and complete. The essence of the method is that every command is assigned a "complexity certificate", which is a concise specification of dependencies of output values on input. These certificates are produced by inference rules that are compositional and efficiently computable. The approach is inspired by previous work by Niggl and Wunderlich and by Jones and Kristiansen, but use a novel, more expressive kind of certificates.
机译:我们提出了一种新的方法来为有界循环的命令式程序推导复杂性属性。处理的属性是:计算值的多项式(或线性)有界性,作为输入的函数;以及类似的运行时间。众所周知,对于图灵完备的编程语言来说,复杂度属性是不确定的。程序分析中的许多工作通过放松正确性的概念来克服了这一障碍:人们不会要求一种算法来正确地确定感兴趣的属性是否成立,而只是要求“是”的答案。相反,我们通过定义一种“图灵”不完整的“核心”编程语言来重塑该问题,但是这种语言足以模拟感兴趣的真实程序。对于这种语言,我们的方法是第一个给出特定答案的方法。换句话说,我们的推断既合理又完整。该方法的本质是为每个命令分配一个“复杂性证书”,这是输出值对输入的依赖关系的简洁说明。这些证书是根据推理规则生成的,这些推理规则是可组合且可有效计算的。该方法的灵感来自于Niggl和Wunderlich以及Jones和Kristiansen的先前工作,但是使用了一种新颖,更具表现力的证书。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号