Essential algorithms for GCSE and A Level Computer Science

Fully coded algorithms in Python & Visual Basic

This download provides you with fully working coded solutions from our text book:·        

– “Essential algorithms for A Level computer science”

We have chosen to provide coded solutions in Python 3 because it is the most popular language taught at GCSE, and in Visual Basic Console (2015 onwards) because it is a language that most closely resembles the pseudocode and coded examples students will need to work with in examinations.

For those students studying other languages such as C++/C# or Java, it would be a great exercise to translate the code presented in this book.

Readers should consider that there are many ways to code these algorithms. What is important is that students recognise the underlying data structures, understand the way an algorithm works, and can determine the output from a piece of code. Therefore, the approaches and solutions presented in this download are a solution, not THE solution.

Be careful when copying Visual Basic code into an IDE such as Visual Studio that you do not accidentally over-write the library references.

Library references can change with each new version of the .net framework and Visual Studio. However, the core code as presented in the book will still work if copied to replace just the Module section.

What extra is in the book?

This 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 Python
  7. Full code listing in Visual Basic
  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.