AQA AS Computing 1.4 Algorithm Design Flashcards

1
Q

Algorithm

A

A description, independent of any programming language, of a process that achieves some task. It is a step by step procedure for solving a problem.

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

Program

A

A description in a programming language of a process that achieves some useful result.

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

Sequence

A

Consecutive steps or groups of steps processed one after another in the order that they arise

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

Selection

A

a decision making step (If… then… else…/case)

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

Iteration (aka repetition)

A

A step, or sequence of steps that are repeated until some condition is satisfied. Repeat… Until…/ While… Do…/ For…

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

4 stages of algorithm design

A
  1. Identify the problem inputs
  2. Identify the problem outputs
  3. Determine the variables
  4. Derive an algorithm that transforms the inputs into outputs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Assignment

A

An operation that assigns a value into a variable (“:=” in Delphi! You might sometimes see <- or = used)

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

Structured English

A

A very restricted subset of the English language (resembling a program) E.g..
MULTIPLY hours by pay-rate to get total-pay
INPUT pay-rate
PRINT payslip
etc.

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

Pseudocode

A

Code that resembles a programming language but that uses less strict syntax to express an algorithm and is independent of any real programming language

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

Hand trace, desk check or dry run

A

a careful, step-by-step simulation on paper of how an algorithm would be executed by a computer

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