Pearson Edexcel · GCSE · Computer Science

    Course version: Pearson-GCSE-Computer-Science · Version from Mar 2026

    Topic 1: Computational thinking

    Master the art of problem-solving with Computational Thinking, the foundation of Computer Science. This guide covers decomposition, abstraction, algorithms, and logic gates to help you think like a computer and ace your GCSE exams.

    • 5 min read
    • 3 worked examples
    • 5 practice questions
    • 6 key terms

    Study Notes

    Overview

    Header image for Computational ThinkingOpen full-size image (opens in a new tab)

    Welcome to Topic 1: Computational Thinking. This is arguably the most important topic in your entire GCSE Computer Science course because it teaches you how to think like a computer scientist. Before you can write a single line of code, you need to know how to break down complex problems, identify the essential information, and design step-by-step solutions.

    In this topic, you'll learn the key pillars of computational thinking: Decomposition and Abstraction. You'll also learn how to write and trace Algorithms using pseudocode and flowcharts, understand the three types of Errors, evaluate Standard Sorting and Searching Algorithms, and construct Truth Tables for logic gates.

    Examiners love testing this topic because it proves you understand the logic behind programming, not just the syntax. You can expect questions asking you to decompose a scenario, trace variable values in an algorithm, or evaluate the efficiency of a sorting method.

    Listen to the companion podcast for a deep dive into these concepts:


    Key Concepts

    Concept 1: Decomposition and Abstraction

    Computational thinking starts with two powerful problem-solving techniques.

    Decomposition is the process of breaking down a complex problem into smaller, more manageable sub-problems. Why does this work? Because large problems are overwhelming and difficult to solve all at once. By breaking them down, each sub-problem becomes a small, achievable task that a programmer can write code for.

    Abstraction is the process of removing unnecessary detail and focusing only on the essential information needed to solve the problem. Think of the London Underground map: it doesn't show exact geographical distances or street names above ground; it only shows stations and the lines connecting them. It abstracts away the real-world complexity to make navigation simple.

    Decomposition and Abstraction comparedOpen full-size image (opens in a new tab)

    Concept 2: Algorithms

    An algorithm is a step-by-step set of instructions designed to perform a specific task or solve a problem. All algorithms are built using three fundamental constructs:

    1. Sequence: Executing instructions in order, one after the other.
    2. Selection: Making decisions based on conditions (e.g., IF... THEN... ELSE).
    3. Iteration: Repeating instructions (looping) until a condition is met (e.g., FOR, WHILE, REPEAT... UNTIL).

    You must be able to represent algorithms using both Flowcharts (using standard symbols like diamonds for decisions and parallelograms for input/output) and Pseudocode (a text-based way of writing algorithms that looks like code but isn't tied to a specific programming language).

    Concept 3: Standard Algorithms

    You need to understand four standard algorithms for sorting and searching data:

    • Linear Search: Checks each item in a list one by one until the target is found. Works on unsorted data but is slow for large datasets.
    • Binary Search: Checks the middle item of a sorted list, then discards the half where the target cannot be. Repeats until found. Much faster than linear search, but requires the data to be sorted first.
    • Bubble Sort: Repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. Simple to write but very inefficient (slow) for large lists.
    • Merge Sort: A 'divide and conquer' algorithm that splits the list into single elements, then merges them back together in the correct order. Very efficient for large lists, but requires more memory.

    Bubble Sort vs Merge SortOpen full-size image (opens in a new tab)

    Concept 4: Logic Gates and Truth Tables

    Computers process data using binary logic (1s and 0s, or True and False). You need to know three basic logic gates:

    • AND Gate: Outputs True (1) ONLY if both inputs are True.
    • OR Gate: Outputs True (1) if at least one input is True.
    • NOT Gate: Inverts the input (True becomes False, False becomes True).

    You will be asked to complete truth tables for logic circuits with up to three inputs. A three-input truth table will always have 8 rows (2^3 = 8).

    Logic Gates ReferenceOpen full-size image (opens in a new tab)


    Mathematical/Scientific Relationships

    • Number of Truth Table Rows: Rows = 2^n (where n is the number of inputs). For 2 inputs, there are 2^2 = 4 rows. For 3 inputs, there are 2^3 = 8 rows.
    • Algorithm Efficiency (Time Complexity):
      • Linear Search: O(n) - time increases linearly with data size.
      • Binary Search: O(\log n) - highly efficient, halves the search space each step.
      • Bubble Sort: O(n^2) - inefficient, time squares as data grows.
      • Merge Sort: O(n \log n) - efficient sorting for large datasets.

    Practical Applications

    • Decomposition in Game Dev: Creating a video game is decomposed into rendering graphics, handling user input, physics engine, and AI logic.
    • Abstraction in Weather Apps: A weather app abstracts atmospheric data into simple icons (sun, rain cloud) and a single temperature number.
    • Binary Search in Databases: Finding a specific student record in a school database of 2,000 students using binary search takes a maximum of 11 checks, compared to potentially 2,000 checks with linear search.

    Check what you remember

    Read the wording for your board, then hide it and explain Computational Thinking in your own words. Rough notes are fine. This is a self-check, with no mark or grade.

    Reference: Pearson Edexcel

    The use of computers to solve problems by developing algorithms and using abstraction and decomposition.
    Pearson Edexcel

    Interactive Diagrams

    2 interactive diagrams to visualise key concepts

    Conceptual Flow Outline

    Start
    ➔Input Number
    Input Number
    ➔Is Number % 2 == 0?
    Is Number % 2 == 0?
    ➔"Yes"Output 'Even'
    ➔"No"Output 'Odd'
    Output 'Even'
    ➔End
    Output 'Odd'
    ➔End

    A flowchart algorithm demonstrating Sequence, Selection (IF/ELSE), and Output.

    Conceptual Flow Outline

    Problem
    ➔Sub-problem 1
    ➔Sub-problem 2
    Sub-problem 1
    ➔Task 1.1
    ➔Task 1.2
    Sub-problem 2
    ➔Task 2.1
    ➔Task 2.2

    A visual representation of Decomposition.

    Worked Examples

    3 worked examples — open one to explore the question and available guidance.

    Practice Questions

    Try the question, then reveal an answer plan or example response

    Q1

    State the purpose of a trace table. (1 mark)

    1 mark
    foundation

    Hint: Think about what you write down inside the table as the code runs.

    Q2

    A student has written a program to calculate the area of a rectangle. The program runs without crashing, but when they input length 5 and width 4, it outputs 9 instead of 20. Identify the type of error and explain why it occurred. (2 marks)

    2 marks
    standard

    Hint: The program didn't crash, so it's not syntax or runtime. Look at the math.

    Q3

    Explain one advantage and one disadvantage of using a Merge Sort compared to a Bubble Sort. (4 marks)

    4 marks
    standard

    Hint: Think about speed vs memory usage.

    Q4

    An algorithm needs to find the word 'Zebra' in an alphabetically sorted list of 500 animal names. Evaluate whether a Linear Search or Binary Search is more appropriate. (4 marks)

    4 marks
    challenging

    Hint: The list is already sorted. Where is 'Zebra' likely to be in the alphabet?

    Q5

    Draw the logic gate symbol for an OR gate and provide its truth table. (3 marks)

    3 marks
    foundation

    Hint: OR gate looks like a curved shield. What happens if at least one input is 1?

    Ready to test yourself interactively?

    Active recall beats reading alone. Answer questions on Topic 1: Computational thinking with instant AI scoring and mark scheme guidance.

    Start interactive practice

    A week of Premium from your first lesson · Then the free plan continues · No card, no charge

    Exam technique

    How to turn what you know into marks

    How to approach the question

    For algorithm tracing questions, always draw a trace table even if one isn't provided. For evaluation questions, explicitly use the word 'efficiency' and refer to 'number of comparisons'.

    How to structure your answer

    For 4-6 mark comparison questions, use Point-Evidence-Compare. Make a point about Algorithm A, provide evidence, then explicitly compare it to Algorithm B using words like 'whereas' or 'however'.

    Timing

    Approximately 1 minute per mark, so a 4-mark algorithm question should take about 4 minutes.

    Common pitfalls

    • Confusing a Logic Error (code runs but gives wrong answer) with a Runtime Error (code crashes while running).
    • Forgetting that Binary Search only works on sorted lists.
    • Drawing the wrong flowchart symbols (e.g., using a rectangle for an IF decision instead of a diamond).

    What the command words want

    Compare
    Identify similarities AND differences - use comparative language.
    Explain
    Say HOW or WHY - use 'because' to link cause and effect.
    Describe
    Say what happens or what something is like - use correct terminology.
    Evaluate
    Consider both sides, use evidence, make a judgement on efficiency or suitability.
    Calculate
    Show working, use correct formula, include units.
    State/Give
    Brief factual answer - 1-2 words or a short phrase.
    Watch or listen (optional)
    🎙 Podcast Episode
    Topic 1: Computational thinking
    0:00-0:00

    Test your understanding of Topic 1: Computational thinking

    Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.

    Take topic quiz

    A week of Premium from your first lesson · Then the free plan continues · No card, no charge

    More Computer Science Study Guides

    View all

    Algorithms

    Pearson Edexcel
    GCSE

    Master the logic behind every computer program. This topic covers how to design, trace, and evaluate algorithms using sequence, selection, and iteration, plus the essential searching and sorting techniques you'll need for your exam.

    Binary

    Pearson Edexcel
    GCSE

    Mastering binary is essential for understanding how computers store and process all data. This topic covers converting between number bases, performing binary arithmetic, understanding shifts, and recognizing overflow — key skills that frequently appear in exams and form the foundation of computer science.

    Constructs

    Pearson Edexcel
    GCSE

    Master the fundamental building blocks of all software: Sequence, Selection, and Iteration. This topic is the core of Computer Science and tests your ability to think like a real programmer, enabling you to read, trace, and write code confidently for the exam.

    Cybersecurity

    Pearson Edexcel
    GCSE

    Master the critical threats to digital systems and the methods used to protect them. This high-yield GCSE Computer Science topic explores malware, social engineering, and the technical defences essential for earning top marks.

    Data

    Pearson Edexcel
    GCSE

    Master the language of computers. This topic covers how binary underpins everything from text and images to sound and data compression, ensuring you can secure crucial calculation marks in your exam.

    Data storage and compression

    Pearson Edexcel
    GCSE

    Master the fundamentals of binary data storage and the critical importance of compression. This topic is calculation-heavy and frequently tested, requiring you to confidently convert between binary units and understand the trade-offs between lossless and lossy compression methods.