Hostname: page-component-77f85d65b8-7lfxl Total loading time: 0 Render date: 2026-04-22T07:31:30.474Z Has data issue: false hasContentIssue false

Type-based analysis of logarithmic amortised complexity

Published online by Cambridge University Press:  19 October 2021

Martin Hofmann
Affiliation:
Institut für Informatik, Ludwig-Maximilians-Universität München, Germany
Lorenz Leutgeb
Affiliation:
Institut für Logic and Computation 192/4, Technische Universität Wien, Austria
David Obwaller
Affiliation:
Institut für Informatik, Universität Innsbruck, Austria
Georg Moser
Affiliation:
Institut für Informatik, Universität Innsbruck, Austria
Florian Zuleger*
Affiliation:
Institut für Logic and Computation 192/4, Technische Universität Wien, Austria
*
*Corresponding author. Email: florian.zuleger@tuwien.ac.at
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

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.

Information

Type
Special Issue: In Homage to Martin Hofmann
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - NCCreative Common License - SA
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.
Copyright
© The Author(s), 2021. Published by Cambridge University Press