Skip to main content

๐ŸŒต Algorithms

A process or set of clearly defined rules followed to support calculations or problem solving.

Characteristics

Finiteness - Finite number of steps
Unambiguous - Steps must be clear and lead to one meaning
โ€ข Clearly defined inputs and outputs
โ€ข Logical sequencing of steps
โ€ข Iteration - repetition of steps until results achieved
โ€ข Selection - input leading to choice of step
โ€ข Structured English

Application

When can this be used?

โ€ข Automate calculations to improve efficiency of a process
โ€ข Design a step by step solution to solve a problem
โ€ข Supports machine learning for data analysis

Forms

Algorithms can come in different forms. For example, a flow chart can be one way of displaying an algorithm.

Flow chart symbols:
Flowchart image

A basic example of a flow cart for making tea is:

Making-Tea