Dry Run and Trace Tables
A dry run means stepping through an algorithm by hand to check its logic before it is coded. You will use a trace table to record the values of variables at each step and spot logic errors.
Key terms
- Dry run
- Manually stepping through code or an algorithm to check its logic.
- Trace table
- A table that tracks the values of variables, and any output, step by step.
- Logic error
- A mistake that makes a program produce the wrong result without stopping it from running.
Part of Algorithm Design & Problem Solving.