2.1 - computational thinking and algorithms Flashcards

1
Q

what is computational thinking

A

thinking logically in a way that a computer would

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

what is abstraction

A

only focusing on relevant details while ignoring others to create the simplest form of a problem so you can solve it

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

what is decomposition

A

breaking a problem down into simpler easier to manage parts that you can tackle one by one

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

what is algorithmic thinking

A

generating a series of simple steps to solve the problem

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

what is a flow chart

A

a visual representation of an algorithm

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

what shape represents the start/end of a flowchart

A

cylinder

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

what shape shows an input/output

A

parallelogram

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

what shape shows a process

A

rectangle

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

what shape shows a decision

A

diamond

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

what is a trace table

A

a table that shows variables as they change throughout a program

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

what is a searching algorithm for

A

to check if an item is in a list

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

what is linear search

A

checking every item in a list to see if one of them is the one you are looking for

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

what is binary search

A

checking the middle of a sorted list, and checking if it is higher or lower than the value you are looking for, then remove the half of the list that is on the wrong side, then repeat

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

pros and cons of binary vs linear search

A

binary always takes same amount of time and is quicker on longer lists, but requires the list to be sorted, linear search takes a variable amount of time but is quicker on shorter lists

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

how do you identify binary vs linear search

A

binary search has a midpoint and first and last variables

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

what is a sorting algorithm

A

an algorithm that sorts a list into order

17
Q

what is bubble sort

A

checks each value to the one next to it and swaps them if the first is bigger, then checks the next values

18
Q

what is insertion sort

A

checks the first value with the value next to it and swaps them if it is bigger, then checks the same one against the next one in the list and so on until it is smaller, then it is inserted. it does this with every value in the list.

19
Q

what is merge sort

A

splits the list into smaller sub-lists, then sorts those and adds them together then sorts that list

20
Q

pros and cons of bubble merge and insertion sort

A

insertion is fastest, bubble is slowest but easiest to code, merge is fast but really complex