1.1 Algorithms Flashcards
What does Unambiguous mean?
This means that the instructions cannot be misunderstood. Simply saying ‘turn’ would be ambiguous because you could turn left or right.
All instructions given to a computer must be unambiguous or it won’t know what to do.
What does a Sequence mean?
An ordered set of instruction
What does Algorithm mean?
A precise method for solving a problem
What does High-level programming language mean?
A programming language that resemble natural human language
What does Flowchart mean?
A graphical representation of an algorithm.
Each step in the algorithm is represented by a symbol.
Symbols are linked together with arrows showing the order in which steps are executed.
What does Pseudo-code mean?
A structured, code-like language that can be used to describe an algorithm
What does Variable mean?
A container used to store data. The data stored in a variable is referred to as a value. The value stored in a variable is not fixed. The same variable can store different values during the course of a program and each time a program is run.
What does identifier mean?
A unique name given to a variable or a constant. Using descriptive names for variables makes code much easier to read.
What does Arithmetic operator mean?
An operator that performs a calculation on two numbers.
What does Constant mean?
A container that holds a value that never changes. Like variables, constants have unique identifiers.
What does IF…THEN…ELSE statement mean?
The IF…THEN…ELSE statement allows a choice to be made between 2 alternatives based on wether or not conditions is met.
What does Relational operator mean?
An operator that compares 2 values
What does Nested IF statement mean?
A Nested IF statement consists of one or more If statements placed inside each other. A Nested IF is used where there are more than 2 possible courses of action
What does Indefinite iteration mean?
This is used when the number if iterations is not known before the loop is started. The iterations stop when a specified condition is met. This sort of loop is said to be condition controlled.
What does Definite iteration mean?
This is used when the number of iterations, or turns of loops, is known in advance. It can be set to as many turns as you want. This sort of loop is said to be count controlled.