Topic 1 - Algorithms Flashcards

(22 cards)

1
Q

Algorithm

A

Set of instructions that need to be followed and complete a task to solve a problem

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

Well written algorithm

A

Individual instructions

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

What’s included within algorithms ?

A

Variables, conditionals, repetition, data structures and subprograms

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

Variable

A

A storage location identified by a name that can be called back to

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

Variable example

A

Data types

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

Data type examples?

A

Integer, float, character, boolean and string

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

Repetition within an algorithm

A

Looping and iteration

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

What is a procedure?

A

Follows instructions but doesn’t return a value

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

What is a function ?

A

Follows a set of instructions and passes a value back

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

Pseudocode

A

Conveys a clear purpose and detail

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

Construct

A

Order of execution of lines

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

Sequence

A

Order of line of code

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

Selection

A

One of many lines of code that are selected through a decision made by the user

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

Iteration

A

The code repeated (While/for)

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

For loop

A

Definite loops that have a fixed number of repeats

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

While loop

A

Indefinite loop that stops once a condition is met

17
Q

What should an efficient algorithm include ?

A

Less lines, smaller file, faster speeds

18
Q

What are flowcharts ?

A

A way to plan out an algorithm

19
Q

What factors are required for an algorithm to be an algorithm ?

A

Instructions must be able to end and not loop forever and a value must be produced at the end

20
Q

What are arrays ?

A

A data structure that contains many values

21
Q

Decomposition

A

Breaking down a problem to make it easier to solve

22
Q

Abstraction

A

Taking out the most important information to utilize is to solve a problem