Quick Index
Purpose


We learned that an algorithm is a well defined set of instructions (steps) for doing a task. And we learned how to write algorithms in human language. Another approach is to write algorithms in pseudocode. We define pseudocode as:


Pseudocode enhances problem solving (algorithm writing) by being simple and concise. It's main purposes are:


In other words, pseudocode is the best of both worlds:


Note that pseudocode is not intended for machine reading, but rather is meant for relatively easy translation to program code (that can be read by machines).

Pseudocode Advantages



A two-phase approach to algorithms can be helpful:


Writing Program Code


Pseudocode is used as a blueprint to write program code.

The translation is relatively straightforward -- the work involves adding the specific language syntax (rules).

We will find out that our pseudocode can be used basically "as-is" in a web browser on our machines (no installs needed). We will soon leverage this fact to test (and play) with our algorithms.