Computational thinking

GCSE Computer Science · Unit 3: Algorithms

Computational thinking notes

Fact-checked by a second, independent AI review.

Computational thinking in algorithms means breaking problems down, focusing on essentials, spotting patterns, and designing clear step-by-step processes.

Decomposition
Split the problem into smaller parts that are easier to solve.
Abstraction
Hide irrelevant details to focus on the essential data and steps.
Pattern recognition
Identify common approaches to similar problems to reuse solutions.
Algorithm
A precise, finite sequence of steps that solves a problem and ends with a result.
Pseudocode / flowcharts
Use readable representations to plan and communicate algorithms.
Correctness and termination
An algorithm must always produce the right answer and finish.
Efficiency basics
Think about how run time and space grow with input size (comments on big-O).

Remember it: DAP: Decompose, Abstract, Pattern; then write the Algorithm.

Exam tip: Markers check clear inputs/outputs, logical step-by-step flow, correct use of pseudocode/flowcharts, handling of edge cases, and comments on efficiency (rough time/space) with valid termination.

Syllabus checklist

  • Computational thinking: core ideas
  • Terms and typical exam questions for "Algorithms" in GCSE Computer Science (OCR/AQA)

Practice questions

  1. 1. Which data structure best supports last-in, first-out access?

    Answer checked

    Show answer

    Answer: stack. A stack allows push/pop in LIFO order.

  2. 2. True or False: A heuristic can be used to find good-enough solutions quickly.

    Answer checked

    Show answer

    Answer: True. Heuristics aim for good solutions fast, not guaranteed optimality.

  3. 3. In insertion sort, when inserting the new item, you shift elements to the ______ until the position is found.

    Answer checked

    Show answer

    Answer: right. Elements are shifted to the right to make room for the item.

  4. 4. A linear search on the array [4, 7, 1, 3] finds 3 at position 4 (1-based). How many comparisons are made?

    Answer checked

    Show answer

    Answer: 4. The item is checked in order: 4, 7, 1, then 3; four comparisons total.

  5. 5. Binary search worst-case time complexity is ____.

    Answer checked

    Show answer

    Answer: O(log n). Binary search halves the search space each step, giving O(log n) time.

Practise computational thinking as a game

Hearts, combos, streaks and an AI tutor that explains every answer. Start free.

Start free

More from Unit 3: Algorithms