Algorithms
A plan or well-defined set of step-by-step instructions to solve a problem.
Algorithms must:
- Have clear, defined steps
- Clearly defined inputs and outputs
- Be simple generic and practical
Algorithms can be represented as a flowchart, written description, pseudocode or program code
Advantages of Algorithms
Disadvantages of Algorithms
Flowcharts
A visual representation of an algorithm which can be used to solve a problem
Advantages of Flowcharts
Disadvantages of Flowcharts
Written Descriptions
Advantages of Written Descriptions
Disadvantages of Written Descriptions
Pseudocode
Pseudocode is an informal programming description that outlines process flow. It resembles high-level programming languages and provides a framework for what the final program should achieve. While it has its own syntax similar to actual programming languages, pseudocode must be converted to a programming language to run.
Advantages of Pseudocode
Disadvantages of Pseudocode
Program Code
Code written to solve the problem which follows the rules of the selected programming language. However, the program code can be used to create an algorithm, known as ‘draft program code’
Advantages of Program Code
Disadvantages of Program Code