An algorithm is correct with respect to a specification if, on every input that meets the precondition, it stops and its result meets the postcondition.
Computer Science · Glossaire
Computer Science · Glossaire
An algorithm is correct with respect to a specification if, on every input that meets the precondition, it stops and its result meets the postcondition.