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 · Glosarium
Computer Science · Glosarium
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.