COMP 1405 Lecture 10: Lecture 10 - Tracing Algorithms by Hand
Document Summary
Learning outcomes by the end of this lecture, attendees that complete the recommended exercises should be able to: Previously init pygame i = 1 false i 8 true false wait for exit i = i + 1 j = 1 j 8 true draw at i, j j = j + 1. Tracing (or hand-tracing) is a very effective (albeit time-consuming) approach for determining the. Precise behaviour of an algorithm/program it is absolutely crucial that you learn to trace. Code because it is an essential skill for programmers. Start your trace with a printout of the source code (or the flowchart) and two blank pieces of paper. One will represent the computer memory and the other will represent the program output. You must also keep track where you currently are (i. e. , the program line number or flowchart block) How would you trace the execution of the.