Signed up recently but had issues with the confirmation email?

Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.

Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.

Revision notesQuestionsFor schools
Revise Computing
Log inStart revising free
Revision notesQuestionsFor schoolsLog in

© 2026 Revise Computing · revisecomputing.co.uk

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).

Knowledge/A Level/H446/02 Algorithms and programming/Computational Methods/Backtracking, data mining, heuristics…

Backtracking, data mining, heuristics, performance modelling, pipelining and visualisation

Learners should apply their knowledge of: Backtracking Data mining Heuristics Performance modelling Pipelining Visualisation to solve problems

2.2.2 Computational Methods

Practise exam questions

Computational Methods — Note 6 of 6

Candidates need to understand the purpose of backtracking (for example when traversing a tree) and be able to read, trace and write code that uses it. Candidates need to understand data mining and how a program searches for and interrogates data. Candidates need to understand heuristics (for example in the A* algorithm) and explain their purpose and benefits in a scenario. Candidates need to understand the purpose of performance modelling, pipelining (where the result of one process feeds into the next) and visualisation to create a mental model of what a program will do.

What you need to know

These six computational methods are approaches for solving problems that cannot easily be solved with a simple algorithm. You need to understand each one and apply them to given scenarios.

What to know

  • Heuristics are useful for intractable problems, such as finding the shortest route visiting many cities, where checking every possible route is impractical.

Code examples

Backtracking: finding a path through a maze
python
def solve(maze, row, col, path):
    if not (0 <= row < len(maze) and 0 <= col < len(maze[0])):
        return False                      # outside the maze
    if maze[row][col] != 0:
        return False                      # wall (1) or already visited (2)
    path.append((row, col))
    if (row, col) == (len(maze) - 1, len(maze[0]) - 1):
        return True                       # reached the exit
    maze[row][col] = 2                    # mark as visited
    for dr, dc in [(0, 1), (1, 0), (0, -1), (-1, 0)]:
        if solve(maze, row + dr, col + dc, path):
            return True
    path.pop()                            # dead end: backtrack
    return False

Key terms

Backtracking

Building a solution step by step; when a step leads to a dead end, go back to the last decision point and try a different option. Used for mazes, puzzles such as Sudoku, and depth-first traversal of trees and graphs.

Data mining

Searching and analysing large data sets to discover patterns, trends and relationships that are not obvious. Used for targeted marketing, fraud detection and predicting trends; it raises privacy concerns.

Heuristic

A 'rule of thumb' approach that finds a good enough solution in a reasonable time when finding the perfect solution would take too long. For example, the A* algorithm uses a heuristic to estimate the remaining distance.

Performance modelling

Using mathematical models or simulations to predict how a system will behave (e.g. under heavy load) before it is built or changed, saving time and money compared with testing the real system.

Pipeliningin programming

Splitting a task into stages where the output of one stage becomes the input of the next, so different items can be at different stages at the same time.

Visualisation

Presenting data or a problem visually (e.g. graphs, charts, flowcharts, diagrams) to make patterns easier to see and to create a mental model of how a program will work.

Exam technique

  • Mistake:Describing data mining as just collecting data, or performance modelling as ordinary bug testing. Data mining ANALYSES very large data sets for patterns; performance modelling simulates how the whole system behaves under heavy load or as it scales.
  • Tip:To explain performance modelling, make several separate points: what you simulate, what you measure and what you learn from it. For example, for a school's online homework system, simulate 5,000 students uploading work in the last minute before a deadline, time each upload, and find which part slows down first so it can be improved before launch. In 2026 many answers stopped after one or two points.
  • Mistake:Saying a diagram is a visualisation because it is 'an abstraction' or 'easier to understand'. Say it is a graphical representation of the problem using symbols, and point to the given diagram, e.g. what a graph's nodes, edges and weights stand for. ('Easier to understand' does earn credit as an ADVANTAGE of a visualisation.)
  • Tip:If a question gives a tree or graph and asks how backtracking is used, answer with its node names. In the depth-first diagram above, that would be 'D has no unvisited neighbours, so go back to B and visit E'. A general description earns few marks.
  • Tip:Questions often give a scenario and ask how one of these methods could be used. Apply it specifically, e.g. 'a heuristic could estimate the straight-line distance to the destination to decide which road to explore first'.
  • Tip:In a data mining discussion, link your definition to BIG DATA and to patterns a person wouldn't otherwise spot. Then evaluate: weigh what it costs and what can go wrong with the data against what it gains in the scenario, and finish with a justified conclusion. In 2026 few answers reached the top band because this weighing was missing.

Past exam questions

  • June 2026Paper 2Q4(b)4marks
  • June 2026Paper 2Q79marks
  • June 2026Paper 2Q9(a)1mark
  • June 2025Paper 2Q2(b)(i)3marks
  • June 2025Paper 2Q2(b)(ii)2marks
  • June 2025Paper 2Q5(a)2marks
  • June 2025Paper 2Q8(f)3marks
  • June 2024Paper 2Q212marks
  • June 2024Paper 2Q3(c)9marks
  • June 2022Paper 2Q5(b)1mark
  • June 2022Paper 2Q5(d)(i)1mark
  • June 2022Paper 2Q5(d)(ii)2marks
  • November 2021Paper 2Q1(e)9marks
  • June 2019Paper 2Q4(b)(iii)2marks
  • June 2019Paper 2Q69marks
  • June 2018Paper 2Q2(a)(ii)1mark
  • June 2018Paper 2Q2(b)(i)1mark
  • June 2018Paper 2Q2(b)(ii)4marks
  • June 2018Paper 2Q2(c)(i)1mark
  • June 2018Paper 2Q2(c)(ii)1mark
  • June 2018Paper 2Q3(a)(iii)2marks
  • June 2017Paper 2Q4(b)(iii)3marks

Ready to test yourself?

Practise 2.2.2 questions
← Previous noteUse of abstraction2.2.2 Computational MethodsNext topic →Analysis and design of algorithms for a given situation2.3.1 Algorithms

Back to Computational Methods

Computational Methods

Note 6 of 6

  1. 1Features that make a problem solvable by computational methods
  2. 2Problem recognition
  3. 3Problem decomposition
  4. 4Use of divide and conquer
  5. 5Use of abstraction
  6. 6Backtracking, data mining, heuristics, performance modelling, pipelining and visualisation
Topic overview