Writing pseudocode
1. Algorithm
This section takes a closer look at pseudocode - one of the techniques used to describe an algorithm. As a reminder, the definition of an algorithm is shown below.
Algorithm - is a list of step-by-step instructions that, when followed, will solve a problem.
Algorithms have three kinds of data flow. These are
- Sequence: One command follows another
- Selection: A choice is made between two or more data paths
- Iteration: The same group of command is repeated a certain number of times
The two main techniques for producing an algorithm are:
- Pseudocode
- Flowcharts
We will cover various parts of how an algorithm is put together. This includes Operators and Variables, Conditionals, and Loops.
These concepts are also used in actual programming languages. This section is intended as an overview, so we will discuss each of the concepts in more detail in their own section. You can find those more detailed sections here: