Chapter 2: Algorithms Flashcards

1
Q

What is an algorithm?

A

Set of step-by-step instructions for solving a problem

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

What is an input?

A

Data used by an algorithm that can affect what is required for correct output

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

What is an output?

A

Results produced by an algorithm

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

What is a solution?

A

Algorithm that always gives correct outputs when provided with valid inputs

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

What is decomposition?

A

Breaking down a complex problem of process into smaller and more manageable parts

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

What is a sub-problem?

A

A problem whose solution contributes to the solution of a bigger problem

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

Decomposing a problem

A

Incremental approach

Modular approach

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

Pattern recognition

A

Identifying similarities among two or more items

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

Generalisation

A

Technique of replacing two or more similar problems or solution into a single, more general problem or solution

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