B) Standard Methods and Techniques Used to Develop Algorithms Flashcards
What is pseudocode?
A form of structured English used to describe an algorithm that can be interpreted into any coding language.
What are the advantages of pseudocode?
- can be converted into any language
- fairly easy to understand
- can be quicker to develop than code
What is a dry run?
The process of manually running through pseudocode to ensure there are no logic errors.
What is a trace table?
A trace table tracks the values of all variables and how they change. They are useful to ensure that an algorithm is giving the expected outputs.
What shape is the start/stop box in flowcharts?
A rounded rectangle.
What shape is the process box in flowcharts and what can it include?
A rectangle. Contains a brief description of the process being carried out, such as a calculation.
What shape is the decision box in flowcharts and what can it include?
A diamond. Should contain a question that can only be answered with yes or no.
What shape is the input/output box in flowcharts and what can it include?
A parallelogram. Contains a brief description of data being input/output, as well as variable names.