GCSE Computer Science revision

Algorithms & Computational Thinking

Decomposition, abstraction, searching and sorting.

What you will learn

  • Computational thinking
  • Pseudocode & flowcharts
  • Searching algorithms
  • Sorting algorithms
  • Efficiency

Computational thinking

Computational thinking means breaking problems down so a computer can solve them. The four pillars are decomposition, abstraction, pattern recognition and algorithms.

  • Decomposition: break a problem into smaller parts
  • Abstraction: hide detail to focus on what matters
  • Pattern recognition: spot similarities
  • Algorithms: step-by-step solutions

Pseudocode & flowcharts

Algorithms can be written as pseudocode (text) or flowcharts (diagrams). Both show the logic clearly.

  • Pseudocode uses plain English-like steps
  • Flowcharts use shapes: oval (start/end), rectangle (process), diamond (decision)
  • Arrows show the flow of control
  • Both are language-independent

Searching algorithms

Searching finds an item in a list. Linear search checks each item; binary search is faster but needs a sorted list.

  • Linear search: check each item in turn — works on any list
  • Binary search: halve a sorted list each time — much faster
  • Binary search needs the list to be sorted
  • Linear search is simpler but slower on large lists

Sorting algorithms

Sorting puts items in order. Bubble sort and merge sort are the two to know at GCSE.

  • Bubble sort: swap adjacent pairs until ordered — simple but slow
  • Merge sort: split, sort, then merge — fast and efficient
  • Merge sort uses a divide-and-conquer approach
  • Bubble sort is easy to code but inefficient on large lists

Efficiency

Efficiency measures how quickly an algorithm runs as the input grows. A good algorithm scales well.

  • Binary search is O(log n) — very fast
  • Linear search is O(n) — slows with size
  • Bubble sort is O(n²) — slow for large lists
  • Merge sort is O(n log n) — much faster

Worked answers

  1. 1. Breaking a big problem into smaller parts is called…

    Answer: Decomposition

    Why: Decomposition divides a problem into manageable sub-problems.

    Wrong options to rule out: Abstraction; Pattern recognition; Iteration

  2. 2. Which searching algorithm needs a sorted list?

    Answer: Binary search

    Why: Binary search halves the list, which only works if it is ordered.

    Wrong options to rule out: Linear search; Bubble sort; Merge sort

  3. 3. Linear search works by…

    Answer: Checking each item in turn

    Why: It looks at every item until it finds the target.

    Wrong options to rule out: Halving the list; Swapping pairs; Merging lists

Practice questions

Answer from memory first. Pick an option to check it and read the explanation.

1. Which sorting algorithm uses divide-and-conquer?

2. Abstraction means…

3. In a flowchart, a diamond shape represents a…

4. Which is generally the slowest sorting algorithm for large lists?

5. Binary search is described as…

Practise Algorithms & Computational Thinking until it sticks

  • Your answers are saved, so you can see what you actually know
  • Questions you got wrong come back just before you forget them
  • A daily streak and a progress view for every topic
Practise this topic

Free to start. No card needed.

Related GCSE Computer Science topics

Back to all GCSE Computer Science topics. StudyVector is independent and is not endorsed by any exam board, so check this topic against your own specification.