基于类型的对数摊销复杂度分析
Type-Based Analysis of Logarithmic Amortised Complexity
摘要:
我们介绍了一种新的摊销资源分析中的类型和效果系统。我们的分析是根据物理学家的摊销分析方法制定的,并且是基于潜力的。该类型系统利用对数势函数,是第一个表现出 * 对数摊销复杂性 * 的系统。与我们的方法,我们的目标是自动分析的自我调整数据结构,如splay树,到目前为止,只有手动分析的文献。特别是,我们已经实现了一个半自动化的原型,它成功地分析了zig-zig情况下的 *splaying*,一旦类型注释是固定的。
英文摘要:
We introduce a novel amortised resource analysis couched in a type-and-effect system. Our analysis is formulated in terms of the physicist's method of amortised analysis, and is potential-based. The type system makes use of logarithmic potential functions and is the first such system to exhibit *logarithmic amortised complexity*. With our approach we target the automated analysis of self-adjusting data structures, like splay trees, which so far have only manually been analysed in the literature. In particular, we have implemented a semi-automated prototype, which successfully analyses the zig-zig case of *splaying*, once the type annotations are fixed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。