成人快手

Algorithms - EdexcelAlgorithms

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

Algorithms

An is a logical, step-by-step process for solving a problem. Algorithms are normally written using one of the following conventions:

  • written descriptions
  • program

An algorithm should be seen as a starting point before writing a . It should include the required programming constructs to solve the problem, ie , and . The finished program should follow the steps the algorithm describes.

Before an algorithm can be designed, it is important to check that the problem is completely . You can find out more about decomposition on page 2 of this study guide. The decomposed problem should consider the following questions:

  • What are the into the problem?
  • What will be the of the problem?
  • In what order do need to be carried out?
  • What decisions need to be made to solve the problem?
  • Are any areas of the problem repeated?

Only when a problem is properly decomposed and understood can an algorithm design begin.