Automated Expected Amortised Cost Analysis of Probabilistic Data Structures

06/07/2022
by   Lorenz Leutgeb, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/28/2021

Type-Based Analysis of Logarithmic Amortised Complexity

We introduce a novel amortised resource analysis couched in a type-and-e...
research
06/24/2020

Raising Expectations: Automating Expected Cost Analysis with Types

This article presents a type-based analysis for deriving upper bounds on...
research
07/11/2014

Decision-Making with Complex Data Structures using Probabilistic Programming

Existing decision-theoretic reasoning frameworks such as decision networ...
research
12/24/2021

Fine-Tuning Data Structures for Analytical Query Processing

We introduce a framework for automatically choosing data structures to s...
research
12/14/2018

Truly Visual Polymorphic Algebraic Data Structures through Maramafication

This paper presents a so-called maramafication of an essential part of f...
research
01/27/2020

Understanding Profunctor Optics: a representation theorem

Optics, aka functional references, are classes of tools that allow compo...
research
07/22/2018

Analysis of Logarithmic Amortised Complexity

We introduce a novel amortised resource analysis based on a potential-ba...

Please sign up or login with your details

Forgot password? Click here to reset