Skip to main content
EnglandComputer Science

Eduqas A-Level Computer Science data structures and algorithms: arrays, trees, searching, sorting and Big-O made exam-ready

A deep-dive Eduqas Component 1 guide to data structures and algorithms (specification sections 2.1 and 2.2). Covers static structures (arrays and records), dynamic structures (stacks, queues and linked lists), trees, graphs and hash tables, the searching and sorting algorithms, recursion, and Big-O complexity, with the exam patterns Eduqas repeats.

Generated by Claude Opus 4.815 min readEduqas-A-Level-CS-2.1-2.2

Reviewed by: AI editorial process; not yet individually human-reviewed

Jump to a section
  1. What this section actually demands
  2. Data structures
  3. Algorithms
  4. How this section is examined
  5. Check your knowledge

What this section actually demands

The data structures and algorithms part of Component 1 (specification sections 2.1 and 2.2) is the most algorithmic of the course. Eduqas rewards two things: knowing each structure's operations and complexity, and being able to trace algorithms by hand with shown working. Almost every question pairs a structure or algorithm with a trace and a complexity statement.

This guide walks through the topics in order and sets out the exam patterns Eduqas repeats. Each topic has a matching dot-point page with practice; this overview ties them together.

Data structures

Static structures (arrays, records, tuples and sets) are stored contiguously and accessed directly, so array access is O(1)O(1) via the formula base+i×element size\text{base} + i \times \text{element size}. Dynamic structures trade fixed size for flexibility: a stack is LIFO (push and pop a top pointer), a queue is FIFO (enqueue at the rear, dequeue at the front), a circular queue wraps with modsize\bmod \text{size} to reuse slots, and a linked list stores nodes joined by pointers so it grows and shrinks freely at O(n)O(n) access.

Trees, graphs and hash tables organise data for search and relationships. A binary search tree orders keys (smaller left, larger right) for O(logn)O(\log n) search, with in-order, pre-order and post-order traversals. A graph is stored as an adjacency matrix (dense) or adjacency list (sparse). A hash table maps keys to indices for O(1)O(1) average lookup, resolving collisions by chaining or open addressing.

Algorithms

Searching uses linear search (O(n)O(n), any list) or binary search (O(logn)O(\log n), sorted only), while graph traversals use breadth-first (a queue, shortest paths) or depth-first (a stack, deep exploration). Sorting ranges from the quadratic bubble and insertion sorts (O(n2)O(n^2), in-place, simple) to the divide-and-conquer merge and quick sorts (O(nlogn)O(n \log n) on average). Recursion (a base case plus a recursive case using the call stack) expresses these divide-and-conquer methods, and Big-O notation measures how each algorithm scales.

How this section is examined

A typical Eduqas profile for sections 2.1 and 2.2:

  • Structure traces. Push/pop a stack; enqueue/dequeue a circular queue; insert/delete a linked-list node; build a BST and read a traversal.
  • Searching and sorting. Trace a binary search with the middle indices; show one pass of bubble or insertion sort; describe the split-and-merge of merge sort.
  • Recursion. Write a short recursive function with a clear base case; describe how the call stack is used.
  • Complexity. State and order Big-O classes; justify why an algorithm is O(n2)O(n^2) or O(nlogn)O(n \log n).

Check your knowledge

A mix of recall and trace questions covering the section. Attempt them under timed conditions, then check against the solutions.

  1. Give the formula for the address of element ii in a 1D array with base address BB and element size ss. (1 mark)
  2. State the order of removal for a stack and for a queue. (2 marks)
  3. What output order does an in-order traversal of a binary search tree produce? (1 mark)
  4. State the time complexity of binary search and its precondition. (2 marks)
  5. State the worst-case complexity of bubble sort and the average complexity of merge sort. (2 marks)
  6. What two parts must every correct recursive subroutine contain? (2 marks)

Sources & how we know this

  • computer-science
  • a-level-eduqas
  • eduqas-computer-science
  • data-structures
  • algorithms
  • searching
  • sorting
  • big-o