skew 堆和 leftist 堆的自动摊还分析(扩展版)
Automated Amortised Analysis of Skew Heaps and Leftist Heaps (Extended Version)
AI总结:
本文提出基于类型推断的通用类型系统,用于自动分析纯函数数据结构的摊还分析,支持 skew 堆和 leftist 堆的精确成本界推导。
摘要:
我们研究了纯函数数据结构如 skew 堆以及基于权重和排名的 leftist 堆的完全自动摊还分析。为此,我们扩展了早期的自动摊还资源分析工作,开发了一种基于类型的推断方法,并引入了通用类型系统。这允许模块化推理并推导出精确且最优的成本界。具体而言,我们扩展了 Leutgeb 等人开发的 ATLAS 系统,该系统用于分析 splay 树及相关数据结构。为了分析 skew 堆以及更具挑战性的 leftist 堆的摊还分析,我们开发了多种新的类型基于自动分析技术。通过引入通用类型系统,我们允许任意(类)势函数,与 ATLAS 中硬编码的势函数不同,我们以完全模块化的方式在 Haskell 中实现了它。我们还通过多方向扩展改进了现有的类型推断算法,包括路径敏感推理、数据结构不变量以及模板参数用于分段定义的势函数。我们展示了新系统如何支持所有已知的势函数来分析 skew 堆和 leftist 堆,确认了已知的界限。
英文摘要:
We study the fully automated amortised analysis of purely functional data structures like skew heaps, as well as weight- and rank-biased leftist heaps. For that we generalise earlier works on automated amortised resource analysis by developing a type inference based approach with a generic type system. This allows for modular reasoning and the inference of precise and optimal cost bounds. More specifically, we extend the work on the ATLAS system by Leutgeb et al. which was developed to cover the analysis of splay trees and some closely related data structures. To enable the analysis of skew heaps, however, and the even more challenging (amortised) analysis of leftist heaps, we have developed a range of new techniques for type-based automated analysis. By introducing a generic type system we allow for arbitrary (classes of) potential functions, compared to the use of hard-coded potential functions in ATLAS, which we have implemented in Haskell in an entirely modular way. We have also greatly enhanced the existing type inference algorithm by extensions in multiple directions, including path-sensitive reasoning, data structure invariants, and template parameters for piecewise defined potential functions. We show how our newly developed system supports the use of all known potential functions for analysing skew heaps and leftist heaps, confirming the known bounds.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。