P2 Computational Thinking Flashcards

(18 cards)

1
Q

What are the computational thinking methods

A

Abstraction, decomposition, algorithmic thinking

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

What is abstraction

A

Ignoring unnecessary detail
Simplifying the problem and reduced complexity

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

What is decomposition

A

Breaking a complex problem down into smaller parts

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

What is algorithmic thinking

A

Setting out a step by step process needed to solve a problem (flowchart)

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

What is the square box for in a flowchart

A

A process (action) like setting a variable value

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

What is the parallelogram

A

Input/output

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

What is the diamond

A

A decision (true false, bigger or smaller)

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

What is a rounded rectangle

A

Start and stop

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

What are the stages of a linear search

A

Starting with the first value check all the values in order

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

What are the steps of a binary search

A

Pick middle number
Check if number selected is the target number
If it is larger than target discard the right half and discard the left hand if it is smaller
Repeat until number found or there is only one item left

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

What happens in a bubble sort

A

Pairs of numbers are compared and if they are in the incorrect order they switch, causing the largest number to bubble to the end

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

What happens in a merge sort

A

First the list is split into individual parts, then they are combined into pairs and ordered in size then two pairs join and are ordered in size.

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

What are the stages in an insersion sort

A

Selects the first item in the list and places the second in the correct order. With each pass the next item is placed into the sorted list in the correct place

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

What are the advantages of binary searches

A

Take less comparisons and are faster

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

Why are merge sorts better than bubble sorts

A

Faster to sort for larger lists and takes a set amount of time(if list is same number of digits)

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

What are the differences between an insersion sort and bubble sort

A

Insertion inserts sorts into the correct position and only completes one pass
Bubble compares pairs of values and needs multiple passes

17
Q

What are the similarities between bubble and insertion

A

Both produce sorted lists and work left to right

18
Q

What is the purpose of a truth table

A

To show all possible inputs and the associated output