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.
A flow diagram represents a set of instructionA single action that can be performed by a computer processor.. 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
Figure caption,
Flow diagrams use various symbols to represent different usage
A simple programSequences of instructions for a computer. 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: