1.1 Algorithms Flashcards

1
Q

What does Unambiguous mean?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a Sequence mean?

A

An ordered set of instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does Algorithm mean?

A

A precise method for solving a problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does High-level programming language mean?

A

A programming language that resemble natural human language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does Flowchart mean?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does Pseudo-code mean?

A

A structured, code-like language that can be used to describe an algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does Variable mean?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does identifier mean?

A

A unique name given to a variable or a constant. Using descriptive names for variables makes code much easier to read.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does Arithmetic operator mean?

A

An operator that performs a calculation on two numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does Constant mean?

A

A container that holds a value that never changes. Like variables, constants have unique identifiers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does IF…THEN…ELSE statement mean?

A

The IF…THEN…ELSE statement allows a choice to be made between 2 alternatives based on wether or not conditions is met.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does Relational operator mean?

A

An operator that compares 2 values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does Nested IF statement mean?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does Indefinite iteration mean?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does Definite iteration mean?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does Logical operator mean?

A

A Boolean operator using AND, OR and NOT.

17
Q

What does Random number mean?

A

A number within a given range of numbers that is generated in such a way that each number in the range has an equal chance of occurring. There are many devices for generating random numbers. A die is used in games to get a random number from 1 to 6. Computer programming languages have a function for generating random numbers across variable ranges. In the Edexcel pseudo-code there is a useful built-in RANDOM command.
RANDOM(upperLimit)
For example, number = RANDOM (6) would generate a random number from the numbers 1 to 6.

18
Q

What does Nested loop mean?

A

A loop that tuns inside another loop. The inner one executes all of its instructions for each turn of the outer loop.

19
Q

What does Concatenation mean?

A

The linking together of two or more items of information.

20
Q

What does Logic error mean?

A

An error in an algorithm that results in incorrect or unexpected behaviour.

21
Q

What does Trace table mean?

A

A technique used to identify any logic errors in algorithms. Each column represents a variable or output and each row a value of that variable.

22
Q

What does Simulation mean?

A

A representation of a real-world process or system

23
Q

What does Infinite loop mean?

A

A loop that is never-ending since the condition required to terminate the loop is never reached

24
Q

What does Array mean?

A

An organised collection of related values that share a single identifier.

25
Q

What does Ascending order mean?

A

This is arranging items from smallest to largest.

26
Q

What does Descending order mean?

A

This is arranging items from the largest to smallest.

27
Q

What does Traversal mean?

A

Travel across or through something. An array can be traversed by moving from the first to the last element in order to examine the data stored at each index position.

28
Q

What does Recursion mean?

A

A process that is repeated. For example, a document can be checked and edited, checked and edited and so on until its perfect.

29
Q

What does Brute force mean?

A

An algorithm design that does not include any techniques to improve performance, but instead relies on sheer computing power to try all possibilities until the solution to a problem is found

30
Q

What does Divide and conquer mean?

A

An algorithm design that works by dividing a problem into smaller and smaller sub-problems, until they are easy to solve. The solutions to these are then combined to give a solution to complete problem.

31
Q

What does Median mean?

A

The middle number when the numbers are put in ascending or descending order. If there are an even number if items in an ascending list, choose the item to the right of the middle.