Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Partial correctness, total correctness?

Dikenal juga sebagai: partial correctness · total correctness

Definition 12.2 University Computer Science — Year 1 · Bab 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.
Baca dalam konteks →