Essential algorithms and data structures

Data structures

Supported by some programming languages within the command set, programmers often implement these structures using the fundamental data structures as building blocks.

What is a graph?

A graph is a data structure consisting of nodes (vertices) and pointers (edges).  It differs from a linked list and binary tree because each vertex can have more than one or two edges and point to any vertex in the data structure.  The edges can either point in one direction, known as a directed graph, or without specifying a direction (bidirectional), referred to as an undirected graph. 

Graphs can also be weighted, with each edge given a value representing a relationship such as distance between the vertices. 

Although it is common to refer to vertices and edges when discussing graphs, this is largely due to their application in mathematics.  A vertex can also be referred to as a node and an edge as a pointer.

Graph videos

What extra is in the book?

Each algorithm / data structure has its own dedicated chapter in the book, which includes:

  1. Overview
  2. Typical applications / uses
  3. Typical operations
  4. The algorithm written out in simple-structured English
  5. The algorithm written out in pseudocode
  6. Full code listing in Python
  7. Additional code listings in Visual Basic and C# are also available to download
  8. Diagrammatic walk-through
  9. Efficiency discussion with reference to Big-O notation

A hard copy of the book is available on our shop and a free PDF copy is included for all premium subscribers.

Registered in England and Wales: 10442992

VAT Number: 290 9845 58

Telephone: 03330 164 059


BETT Finalists 2022
Teach Secondary Awards 2022 Finalist