Back to Algorithm Design And Problem-solving

Oak National Academy

Lessons written by expert teachers in England, each with slides, a video and quizzes.

Their topic:
Searching and sorting algorithms · Python programming project · Algorithms
For your topic:
Algorithm Design And Problem-solving · Computer Science (9-1) - 0984

Use these lessons alongside our lesson note, which covers your syllabus in full.

What this covers in your syllabus

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.

Key learning points

  1. The searching algorithm you use will depend on the data and context you are using.
  2. Coding a binary search is more complex than a linear search.
  3. 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.

What is a trace table used for?
Which searching algorithm is more complex to write?
Which of these is true about linear search?

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

Project design

By the end: I can create a structured design for a programming project.

Key learning points

  1. Structured design is the process of planning a program in detail before you start to write any code.
  2. This design stage is essential for developers to understand the program's requirements and how it will function.
  3. Tools like flowcharts provide a visual representation of a program's logic.
  4. Pseudocode offers a text-based, step-by-step description of a program's operation.
  5. Designing a program this way helps to prevent mistakes, saves time and makes final code easier to write and understand.

Keywords

flowchart
a diagram that uses symbols to document the logic of an algorithm
pseudocode
a way of expressing an algorithm that is independent of a specific programming language

A common mistake

Mistake: Pseudocode can be executed by a computer.

In fact: Pseudocode cannot be executed by a computer. Pseudocode must be translated into a real programming language such as Python, Java or C# for it to be executed by a computer.

Check what you learned

From Oak National Academy's exit quiz. Choose every answer that is right.

What is the main purpose of structured design in programming?
Why is it helpful to use structured design before writing code?
What must happen before pseudocode can be executed by a computer?
Which of the following is a typical feature of pseudocode syntax?

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

Tackling a project using computational thinking

By the end: I can use computational thinking to understand the needs of a project and design an algorithm to solve a problem.

Key learning points

  1. Computational thinking can be used to analyse problems and find efficient and effective solutions.
  2. Understanding a problem well is key to making sure your solution actually works and works efficiently.
  3. The designer of an algorithm can choose whichever method they feel is most suited to the problem.

Keywords

analyse
to take something apart, look closely at its pieces, and then put the information back together in a way that makes sense
design
to plan or create something

A common mistake

Mistake: Computational thinking means writing code for everything.

In fact: While coding is a way to implement solutions, computational thinking can be applied to problems that don't require coding at all and should be seen as a set of processes that help people solve problems.

Check what you learned

From Oak National Academy's exit quiz. Choose every answer that is right.

What is computational thinking primarily used for?
What is the designer of an algorithm responsible for?
What is decomposition used for?
Does computational thinking always require writing code?

A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0. Read the licence

The wording comes from each publisher. The layout and the links to your syllabus are ours.