AlgorithmsRepresenting an algorithm: Flow diagrams

An algorithm is a plan, a set of step-by-step instructions to resolve a problem. In an algorithm, each instruction is identified and the order in which they should be carried out is planned.

Part ofComputer ScienceComputational thinking

Representing an algorithm: Flow diagrams

A flow diagram represents a set of . Flow diagrams normally use standard symbols to represent the different instructions. There are few real rules about the level of detail needed in flow diagrams. Sometimes flow diagrams are broken down into many steps to provide a lot of detail about exactly what is happening. Sometimes they are simplified so that a number of steps occur in just one step.

Flow diagram symbols

five flow-diagram symbols in a table with usage of each summarised
Figure caption,
Flow diagrams use various symbols to represent different usage

A simple could be created to ask someone their name and age, and to make a comment based on these. This program represented as a flow diagram would look like this:

An algorithm can be represented as a flowchart and can be used to determine a number of things such as a persons name and age. Depending on your age, you may be given a different response.