Algorithms, data structures and computability
The aim of this module is to help you become a computational thinker. Formulating a problem for efficient solution by computers is an extremely important skill. In this module, you will hone this skill: exploring a range of computing concepts; applying these to a variety of problems; and, in the process, becoming familiar with the popular Python programming language. This is the module for you if you are specialising in computing or if – whatever your field – you need to understand both the power and the limitations of computing. Though the focus is on the underlying ideas, you will also need to work with some mathematical concepts and notation.
What you will study
You will learn to take a problem and state it precisely in order that it can be solved with a computer. In other words, you will learn to express the problem in a way which allows you to write an algorithm for solving it. However, not all algorithms are equally good solutions. For that reason, you will also learn how to analyse the speed and efficiency of algorithms, and establish whether an algorithm really does what it is supposed to do. Finally, you will delve into the very foundations of computing. You’ll learn which problems cannot be solved with an algorithm. You will also learn what the limits are on the speed with which algorithms can solve many important practical problems.
Throughout the module you’ll encounter activities and visualisations that bring to life the concepts that are at the heart of this module. You will gain an understanding of the basic principles behind the answers to a wide range of questions including:
- How could algorithmic knowledge of sorting help a hospital during the devastation following a natural disaster such as the Haiti earthquake?
- How can companies like Amazon and Facebook sort petabyte data sets within seconds, for further analysis?
- How can a bank locate a single customer record within a few milliseconds, from within a database of many millions of records?
- How can a forensic laboratory locate a distinct sequence of base pairs speedily within a DNA molecule containing over three billion such pairs?
- How can the millions of operations involved in the production process for an advanced aircraft be scheduled to give maximum efficiency and minimum cost and time span?
- How can a computer be programmed to beat human chess players of grandmaster standard?
- In a telecommunications network, how can the data packets being transferred from sender to destination be routed through a series of hundreds of switches to minimise delay and network congestion, as the patterns of network activity change constantly?
- Can a compiler tell you whether your program will ever finish running?
You will learn
The module comprises three parts.
Firstly, you are introduced to the concept of computational thinking. In particular, you will consider the question ’What is it to compute?’. A number of key concepts are defined – such as computational problem, algorithm and abstraction – and their application is illustrated. You will be given examples of computational problems and their solutions in a wide variety of fields, ranging from physics and biology to economics and sports. You will also start using the Python programming language.
Secondly, you’re introduced to tools and techniques for:
- creating abstractions that represent a problem
- devising algorithms that solve a problem efficiently.
A range of standard data structures and algorithms for sorting, searching and optimisation will be covered and illustrated with practical examples. You will also encounter notions such as Big-O notation, induction and recursion.
The first two parts include introductions to sets, functions, logic and proofs. In the third part, you will further develop your understanding of these concepts. In particular, some of the ideas – that you will have been introduced to informally – will now be presented using formal mathematical notation. This will be in the context of concrete applications, such as databases. At this point, you’ll also learn about the limitations of computational problem solving (non-computability and computational complexity) and recent developments in computing, such as quantum computing.
To enrol on M269 to start in October, you must either have:
- passed Object-oriented Java programming (M250) (or be enrolled on it to start in October)
- passed Introduction to computing and IT 2 (TM112) (or be enrolled on it and have started it in April).
You need an understanding or experience of computing; an understanding and experience of programming; and some knowledge of mathematics – check if you’re ready for M269, with our self-assessed quiz.
If you’re not sure you’re ready, talk to an adviser.
The module uses both online and printed material in combination with a book. Electronic copies of printed materials, other documents, software, programming activities, and online forums will be available via the module website.
You will need
Some of the web activities in this module use the HTML5 system. In order to display them you will need Internet Explorer 9 (or later), the latest version of Firefox or Chrome or another modern HTML5 compliant browser. If you have a computer with the Windows XP operating system, you will need to install Firefox or Chrome or another modern HTML5 compliant browser for these activities, as you cannot use Internet Explorer 8.
You probably won't be able to use a netbook, tablet or other mobile computing device for some of the software.
A computing device with a browser and broadband internet access is required for this module. Any modern browser will be suitable for most computer activities. Functionality may be limited on mobile devices.
Any additional software will be provided, or is generally freely available. However, some activities may have more specific requirements. For this reason, you will need to be able to install and run additional software on a device that meets the requirements below.
A desktop or laptop computer with either:
- Windows 7 or higher
- Mac OS 10.7 or higher
The screen of the device must have a resolution of at least 1024 pixels horizontally and 768 pixels vertically.
To participate in our online discussion area you will need both a microphone and speakers/headphones.
Our Skills for OU study website has further information including computing skills for study, computer security, acquiring a computer and Microsoft software offers for students.