Algorithms explained
4 May 2012
As explained by Douglas Heaven, MSc Science Communication
An algorithm is a recipe. When following a recipe for a chocolate fudge cake, for example, we carry out an ordered series of actions that takes a set of ingredients – flour, sugar, eggs, chocolate – and produces a cake. The recipe specifies which actions to perform and the order in which to do them. In mathematics and computer science, an algorithm relates a set of inputs to an output in much the same way that a cake recipe relates the ingredients to a cake. Some algorithms have become standard tools for common tasks such as sorting, or finding the best routes between locations. Algorithms have also been around for a lot longer than computers: Euclid’s algorithm for finding the largest positive whole number that divides two others, for example, was recorded in 300 BC. More recently, ‘rogue algorithms’ have been blamed for the stock market crash. But blaming an algorithm is like blaming a recipe – the responsibility lies with whoever requested a cake when a brownie was wanted instead.
Tags: Science from Scratch
Posted in Research | No Comments »

