What you'll learn
How to design and evaluate algorithms.
Key ideas
- Sequence, selection and iteration.
- FOR (count-controlled) vs WHILE (condition-controlled) loops.
- Comparing efficiency (time/space); using a trace table.
Exam tips
- Choose the right loop for the task.
- Use trace tables to check output.
Common mistakes
- Confusing FOR and WHILE loops.
- Off-by-one errors in loops.