AQA 7517, section 4.4.1.8
Problem abstraction (also called problem reduction) means removing details from a problem until it is represented in a way that is possible to solve, because it reduces to a problem that has already been solved.
Many new-looking problems are really old problems in disguise. If you can strip away the surface details and spot the underlying structure, you can reuse a known solution instead of inventing a new one.
How it works
- Look at the problem and ask which details matter and which don't.
- Remove the unnecessary details, to leave the essential structure.
- Recognise that structure as a problem you already know how to solve.
- Apply the known solution, then translate the answer back into the original context.
Example 1: the shortest route
Problem: what is the fewest number of buses needed to get from town A to town F?
Remove the details of the roads, buildings and timetables. What remains is a set of towns (nodes) and the bus links between them (edges): a graph. The problem reduces to finding a shortest path in an unweighted graph, which a breadth-first search solves.
Example 2: the Königsberg bridges
In the city of Königsberg, seven bridges joined four areas of land. The question was whether you could walk across every bridge exactly once.
Euler removed everything about the city except the land areas (nodes) and the bridges (edges). The problem became one about walking along every edge of a graph exactly once, which he could prove has no solution here. Abstracting away details turned a puzzle about a city into a general problem about graphs.
Example 3: a maze
Finding the way through a maze reduces to a graph problem too: each junction is a node, each corridor an edge. Depth-first search can then be used to find a route.
Why does this help?
- You don't have to start from scratch: you can reuse an algorithm you already know.
- The problem becomes smaller and clearer.
- A solution to the general problem solves many specific problems.
Worked example
Task: a school wants to schedule exams so that no student has two exams at the same time. Show how this can be reduced to a known problem.
Remove the details of the rooms, teachers and subjects' content. What remains is: each exam is a node, and two exams are joined by an edge if at least one student takes both. Exams joined by an edge must be in different time slots.
This is the graph colouring problem: give each node a colour (a time slot) so that no two connected nodes have the same colour. Algorithms for graph colouring can now be used, and the number of colours needed is the number of time slots required.
Exam tip: describe what you remove (the unnecessary details), what is left (the underlying structure) and which known problem it matches. An answer that only says "make it simpler" doesn't score.
Check yourself
What is problem reduction?
Removing details from a problem until it can be represented as a problem that has already been solved, so the known solution can be used.
To what type of problem can finding the fewest bus changes between two towns be reduced?
Finding a shortest path in an unweighted graph, which can be solved using breadth-first search.
Why is reducing a problem to a known one useful?
You can reuse an existing, tested solution instead of designing a new one, and it makes the problem clearer.