arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0512056cs.MScs.CC
收藏

PURRS:面向全自动最坏情况复杂性分析的计算机代数支持

PURRS: Towards Computer Algebra Support for Fully Automatic Worst-Case Complexity Analysis

Roberto Bagnara, Andrea Pescetti, Alessandro Zaccagnini, Enea Zaffanella

摘要:

全自动最坏情况复杂性分析在计算机辅助程序操作中有许多应用。复杂性分析的一个经典而强大的方法是从程序语法中正式推导出一组约束,这些约束表示程序所需资源的界限,然后求解这些约束,可能使用安全近似。在一些有趣的情况下,这些约束采取递归关系的形式。虽然用于求解递归的技术是已知的并且在若干计算机代数系统中实现,但是这些技术并不完全满足全自动复杂性分析的需要:它们仅处理稍微受限的一类递归关系,或者有时需要用户干预,或者它们限于精确解的计算,精确解通常复杂到难以管理,因此在实践中无用。在本文中,我们简要介绍了PURRS,一个系统和软件库,旨在提供所有的应用程序执行或利用最坏情况的复杂性分析的结果所需的计算机代数服务。该系统的能力是通过来自分析的程序在一个特定领域的功能程序设计语言的实时嵌入式系统的例子来说明。

英文摘要:

Fully automatic worst-case complexity analysis has a number of applications in computer-assisted program manipulation. A classical and powerful approach to complexity analysis consists in formally deriving, from the program syntax, a set of constraints expressing bounds on the resources required by the program, which are then solved, possibly applying safe approximations. In several interesting cases, these constraints take the form of recurrence relations. While techniques for solving recurrences are known and implemented in several computer algebra systems, these do not completely fulfill the needs of fully automatic complexity analysis: they only deal with a somewhat restricted class of recurrence relations, or sometimes require user intervention, or they are restricted to the computation of exact solutions that are often so complex to be unmanageable, and thus useless in practice. In this paper we briefly describe PURRS, a system and software library aimed at providing all the computer algebra services needed by applications performing or exploiting the results of worst-case complexity analyses. The capabilities of the system are illustrated by means of examples derived from the analysis of programs written in a domain-specific functional programming language for real-time embedded systems.

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

↑