概率数据结构的自动化期望摊还成本分析
Automated Expected Amortised Cost Analysis of Probabilistic Data Structures
AI总结:
本文提出首个针对随机化伸展树等自调整数据结构的全自动化期望摊还成本分析方法,基于带类型与效应的系统并支持离散分布采样与计时算子,给出两个可靠性定理及原型实现。
摘要:
本文提出了首个针对自调整数据结构(即随机化伸展树、随机化伸展堆和随机化可合并堆)的全自动化期望摊还成本分析,这些结构此前在文献中仅有半手动分析。我们的分析被表述为一种带类型与效应的系统,适用于一种支持离散分布采样、非确定性选择和计时算子的一阶函数式编程语言。后者允许指定细粒度的成本模型。我们基于两种不同但紧密相关的计时类型规则给出了两个可靠性定理,它们以不同方式处理非终止计算的成本。最后,我们提供了一个原型实现,能够全自动分析上述案例。
英文摘要:
In this paper, we present the first fully-automated expected amortised cost analysis of self-adjusting data structures, that is, of randomised splay trees, randomised splay heaps and randomised meldable heaps, which so far have only (semi-) manually been analysed in the literature. Our analysis is stated as a type-and-effect system for a first-order functional programming language with support for sampling over discrete distributions, non-deterministic choice and a ticking operator. The latter allows for the specification of fine-grained cost models. We state two soundness theorems based on two different -- but strongly related -- typing rules of ticking, which account differently for the cost of non-terminating computations. Finally we provide a prototype implementation able to fully automatically analyse the aforementioned case studies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。