Take-Away Notes for Module COMP2048.
Termination, Partial Correctness and Total Correctness.
- Proofread
- Reviewed
Definition
Termination
For every legal input
Partial Correctness
For every legal input
aka.
If the algorithm terminates(but not guaranteed to terminate), it produces the desired output.
Total Correctness
For every legal input
aka.
The algorithm is guaranteed to terminate and it produces the desired output for all legal inputs.
Formula
Prerequisites
Termination
Partial Correctness
Total Correctness
Correctness VS Test
TBC. Please refer to the slides (Page 18-22) for more information.