Topic 1 - Problem Solving Flashcards
What is an algorithm?
A precise method for solving a problem.
What are algorithms used for?
Calculations, data processing and automated reasoning.
What are the four ways of representing an algorithms?
Written description, flowcharts, pseudo-code and program code.
What is a flowchart?
A graphical representation of an algorithm, using predefined symbols to visualise a problem.
What is pseudo-code?
A structured, code-like language that can be used to describe an algorithm.
What is a variable?
A container used to store data.
The data stored in the variable is referred to as a value.
With reference to variables, what is an identifier?
A unique name given to a variable or constant.
What is a constant?
A ‘container’ that holds a value that never changes.
Like variables, constants have unique identifiers.
What is a ‘sequence’?
An ordered set of instructions.
What is a selection?
A construct that allows a choice to be made between different alternatives.
What is an iteration?
A construct that means the repetition of a process.
An action is repeated until there is a desired outcome or condition is met.
It is often referred to as a loop.
What is a relational operator?
An operator that compares two values.