Lessons written by expert teachers in England, each with slides, a video and quizzes.
Their topic:
Searching and sorting algorithms · Algorithms
For your topic:
Algorithms · Computer Science - 4CP0
Use these lessons alongside our lesson note, which covers your syllabus in full.
What this covers in your syllabus
Understand what an algorithm is, what algorithms are used for and be able to interpret algorithms (flowcharts, pseudocode, written descriptions, program code)Taught inLesson 2: Representing algorithms using flowcharts
Understand how to create an algorithm to solve a particular problem, making use of programming constructs (sequence, selection, iteration) and using appropriate conventions (flowchart, pseudocode, written description, draft program code)Taught inLesson 2: Representing algorithms using flowcharts
Understand how to code an algorithm in a high-level languageNot covered here. Our lesson note covers it.
Understand how the choice of algorithm is influenced by the data structures and data values that need to be manipulatedTaught inLesson 1: Comparing searching algorithms
Be able to evaluate the fitness for purpose of algorithms in meeting specified requirements efficiently, using logical reasoning and test dataTaught inLesson 1: Comparing searching algorithms
3 lessons from Oak National Academy
Lesson 1 of 3 · GCSE level, ages 14 to 16
Comparing searching algorithms
By the end:I can compare and contrast linear and binary search and trace the code for both searching algorithms.
The searching algorithm you use will depend on the data and context you are using.
Coding a binary search is more complex than a linear search.
Tracing code for searching algorithms by completing a trace table can help you check how efficient the algorithm is.
Keywords
algorithm
a set of step-by-step instructions to solve a problem
trace table
a tool used to track the values of variables and the flow of execution in an algorithm or program, step by step
A common mistake
Mistake:A linear search algorithm and binary search algorithm are equally complex to write.
In fact:Binary search algorithms are more complex to write due to the different paths that the algorithm can take rather than stepping through the search data in order.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.Read the licence
Lesson 2 of 3 · GCSE level, ages 14 to 16
Representing algorithms using flowcharts
By the end:I can create and represent an algorithm in a flowchart.
Flowcharts use symbols to visually represent logic and data.
Developing an algorithm's logic before coding makes problem solving easier.
Keywords
flowchart
a visual representation of an algorithm or program
symbol
a sign, shape or object that is used to represent something else
standardise
to make one thing the same as others of that type
A common mistake
Mistake:A flowchart should always be created before writing a computer program.
In fact:For simple programs, a flowchart may not be needed and could add to development time. Sometimes the program code itself might be clear enough without a flowchart.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.Read the licence
Lesson 3 of 3 · GCSE level, ages 14 to 16
Tracing algorithms
By the end:I can use trace tables to test the logic of an algorithm.