<link rel="stylesheet" href="styles.cf390c6bfbe7555f.css">
Institutional Repository

pGCL: formal reasoning for random algorithms

dc.contributor.authorMorgan, C
dc.contributor.authorMcI, A
dc.date.accessioned2018-06-06T14:30:45Z
dc.date.available2018-06-06T14:30:45Z
dc.date.issued1998
dc.description.abstractDijkstra'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.identifier.citationMorgan C & McIver A (1999) pGCL: formal reasoning for random algorithms. South African Computer Journal, Number 22, 1998en
dc.identifier.issn2313-7835
dc.identifier.urihttp://hdl.handle.net/10500/24296
dc.language.isoenen
dc.publisherSouth African Computer Society (SAICSIT)en
dc.subjectProgram correctnessen
dc.subjectProbabilityen
dc.subjectDemonic nondeterminismen
dc.subjectRandom algorithmen
dc.subjectPredicate transformeren
dc.subjectWeakest preconditionsen
dc.subjectGuarded commanden
dc.subjectCorrectness proofen
dc.subjectInvarianten
dc.subjectVarianten
dc.titlepGCL: formal reasoning for random algorithmsen
dc.typeArticleen

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
1999_SACJ_22_Morgan.pdf
Size:
3.49 MB
Format:
Adobe Portable Document Format
Description:

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
2.32 KB
Format:
Item-specific license agreed upon to submission
Description: