Institutional Repository

pGCL: formal reasoning for random algorithms

Show simple item record

dc.contributor.author Morgan, C
dc.contributor.author McI, A
dc.date.accessioned 2018-06-06T14:30:45Z
dc.date.available 2018-06-06T14:30:45Z
dc.date.issued 1998
dc.identifier.citation Morgan C & McIver A (1999) pGCL: formal reasoning for random algorithms. South African Computer Journal, Number 22, 1998 en
dc.identifier.issn 2313-7835
dc.identifier.uri http://hdl.handle.net/10500/24296
dc.description.abstract Dijkstra's guarded-command language GCL contains explicit 'demonic' nondeterminism, representing abstraction from (or ignorance of ) which of two program fragments will be executed. We introduce probabilistic nondeterminism to the language, calling the result pGCL. Important is that both forms of nondeterminism are present - both demonic and probabilistic: unlike earlier approaches, we do not deal only with one or the other. The programming logic of 'weakest preconditions' for GCL becomes a logic of 'greatest pre-expectations' for pGCL: we embed predicates (Boolean-valued expressions over state variables) into arithmetic by writing [P], an expression that is 1 when P holds and 0 when it does not. Thus in a trivial sense [P] is the probability that P is true, and such embedded predicates are the basis for the more elaborate arithmetic expressions that we call "expectations". pGCL is suitable for describing random algorithms, at least over discrete distributions. In our presentation of it and its logic we give two examples: an erratic 'sequence accumulator', that fails with·some probability to move along the sequence; and Rabin's 'choice-coordination' algorithm. The first illustrates probabilistic invariants; the second illustrates probabilistic variants. en
dc.language.iso en en
dc.publisher South African Computer Society (SAICSIT) en
dc.subject Program correctness en
dc.subject Probability en
dc.subject Demonic nondeterminism en
dc.subject Random algorithm en
dc.subject Predicate transformer en
dc.subject Weakest preconditions en
dc.subject Guarded command en
dc.subject Correctness proof en
dc.subject Invariant en
dc.subject Variant en
dc.title pGCL: formal reasoning for random algorithms en
dc.type Article en


Files in this item

This item appears in the following Collection(s)

Show simple item record

Search UnisaIR


Browse

My Account

Statistics