A set of instructions performed in a logical sequence to solve a problem. Algorithms are used increasingly in emergency situations, for example by ambulance controllers or by organisations such as NHS 111, responsible for out-of-hours care and non-urgent advice in the UK. Each answer to a question leads down a decision tree to the next question, eventually resulting in a recommended action or response.