Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Partial correctness, total correctness?

Ook bekend als: partial correctness · total correctness

Definition 12.2 University Computer Science — Year 1 · Hoofdstuk 12 — Program Correctness

A program is partially correct with respect to a specification if every execution that starts in a state satisfying the precondition and terminates ends in a state satisfying the postcondition. It is totally correct if, moreover, every such execution terminates.

Three kinds of runs from a state satisfying the precondition. Partial correctness forbids a run that stops in a state violating the postcondition; total correctness also forbids a run that never stops.
Three kinds of runs from a state satisfying the precondition. Partial correctness forbids a run that stops in a state violating the postcondition; total correctness also forbids a run that never stops.
Lees in het hoofdstuk →