Edexcel IGCSE Computer Science 4CP0
Algorithms
Searching and Sorting Algorithms
Decomposition and Abstraction
Developing and Testing Code
Programming Constructs and Operators
Data Types and Data Structures
Input, Output and Validation
Data Representation
Data Storage and Compression
Encryption
Hardware and the CPU
Software
Programming Languages and Translators
Networks
Network Security
The Internet and the World Wide Web
Emerging Trends, Issues and Impact
Algorithms
- 5 subtopics
- 15 things to know
- Papers 1 and 2
Learn Algorithms in runs of four questions, then keep it with spaced repetition.
What Algorithms covers
Algorithms is examined in Paper 1, Principles of Computer Science, and Paper 2, Application of Computational Thinking. It covers what an algorithm is; constructing algorithms; understanding what an algorithm does; finding and correcting errors; and coding and choosing algorithms.
Where it is assessed
Papers 1 and 2
Computer Science 4CP0: this topic is examined on Paper 1, Principles of Computer Science (2 hours, 50%), and on Paper 2, Application of Computational Thinking (3 hours, on screen, 50%).
Check the Pearson Edexcel specification ↗The 5 subtopics
Each one has its own page.
- What an algorithm isWhat algorithms are and what they are for, and how flowcharts, pseudocode, written descriptions and program code express them.Open →
- Constructing algorithmsBuilding algorithms from sequence, selection and iteration, written in the pseudocode command set with SET, SEND and RECEIVE.Open →
- Understanding what an algorithm doesWorking out the purpose of an algorithm, the role of totals, counters and flags, and the output for given data.Open →
- Finding and correcting errorsUsing trace tables to find and fix errors such as a total reset inside a loop, a wrong comparison or a loop that never ends.Open →
- Coding and choosing algorithmsTurning pseudocode into Python, how data structures and data values affect the choice of algorithm, and judging fitness for purpose.Open →
What you need to know
Answer each one before you reveal it.
An algorithm to average 10 numbers sets Total to 0 inside the loop. What is the error, and how is it corrected?
A loop is written SET Count TO 0, then WHILE Count < 5 DO SEND Count TO DISPLAY END WHILE. Why does it never stop?
Why might an algorithm that finds the largest number fail if Max is first set to 0?
Name the three programming constructs used to build algorithms
How should the purpose of an algorithm be explained?
What does coding an algorithm in a high-level language involve?
What is an algorithm?
What is sequence?
What is the purpose of this algorithm: SET Max TO Scores[0], then for each other score, IF Score > Max THEN SET Max TO Score?
How is the pseudocode SET Total TO Total + Mark written in Python?
What are algorithms used for?
What is selection?
What is the purpose of a variable used as a running total?
How is the pseudocode FOR Count FROM 1 TO 10 DO written in Python?
Take Algorithms further
The same content, four other ways.
Commonly confused
Pairs that lose marks when they are blurred together.
Selection vs Iteration
Selection: choosing which instructions to run depending on a condition. Iteration: repeating a set of instructions.
Pseudocode vs Flowchart
Pseudocode: an algorithm written in structured English-like statements. Flowchart: a diagram showing the steps of an algorithm with standard symbols.
Trace table vs Flag
Trace table: a record of each variable's value at each step of an algorithm. Flag: a Boolean variable that records whether something has happened.
Questions from this topic
Each one with the model answer underneath.
- 1
What is an algorithm?
Model answer
An algorithm is a precise sequence of steps that solves a problem or completes a task.
- 2
What are algorithms used for?
Model answer
Algorithms describe how to solve a problem before any code is written. A programmer then turns the algorithm into a program.
- 3
Name four ways an algorithm can be expressed.
Model answer
An algorithm can be expressed as a flowchart or in pseudocode. An algorithm can also be a written description or program code.
- 4
What is pseudocode?
Model answer
Pseudocode is a structured way of writing an algorithm using keywords and English-like statements, without following the strict syntax of a programming language.
- 5
Why is pseudocode used to plan programs?
Model answer
Pseudocode lets a programmer focus on the logic without worrying about syntax. Any programmer can read pseudocode and code it in their own language.
- 6
What is a flowchart?
Model answer
A flowchart is a diagram that shows the steps of an algorithm using standard symbols joined by arrows.
Everything in your subscription
Runs, plus a mode for every other kind of session.
Algorithms revision questions
- What does Algorithms cover in Edexcel IGCSE Computer Science?
- 5 subtopics: what an algorithm is, constructing algorithms, understanding what an algorithm does, finding and correcting errors and coding and choosing algorithms. Each one has its own page with questions and model answers.
- How is Algorithms organised?
- By the Edexcel 4CP0 specification, subtopic by subtopic, so it matches the order you are taught it in.
Every question in Algorithms, on a schedule.
Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.