Type-Based Analysis of Logarithmic Amortised Complexity
Logic in Computer Science
2023-03-06 v2 Programming Languages
Abstract
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.
Keywords
Cite
@article{arxiv.2101.12029,
title = {Type-Based Analysis of Logarithmic Amortised Complexity},
author = {Martin Hofmann and Lorenz Leutgeb and Georg Moser and David Obwaller and Florian Zuleger},
journal= {arXiv preprint arXiv:2101.12029},
year = {2023}
}
Comments
35 pages. arXiv admin note: text overlap with arXiv:1807.08242