Fundamental Of Algorithms Flashcards

1
Q

Define the term ‘algorithm’

A

An algorithm is a logical, step-by-step process for solving a problem.

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

Explain what is meant by decomposition

A

Decomposition involves breaking down a complex problem or system into smaller parts that are more manageable and easier to understand.

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

Explain what is meant by ‘abstraction’

A

Abstraction is the process of filtering out - essentially ignoring - the characteristics of problems that are not needed in order to concentrate on those that are needed. It is also the filtering out of specific details.

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

How to interpret pseudocode:

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

How to write pseudocode:

A

INPUT – indicates a user will be inputting something
OUTPUT – indicates that an output will appear on the screen
WHILE – a loop (iteration that has a condition at the beginning)
FOR – a counting loop (iteration)
REPEAT – UNTIL – a loop (iteration) that has a condition at the end
IF – THEN – ELSE – a decision (selection) in which a choice is made
any instructions that occur inside a selection or iteration are usually indented

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

How to identify inputs, processes and outputs within a given algorithm:

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

How to describe the purpose of a given algorithm:

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

Define the term ‘efficiency’ regarding algorithms

A

Efficiency looks at how much time it takes to run a particular algorithm and how much space is needed. By using both measurements, an algorithm that looks much more complex can actually be more efficient.

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

Compare different algorithms’ efficiencies

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