9 Algorithm design and problem-solving - Cambridge AS & A Level Class 11 Computer Science Notes, Diagrams and Solved Questions
Computational thinking with abstraction and decomposition, then algorithms: identifier tables, input-process-output, sequence, selection and iteration in 9618 pseudocode, converting between structured English, flowcharts and pseudocode, stepwise refinement and logic statements.
In this chapter
The purpose and benefits of abstraction, and building an abstract model with only the essential details
Decomposition of a problem into sub-problems that become procedures and functions
What an algorithm is, choosing identifier names and recording them in an identifier table
Writing pseudocode with input, process and output and the three constructs: sequence, selection and iteration
Documenting algorithms as structured English, flowcharts and pseudocode, and converting between them
Stepwise refinement of an algorithm until each step can be programmed
Using logic statements with AND, OR and NOT to define parts of a solution