2.1 Algorithms Flashcards

1
Q

Whats computational thinking

A

About the steps taken to find a solution to a complex problem.

It involves decomposition, abstraction and algorithmic thinking

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

Whats decomposition?

A

Breaking down a complex problem into smaller problems and solving each oke individually

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

Whats abstraction?

A

Picking out important bits of information from a problem and ignoring those that don’t matter

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

Whats algorithmic thinking

A

A logical way of solving a problem.

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

Whats pseudocode

A

Not an actual programming language.
It shows the steps of the algorithm without the need to follow syntax.

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

In a flow chart, what shape do you use for a start/stop

A

Oval

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

In a flow chart, what shape do you use for an input/output

A

A slanted rhombus
_
/_/

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

In a flow chart, what shape do you use for a process/calculation

A

Rectangle

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

In a flow chart, what shape do you use for a decision

A

Diamond

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

Whats a linear search? Does it need to be ordered?

A

Unordered list. Checks each item in a list in turn and stops when it finds the item its looking for or gets to the end of the list

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

Whats a binary search? Does it need to be ordered?

A

Ordered list. It looks at the middle term, if its a match then the search ends. If the desired item is less then middle term then repeat in the bottom half, otherwise look at the top half and repeat until found or no more items to look at

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

Whats a bubble sort

A

Compares pairs of items and puts them in order.

Its simple but can take a few run throughs

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

Whats a merge sort

A

Splits a list apart into individual items then merges it back together.

Much more efficient than bubble sort for larger lists

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

Whats an insertion sort

A

Orders items as it goes through.

It’s a simple algorithm and works very well with small lists. Inefficient for longer lists

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