A-level Computer Science revision · Computational thinking

Abstraction

The idea

Abstraction removes unnecessary detail so a problem is easier to solve, keeping only what matters. A model such as the London Underground map abstracts away distances and streets. Abstraction makes problems manageable but the model may miss details that matter later.

  1. Decide what the solution needs to know.
  2. Remove everything else.
  3. Check the abstraction is still accurate enough for its purpose.

Watch out Abstraction is not the same as decomposition: one removes detail, the other splits a problem into parts.

See it worked

Worked example

How does a satnav use abstraction?

  1. It represents roads as a graph of junctions and links.
  2. It ignores buildings, scenery and most details.
  3. It keeps distances, speed limits and road types.

Answer It models roads as a weighted graph, ignoring irrelevant detail

Your turn

Question 11 mark

What is abstraction?

Choose one
Question 21 mark

The London Underground map does not show true distances. This is an example of:

Choose one
Question 32 marks

Give one disadvantage of abstraction.

Write your answer, then see a model answer
  1. Name the risk.
  2. Explain it.

Answer Removing detail can make a model inaccurate for some uses; if important detail is removed, the solution may give wrong results.

A-level Computer Science Pro, OCR H446

A-level Computer Science Pro

£119 once

Price rises to £199 on 1 January. Save £80 by joining before then.

At least 12 months of access

By paying you agree to our Terms and get access straight away, which ends your 14-day cancellation right.

No VAT is charged.

Independent practice for OCR A-level Computer Science (H446), not endorsed by OCR.

Privacy · Terms