Logical Reasoning & Debugging

Computer Science: KS3, topic 1.2.4

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

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

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

How to debug an algorithm

  • It can take a lot of patience and computational thinking!
  • Computer programmers have programs which help them find where the bugs are.

Test yourself on Logical Reasoning & Debugging

  • What name is given to the process of thinking about the order of steps and the selection rules?

  • What is the process of finding where the problem in an algorithm is and then fixing it called?

  • How should you check if an algorithm will work?

Practise this topic for free