大象传媒

Algorithms - EdexcelFlowcharts

Algorithms are step-by-step plans for solving problems. Algorithms can be designed using pseudo-code, flowcharts, written descriptions and program code. There are also some standard algorithms for searching and sorting.

Part of Computer SciencePrinciples of computer science

Flowcharts

A is a diagram that shows an overview of a . Flowcharts normally use standard symbols to represent the different types of . These symbols are used to construct the flowchart and show the step-by-step solution to the problem. Flowcharts are sometimes known as flow diagrams.

Common flowchart symbols

Table with common flow diagram symbols, their names and their usage

Flowcharts can be used to plan out programs. This simple flowchart maps out an for a program that prints the numbers 1 to 10:

A flow diagram mapping out an algorithm for a program that prints the numbers 1-10

Advantages and disadvantages of using flowcharts

Designing an algorithm using a flowchart has advantages because:

  • it is easy to see how a program flows
  • flowcharts follow an international - it is easy for any flowchart user to pick up a diagram and understand it

Flowcharts also have their disadvantages:

  • with a large program, the diagrams can become huge and therefore difficult to follow
  • any changes to the design may mean a lot of the diagram has to be redrawn