Weakest precondition reasoning for expected runtimes of randomized algorithms
Author
dc.contributor.author
Kaminski, Benjamin
Author
dc.contributor.author
Katoen, Joost
Author
dc.contributor.author
Matheja, Christoph
Author
dc.contributor.author
Olmedo, Federico
Admission date
dc.date.accessioned
2019-05-31T15:21:16Z
Available date
dc.date.available
2019-05-31T15:21:16Z
Publication date
dc.date.issued
2018
Cita de ítem
dc.identifier.citation
Journal of the ACM, Volumen 65, Issue 5, 2018
Identifier
dc.identifier.issn
1557735X
Identifier
dc.identifier.issn
00045411
Identifier
dc.identifier.other
10.1145/3208102
Identifier
dc.identifier.uri
https://repositorio.uchile.cl/handle/2250/169551
Abstract
dc.description.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.