Trace table
11.5.1.4 use trace tables to find and verify the correctness of an algorithm Trace table What can we use to check the correctness of an algorithm? If we have difficulty finding errors in the program, then we can use the trace table. Definition
It can be used to understand or predict what an algorithm is doing and to identify potential logic errors (when the program compiles but does not produce the expected output). The purpose of a trace table:
Questions:
Exercises: Ex.1
Ex. 2 Check the following algorithms and complete their trace tables. Go to tasks Ex. 3 Exam question: | |
| |
Просмотров: 5268 | | |
Всего комментариев: 0 | |