Logical Reasoning & Debugging
Computing: Year 5 & 6 National Curriculum, topic 3.1.5
Logical Reasoning & Debugging
Logical reasoning is thinking about the order of steps (the sequence) and the selection rules ('if ... then' and 'repeat until...').

Logical reasoning
- You can run through an algorithm by following all the steps.
- You can run through the steps in an algorithm to check if the algorithm will work.

Debugging
- If your algorithm does not work, you have to debug it.
- Debugging is finding where the problem is and then fixing it.

How to debug an algorithm
- Debugging an algorithm needs patience and computational thinking!
- Computer programmers have programs which help them find where the bugs are.
Test yourself on Logical Reasoning & Debugging
What do you call thinking about the order of steps and the selection rules?
What do you call finding and fixing a problem in an algorithm?
How should you check if an algorithm will work?
What does debugging mean?