vix.ing · top · new · best · stats

Weakest Precondition Reasoning for Expected Runtimes of Randomized Algorithms

2018/08/29 by Benjamin Lucien Kaminski, Joost-Pieter Katoen, Christoph Matheja +1 · 88 citations
Computer Science · #Algorithm #Artificial intelligence #Bounding overwatch #Complexity and Algorithms in Graphs #Computer science #Conservative extension #Formal Methods in Verification #Logic, programming, and type systems #Predicate transformer semantics #Programming language #Randomized algorithm #Simple (philosophy) #Soundness #Theoretical computer science

paper · open access · doi:10.1145/3208102

published in Journal of the ACM 65(5), 1-68 (Association for Computing Machinery)

openalex publication_date 2018/08/29 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/25

Abstract

This article presents a wp--style calculus for obtaining bounds on the expected runtime of randomized algorithms. Its application includes determining the (possibly infinite) expected termination time of a randomized algorithm and proving positive almost--sure termination—does a program terminate with probability one in finite expected time? We provide several proof rules for bounding the runtime of loops, and prove the soundness of the approach with respect to a simple operational model. We show that our approach is a conservative extension of Nielson’s approach for reasoning about the runtime of deterministic programs. We analyze the expected runtime of some example programs including the coupon collector’s problem, a one--dimensional random walk and a randomized binary search.

Cited by

Related