- What is an algorithm?
A finite list of clearly defined steps that solves a problem.
An algorithm is a solution to a problem expressed as a finite sequence of clearly defined steps. Follow the steps in order and you turn the input into the required output.
A good algorithm is:
- Finite — it ends (it doesn't loop forever).
- Defined — each step is precise and unambiguous; anyone following it gets the same result.
- General — it works for any valid input, not just one specific case.
Most algorithms in 9618 follow the Input → Process → Output pattern:
| Stage | What happens |
|---|---|
| Input | get the data needed (INPUT) |
| Process | do calculations / make decisions / repeat steps |
| Output | report the result (OUTPUT) |
You will describe algorithms in three forms — structured English, flowcharts and pseudocode — and Paper 2 expects your written answers in pseudocode.
- Algorithm = finite sequence of clearly defined steps.
- Must be finite, defined (precise) and general.
- Backbone: Input → Process → Output.
- Documented as structured English, flowchart, or pseudocode.