0984

Problem Solving and Design

Algorithm Design and Problem Solving · 4 question types

Exam Frequency Analysis

Past paper frequency (2018 to 2024)

This topic accounts for approximately 6% of your exam marks.

stable
Low
Stable6%

Decomposition, abstraction and structure charts appear as design-focused questions.

Abstraction is the process of removing unnecessary detail from a problem so you can focus on the parts that matter.

A good model of a problem captures the essentials and leaves out the rest. The classic textbook example is the London Underground map: it hides the real geography of London (distances, road layouts, where the river runs) and shows only which stations connect to which lines, because that is the only information a traveller needs.

Abstracted transit-map schematic: a straight line of named stations with a key showing interchange, main and minor stations and line connections, hiding all real geography
Source: Life cycle by Save My Exams

What to keep, what to throw away

When building a solution, you keep only the data and behaviour the program actually needs:

For a school attendance system, KEEP...THROW AWAY...
Student name and IDHair colour, favourite food, height
Attendance status (present/absent) per dayMood, weather, lunch choice
Class groupPhone wallpaper

A program that tracks every irrelevant fact would be slower, harder to write and harder to maintain.

Two kinds of abstraction

  • Data abstraction: choosing which information about a real-world thing to store in the program (e.g. a student record stores name and attendance, not all biological data).
  • Process abstraction: choosing what a piece of code does without worrying about how it does it (e.g. calculate_percentage(presents, total) hides the multiplication and division behind a clean name).
Exam tip

Describing what abstraction means

What comes up: a 2-mark question asks you to describe what is meant by abstraction.

Write (two marks): (1) removing or ignoring unnecessary details from a problem; (2) so that you can focus on the elements that are actually needed for the solution. One mark for each idea — both must be present for full marks.

Watch out: a vague answer such as "simplifying the problem" may earn one mark on its own, but you need the second idea (focusing on what matters, or filtering out irrelevant details) to secure both marks. Do not confuse abstraction with decomposition: abstraction is about hiding detail, not about breaking a problem into smaller parts.