Algorithms Flashcards
What does Unambiguous mean ?
This mean that the instructions cannot be misunderstood
What does Sequence mean ?
an ordered set of instructions
What does Algorithm mean ?
a precise method for solving a problem
What does Pseudo-code mean ?
a structured code-like , language that can be used to describe an algorithm
What does Variable mean ?
a ‘container’ to store data
What is an Identifier ?
It is a unique name given to a variable or a constant
What is an Arithmetic operator ?
an operator that performs a calculation on two numbers
What is a Constant ?
a ‘container’ that holds a value that never changes. Like variables, constants have unique identifiers
What does construct mean ?
a component from which something is built. Letters and Numbers
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
what does the “ IF…THEN…ELSE “ statement means ?
the “IF…THEN…ELSE” statement allows a choice to be made between two alternatives based on whether or not a condition is met
What is a relational operator ?
An operator that compares two values
What is a Nested IF statement ?
a nested IF statement consists of one or more IF statements placed inside each other.
What is a random number ?
A number within a given range of numbers in such way that each number in the range has an equal change of occurring
What is a Nested loop ?
A loop that runs inside another loop
What is meant by a logical operator ?
A Boolean operator using AND, OR and NOT
What is meant by indefinite iteration ?
this is used when the number of iterations is known before the loo is started.
What is mean by Definite iterations ?
this is used when the number of iterations, or the turns of the loop, is known in advance
What is Concatenation
Linking two or more items of information together
What is a logic error
an error in an algorithm that results in incorrect or unexpected behaviour
What is a Trace table
Technique to identify any logic errors in algorithms
What is Simulation
Representation of a real world process or system
What is a infinite loop
a loop that is never ending