大象传媒

Algorithms - EdexcelProgram code

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

Program code

Program code can also be used to create an . In this context it is called draft program code. There is no requirement for an algorithm to compile and run so errors are acceptable so long as the meaning is clear.

Designing an algorithm using program code has the following advantages:

  • program code is very familiar
  • the syntax doesn鈥檛 have to be completely correct
  • all the possible elements required will be present in the language - unlike

Program code algorithms also have their disadvantages:

  • it is possible for the whole design stage of creating an algorithm to be missed
  • might not have been completed