Type-based analysis of logarithmic amortised complexity
Published online by Cambridge University Press: 19 October 2021
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 potentialbased. 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.
- Special Issue: In Homage to Martin Hofmann
- Mathematical Structures in Computer Science , Volume 32 , Special Issue 6: In Homage to Martin Hofmann , June 2022 , pp. 794 - 826
- Creative Commons
- This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike licence (http://creativecommons.org/licenses/by-nc-sa/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
- © The Author(s), 2021. Published by Cambridge University Press
- Cited by