Representing an algorithm: Flowcharts

 

Representing an algorithm: Flowcharts

A flowchart is a diagram that represents a set of instructions. Flowcharts normally use standard symbols to represent the different instructions. There are few real rules about the level of detail needed in a flowchart. Sometimes flowcharts 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.

Flowchart symbols

The symbols in a flowchart are 'Start/Stop', 'Process', 'Decision', 'Input or Output', 'Connector' and 'Direction of flow'.

A simple program could be created to ask someone their name and age, and to make a comment based on these. This program represented as a flowchart 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.