An algorithm can be represented in different ways before being coded. The two most common on the Edexcel 1CP2 specification are flowcharts and pseudocode. Both allow you to plan and communicate a solution without worrying about the exact syntax of a programming language.
A flowchart uses standard symbols connected by arrows to show the flow of an algorithm.
| Symbol | Shape | Meaning |
|---|---|---|
| Terminal | Rounded rectangle / oval | Start or End of the algorithm |
| Process | Rectangle | An action or calculation (e.g. total = total + score) |
| Decision | Diamond | A yes/no question or condition (e.g. is score > 50?) |
| Input/Output | Parallelogram | Data is entered or displayed |
| Flow line | Arrow | Shows the direction/sequence of steps |
Flowcharts are useful for visualising the logic of an algorithm, especially when there are decision points (branches) or loops.
Pseudocode is structured like code but uses plain English. The Edexcel 1CP2 specification uses the following conventions:
| Construct | Edexcel Pseudocode Syntax |
|---|---|
| Input | INPUT variableName |
| Output | OUTPUT variableName or OUTPUT "text" |
| Assignment | variableName <- value |
| If statement | IF condition THEN ... ELSE ... ENDIF |
| Count-controlled loop | FOR i <- 1 TO 10 ... NEXT i |
| Condition-controlled loop | WHILE condition DO ... ENDWHILE |
| Procedure call | CALL procedureName() |
Example — check if a number is even or odd:
INPUT num IF num MOD 2 = 0 THEN OUTPUT "Even" ELSE OUTPUT "Odd" ENDIF
PRINT instead of OUTPUT) as long as the intent is clear. The conventions shown above are recommended as they match Edexcel's mark scheme examples.| Aspect | Flowchart | Pseudocode |
|---|---|---|
| Visual? | Yes — shapes and arrows | No — text-based |
| Good for | Visualising flow, decision branches | Showing exact logic and syntax |
| Easy to convert to code? | Less direct | Very direct — close to real code |
| Used when | Explaining to non-programmers | Planning code, sharing with developers |
8 Edexcel-style questions · 20 marks · instantly marked
| Term | Definition |
|---|
Timed exam-style conditions. No feedback until you submit.