Algorithms Flashcards

1
Q

What’s Abstraction?

A

Abstraction is when you ignore unnecessary information and only focus on important facts.

It is used to simplify a problem to make it less complex. It also makes it more straightforward to understand and create a solution

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

What’s decomposition?

A

Decomposition is when you break down a problem into smaller tastes so that it is easier to solve

Each individual problem can be separately tested and solved.

It also enables different people to work on the different parts of a larger problem that can be later recombined to produce a full solution

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

What’s Algorithmic thinking?

A

Algorithmic thinking is the final stage as logical steps that are followed to solve the problem

The problem is broken down using decomposition into smaller problems. The required data and relevant structures are considered using abstraction

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

What is an algorithm?

A

An alrogithm is a set of instructions, presented in a logical sequence

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

What are the two main methods of defining algorithms?

A

Pseudocode and flowcharts

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

What is the start symbol in flowcharts?

A

Rectangle with rounded corners

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

what is the operation/process symbol in flowcharts?

A

rectangle

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

What is the decision (if statement) in flow charts?

A

Diamond

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

What is the input/output symbol in flowcharts?

A

slanted triangle

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

What is the symbol for the direction of flow in flowcharts?

A

arrow

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

Trace tables

A

Trace tables are used to track the value of variables as a program is run

They can be used to manually track the values in order to investigate why the program isn’t running as intended

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

What does each row in the trace table represent?

A

another iteration

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

What does each column in the trace table store?

A

the value of the variable as it changes

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