Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Partial correctness, total correctness?

También llamado: partial correctness · total correctness

Definition 12.2 University Computer Science — Year 1 · Capítulo 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.
Leer en el capítulo →