Sequence
Computer Science: KS3, topic 2.1.7
Sequence
Sequence is the simplest structure for an algorithm to follow.

Sequence
- In a sequence algorithm, the computer follows a series of steps.
- The steps are executed in the same order every time the algorithm runs.
- Sequence is often not very useful for longer codes because we cannot use any selection or iteration structures.

Flow chart
- The flow chart for a sequence program will have the blocks one by one.
- One arrow will connect each block to the next block.
- There will be no diamond shapes, so the diagram will be mainly:
- Ovals.
- Rectangles.
- Parallelograms.
Test yourself on Sequence
Select the correct statement about sequence algorithms for each pair.
A sequence algorithm runs three steps in a fixed order every time. What happens if a student swaps the order of two of these steps?
Why is sequence considered the simplest structure for an algorithm to follow?