Standard Algorithms

A Standard Algorithm is a set of instructions which is used to solve a problem which is common within code.

An example of a Standard Algorithm and its use is Input Validation. Input Validation prevents users entering incorrect or ‘invalid’ data. It does this using the same four lines of code.

Regardless of the program or the programs purpose, Input Validation looks the same each time, making it a standard algorithm.

Key Points

Standard Algorithms are a repeated sets of instructions that solve a common problem.

There are three you must know.

National 5 Requirements

You should be able to explain what a standard algorithm is.

You should be able to identify each of the standard algorithms.

You should be able to implement each of the standard algorithms.